xmpp loadbalancing 300k+ active connections?

2014-06-30 Thread Klavs Klavsen
Hi, I'm looking at setting up a haproxy cluster, which is expected to hit 300.000+ active simultaneous connections. Normally haproxy sends requests to the backend, having exchanged the source ip, with it's own. As far as I can gather - that would mean it will run out of ports, when it hits

Re: xmpp loadbalancing 300k+ active connections?

2014-06-30 Thread Vincent Bernat
❦ 30 juin 2014 15:54 +0200, Klavs Klavsen k...@vsen.dk : As far as I can gather - that would mean it will run out of ports, when it hits about 64k connections being open. But perhaps ports can be reused, if they are used against different backends ? (ie. the max open connection amount in

Re: xmpp loadbalancing 300k+ active connections?

2014-06-30 Thread Baptiste
On Mon, Jun 30, 2014 at 4:22 PM, Vincent Bernat ber...@luffy.cx wrote: ❦ 30 juin 2014 15:54 +0200, Klavs Klavsen k...@vsen.dk : As far as I can gather - that would mean it will run out of ports, when it hits about 64k connections being open. But perhaps ports can be reused, if they are used

Re: xmpp loadbalancing 300k+ active connections?

2014-06-30 Thread Klavs Klavsen
Thank you for your tips - they are much appreciated. Baptiste said the following on 06/30/2014 04:34 PM: [CUT] You can use transparent proxying. that way, you can have up to 64K source port per source IP address :) It should be enough. That said, it requires you change the XMPP servers'