server-side/haproxy

HAProxy Multi Process Warning

C/H 2017. 5. 1. 08:30

$ service haproxy check

$ service haproxy check
/etc/init.d/haproxy: line 26: [: =: unary operator expected
[WARNING] 117/112607 (19530) : stats socket will not work as expected in multi-process mode (nbproc > 1), you should force process binding globally using 'stats bind-process' or per socket using the 'process' attribute.
[WARNING] 117/112607 (19530) : Proxy 'frontend_domain1': in multi-process mode, stats will be limited to process assigned to the current request.
[WARNING] 117/112607 (19530) : Proxy 'frontend_domain1.81': in multi-process mode, stats will be limited to process assigned to the current request.
[WARNING] 117/112607 (19530) : Proxy 'backend_server': in multi-process mode, stats will be limited to process assigned to the current request.
Configuration file is valid

in multi-process mode, stats will be limited to process assigned to the current request.

Soution:

global
        nbproc     4               # 실행 프로세스 수
frontend frontend_domain1
        bind-process    1 # append

frontend  frontend_domain1.81
        bind-process    1 # append

backend backend_server
        bind-process    1 # append

Remove nbproc, bind-process

global
        #nbproc     4               # 실행 프로세스 수
frontend frontend_domain1
        #bind-process    1 # append

frontend  frontend_domain1.81
        #bind-process    1 # append

backend backend_server
        #bind-process    1 # append


반응형

'server-side > haproxy' 카테고리의 다른 글

HAProxy Mysql 'Reading initial communication packet'  (0) 2017.05.12
HAProxy MySQL replication, cluster  (0) 2017.05.10
HAProxy COMODO Wildcard SSL  (0) 2017.05.08
HAProxy Stats Scoket Path Error  (0) 2017.05.02
HAProxy Install  (0) 2017.04.28