On 14 November 2014 22:59, Gorj Design ( Dragos ) <[email protected]> wrote:
> Hello,
>
> I have been using Haproxy to split the traffic between my servers.
> I have a haproxy server and 2 servers that receive the traffic using round
> robin .
> The traffic is split usually very good  50 % on one server and 50 % on the
> other.
>
> But at some point, the traffic gets in so fast for example
> 2014-11-14T20:43:15.702Z
> 2014-11-14T20:43:15.703Z
> 2014-11-14T20:43:15.704Z
> 2014-11-14T20:43:15.705Z
> 2014-11-14T20:43:15.706Z
> ..........................................
> From ....15.702 to ......15.706 hundreads of incomming traffic are comming
> and all are sent to server one .
>
> Can I set it somehow so the traffic is split even if it comes at such a low
> milliseconds difference ?

I don't believe you /should/ be seeing this pattern/problem with a
simple round-robin setup. Are you *positive* that neither server
polled down for any period, no matter how small?

http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#balance
describes your load balancing algorithm choices. I know it warns
against leastconn with short-lived connections, but I've never had any
problems with using that algorithm for HTTP :-)

Jonathan

Reply via email to