That's great; thanks!
Does HAProxy combine threading with the evented model? I e, is the fact that I'm at 16% CPU right now nothing to worry about; it will go to 100% CPU across the available hardware cores before I become CPU saturated?
Sincerely,
jw
Jon Watte, IMVU.com
We're looking for awesome people! http://www.imvu.com/jobs/
On Sun, Apr 24, 2011 at 1:52 PM, Willy Tarreau <w#1wt.eu> wrote:
> On Sun, Apr 24, 2011 at 01:45:45PM -0700, Jon Watte wrote:
> > I see -- that may indeed be the case. Stupid kernel! There's no reason it
> > couldn't reuse the ports, as long as they are for different target IPs.
>
> It's not that easy. When the kernel picks a source port to establish a
> connection, it does not yet know what other users of this port are planning
> to do with it. There were changes recently in 2.6.38 to try to get this do
> what you'd like, but it turned out that it broke several programs including
> haproxy.
>
> > I could also use multiple virtual interfaces with different IP addresses
> on
> > the inside, to get at virtually unlimited source ports, right?
>
> yes you can do that if you want to get more than 64k conns per server, but
> that still requires that you assign source port ranges. And since a
> "source"
> statement can only take one address, you'll need to have multiple entries
> for your servers (one per source address). At least it will scale !
>
> Regards,
> Willy
>
>
Received on 2011/04/24 22:58
This archive was generated by hypermail 2.2.0 : 2011/04/24 23:00 CEST