I've been trying to get peers to work with HAProxy. The following works
(meaning that a single server starts and runs):
peers hapeers
# peer ip-10-72-128-49 10.72.128.49:1024
peer ip-10-72-128-136 10.72.128.136:1024
backend common_rate_table
stick-table type ip size 500k peers hapeers expire 5m store conn_rate(1m)
as soon as I uncomment the other haproxy server in the peers section:
peers hapeers
peer ip-10-72-128-49 10.72.128.49:1024
peer ip-10-72-128-136 10.72.128.136:1024
backend common_rate_table
stick-table type ip size 500k peers hapeers expire 5m store conn_rate(1m)
"service haproxy status" returns:
haproxy dead but pid file exists
and /var/log/messages shows:
Feb 12 22:46:20 ip-10-72-128-136 kernel: [100695.296333] haproxy[32373]:
segfault at 8 ip 000000000046b030 sp 00007fff2372f4c0 error 6 in
haproxy[400000+b5000]
If it makes a difference, the stick-table in the dummy common_rate_table
backend is shared between several backends.
Thank you,
Chris