- https://bugzilla.redhat.com/show_bug.cgi?id=1126955
- haproxy init.d/systemctl issue
- Haproxy fails to reload on Fedora 17
- HAProxy를 이용한 Internal Load Balancer 구성 따라하기
- haproxy Systemd
- HAProxy Management Guide v1.7
- systemd
KT ucloude
haproxy 가 규칙적으로 재실행 실패하는 현상.
매일 새벽 03:14분경 reload가 되고 reload 실패로 서버 정지 현상.
systemctl reload haproxy.service service haproxy reload
restart 는 문제없이 실행 됨.
systemctl restart haproxy.service service haproxy restart
명령어를 직접 실행하면 정상 동작함.
/etc/init.d/haproxy reload
systemctl reload haproxy.servicy failed
[root@haproxy1 ~]# systemctl status haproxy ● haproxy.service - SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments. Loaded: loaded (/etc/rc.d/init.d/haproxy; bad; vendor preset: disabled) Active: failed (Result: signal) since Sun 2017-06-18 03:45:01 KST; 12h ago Docs: man:systemd-sysv-generator(8) Process: 11072 ExecStop=/etc/rc.d/init.d/haproxy stop (code=exited, status=0/SUCCESS) Process: 11065 ExecReload=/etc/rc.d/init.d/haproxy reload (code=exited, status=0/SUCCESS) Process: 21964 ExecStart=/etc/rc.d/init.d/haproxy start (code=exited, status=0/SUCCESS) Main PID: 11070 (code=killed, signal=KILL) Jun 17 18:29:41 haproxy1.localdomain systemd[1]: Starting SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.... Jun 17 18:29:41 haproxy1.localdomain haproxy[21964]: Starting haproxy: [ OK ] Jun 17 18:29:41 haproxy1.localdomain systemd[1]: Started SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.. Jun 18 03:45:01 haproxy1.localdomain systemd[1]: Reloaded SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.. Jun 18 03:45:01 haproxy1.localdomain systemd[1]: haproxy.service: main process exited, code=killed, status=9/KILL Jun 18 03:45:01 haproxy1.localdomain haproxy[11072]: Shutting down haproxy: [FAILED] Jun 18 03:45:01 haproxy1.localdomain systemd[1]: Unit haproxy.service entered failed state. Jun 18 03:45:01 haproxy1.localdomain systemd[1]: haproxy.service failed.
haproxy reload issue
systemd has a strong limitation about reload: environment variables are not reloaded when performing a service reload. One must perform a service restart. systemd에는 재로드에 대한 강력한 제한이 있습니다. 서비스 재로드를 수행 할 때 환경 변수가 다시로드되지 않습니다. 하나는 서비스를 다시 시작해야합니다. This is because the environment variables are loaded by hapee-lb-systemd-wrapper at start-up and can’t be refreshed when reloading. Read HAProxy and systemd paragraph. 이는 환경 변수가 시작시 hapee-lb-systemd-wrapper에 의해로드되고 다시로드 할 때 환경 변수가 새로 고쳐지지 않기 때문입니다. HAProxy 및 systemd 단락을 읽으십시오.
문제를 해결하는 영역이 systemctl 영역에서 해결해야 하는 관계로 yum install haproxy 로 1.5.18 버전으로 다운해서 해결했다.
반응형
'server-side > haproxy' 카테고리의 다른 글
HAProxy SSL Bridging (0) | 2017.07.15 |
---|---|
HAProxy balance (0) | 2017.07.04 |
HAProxy FD Limt maxconn/maxsock (0) | 2017.06.20 |
'option forwardfor' ignored for proxy (0) | 2017.06.19 |
HAProxy Gateway timeout (0) | 2017.06.15 |