Yes, that is a bug in your configuration. You need to tell haproxy the
connections needs to go to that same server if that is what the servers
need. When I require session affinity, personally I prefer to use cookies
to make that happen but they might not work for some situations.
Add/adjust something like the following for your backend section to use
cookies:
cookie COMETD insert
server cometd1 10.10.69.103:80 check cookie c1 weight 12 maxconn
100000
server cometd2 10.11.157.139:80 check cookie c2 weight 13 maxconn
200000
From: 李海波 [mailto:[email protected]]
Sent: Wednesday, March 07, 2012 11:39 PM
To: [email protected]
Subject: Error with haproxy using balance roundrobin to connect to
long-polling CometD server?
It keep attempting to connect to CometD servers, but fails all the time,
because "balance roundrobin" can not make sure the "5 steps(comet connect,
comet handshake...) " on the same server, right?
Is this a bug?