Closed vitabaks closed 1 month ago
fix HAProxy configuration formatting if tags are not specified
Issue: https://github.com/vitabaks/postgresql_cluster/issues/616
Fixed
Mar 30 09:13:17 pgnode01 haproxy[3665]: [ALERT] (3665) : parsing [/etc/haproxy/haproxy.cfg:44] : 'option httpchk' cannot handle unexpected argument 'roundrobin'. Mar 30 09:13:17 pgnode01 haproxy[3665]: [ALERT] (3665) : parsing [/etc/haproxy/haproxy.cfg:56] : 'option httpchk' cannot handle unexpected argument 'roundrobin'. Mar 30 09:13:17 pgnode01 haproxy[3665]: [ALERT] (3665) : parsing [/etc/haproxy/haproxy.cfg:68] : 'option httpchk' cannot handle unexpected argument 'roundrobin'. Mar 30 09:13:17 pgnode01 haproxy[3665]: [ALERT] (3665) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg Mar 30 09:13:17 pgnode01 haproxy[3665]: [ALERT] (3665) : Fatal errors found in configuration. Mar 30 09:13:17 pgnode01 systemd[1]: haproxy.service: Control process exited, code=exited, status=1/FAILURE Mar 30 09:13:17 pgnode01 systemd[1]: haproxy.service: Failed with result 'exit-code'. Mar 30 09:13:17 pgnode01 systemd[1]: Failed to start HAProxy Load Balancer. Mar 30 09:13:17 pgnode01 systemd[1]: haproxy.service: Scheduled restart job, restart counter is at 4. Mar 30 09:13:17 pgnode01 systemd[1]: Stopped HAProxy Load Balancer.
listen replicas bind 10.172.0.20:5001 maxconn 10000 option tcplog option httpchk OPTIONS /replica?lag=100MB balance roundrobin http-check expect status 200 default-server inter 3s fastinter 1s fall 3 rise 2 on-marked-down shutdown-sessions server pgnode01 10.172.0.20:6432 check port 8008 server pgnode02 10.172.0.21:6432 check port 8008 server pgnode03 10.172.0.22:6432 check port 8008
fix HAProxy configuration formatting if tags are not specified
Issue: https://github.com/vitabaks/postgresql_cluster/issues/616
Fixed