차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
kvm_-_wok_kimchi_manager [2018/09/06 07:48] – [실행] koovkvm_-_wok_kimchi_manager [2021/07/13 07:25] (현재) – [Session timeout 설정] koov
줄 126: 줄 126:
 {{:kvm:kimchi5.png|}} {{:kvm:kimchi5.png|}}
  
 +
 +<WRAP center round info>
 +템플릿 생성시 네트워크와 스토리지는 반드시 ''default''로 선언된 항목이 있어야 한다. 기본적으로 ''default''로 선택이 되기 때문에 ''default''항목이 없는 네트워크나 스토리지는 설정이 불가능하다.
 +</WRAP>
 +
 +==== Session timeout 설정 ====
 +
 +기본적으로 wok은 세션 유지시간이 10분으로 되어있어서 다른 작업을 하다보면 관리자 페이지에서 로그아웃 되어있는 경우가 많다.
 +해당 시간을 길게 잡아주기 위해서는 ''/etc/wok/wok.conf''내의 ''session_timeout'' 옵션을 변경하도록 한다.
 +
 +<WRAP prewrap>
 +<code vim /etc/wok/wok.conf>
 +[server]
 +# Start an SSL-enabled server on the given port
 +#proxy_port = 8001
 +
 +# Cherrypy server port
 +#cherrypy_port = 8010
 +
 +# Port for websocket proxy to listen on
 +#websockets_port = 64667
 +
 +# Number of minutes that a session can remain idle before the server
 +# terminates it automatically.
 +session_timeout = 360            # <<-- 이부분을 수정한다. (단위:분)
 +
 +# Running environment of the server
 +#environment = production
 +
 +# Max request body size in KB, default value is 4GB
 +#max_body_size = 4 * 1024 * 1024
 +
 +# Wok server root. Set the following variable to configure any relative path to
 +# the server. For example, to have Wok pointing to https://localhost:8001/wok/
 +# uncomment the following:
 +#server_root=/wok
 +
 +# Federation feature: register Wok server on openSLP and discover peers
 +# in the same network. Check README-federation for more details.
 +#federation = off
 +
 +</code>
 +</WRAP>
 +
 +
 +수정 후 ''wokd'' 를 재시작 한다.
 +
 +<WRAP prewrap>
 +<code bash>
 +$ systemctl restart wokd.service
 +</code>
 +</WRAP>
 +
 +
 +
 +===== 버그 =====
 +2.5 해당 버전의 버그가 있는데 디스크 추가 시에 용량 설정이 ''KBytes''단위로 입력이 된다. 웹UI에서는 ''GBytes'' 단위라고 되어있는데 실제로는 ''KBytes'' 단위로 입력이 되기 때문에 주의해야 한다.
 +
 +해당 부분 수정은 ''/usr/share/wok/plugins/kimchi/ui/js/kimchi.min.js''의 ''4387'' line을 수정하도록 한다.
 +
 +<WRAP prewrap>
 +<code vim /usr/share/wok/plugins/kimchi/ui/js/kimchi.min.js>
 +                    var sizeInMB = parseInt(settings['capacity']) * 1024 * 1024;
 +                    var sizeInGB = sizeInMB * 1024;
 +                    settings['capacity'] = sizeInGB;
 +</code>
 +</WRAP>
  
  • kvm_-_wok_kimchi_manager.1536220136.txt.gz
  • 마지막으로 수정됨: 2018/09/06 07:48
  • 저자 koov