반응형
For the impatient, here’s a simple command to test a configuration file:
$ haproxy -f /path/to/haproxy.cfg -c
The flag '-c', enables “check mode” and is the flag that tells HAProxy to test, without actually starting or restarting HAProxy
Testing a Running Proxy’s Config
Testing a throwaway config is one thing, but when you make a change to a running service’s configuration file, how should you test?
The procedure is exactly the same:
$ haproxy -f /etc/haproxy/haproxy.cfg -c
Configuration file is valid
This will have no effect on the running HAProxy process, as long as you have the check mode (-c) flag in place.
출처: <https://www.haproxy.com/blog/testing-your-haproxy-configuration/>
반응형
'IT Knowledge > HAProxy' 카테고리의 다른 글
HAProxy nbproc 설정 적용 (33) | 2023.08.23 |
---|---|
HAProxy with SSL Termination / SSL Pass-Through (2) | 2023.08.10 |
Customize HAProxy Log format(Mode TCP / HTTP) (0) | 2023.08.10 |
HAProxy Log 설정하기! (2) | 2022.05.17 |
keepalived 설정 파일 옵션 정리 (0) | 2022.01.29 |
댓글