Op 16 feb. 2014, om 00:16 heeft Cyril Bonté <[email protected]> het volgende geschreven:
> Le 16/02/2014 00:00, Mark Ruys a écrit : >> Hi Cyril, >> >> Awesome, that's exactly what I need. Thanks for sharing it, I'll >> definitely implement it this way! > > OK, please feel free to provide some feedbacks once implemented ;-) So far, I have one observation: > To switch back to the "active" backend : > # echo "clear table passive" | socat stdio /var/run/haproxy.sock Although the table is declared with peer stickiness (stick-table type integer size 1 peers LB), clearing the table does not propagate to the other peers. So you have to clear the tables on all peers by hand. If this is not a bug, then I would call it a feature request :) Mark > > Note for Willy, while working on the example I found 2 bugs : > > 1. Integer stick tables are not consistent against peers : integers sent over > the network are converted with hotnl() but are not converted again in the > read path. I'm working on a patch for that. > > 2. a "peers" section without a name will segfault. > > I think both will have to be backported to haproxy 1.4. > > -- > Cyril Bonté --- dr M.P.J. Ruys :: Lead Software Engineer Peercode Oudenhof 4c, 4191NW Geldermalsen, The Netherlands Web site and travel directions: www.peercode.nl Phone +31.88.0084124 :: Mobile +31.6.51298623

