hi, thanks for answer, Not exactly, rather a mix of source and first. reason behind is that in case that we have free resources, different clients would get different machines, with "first" you will get first available slot - and reason behind is to scale down source works good until one client still has access to whole backend - while here it is limited to one backend server.
first is opposite to leastconn - first keep load at the beginning, leastconn same everywhere. but why source is limiting balancing only to one machine? would it be possible to remove this limitation? Łukasz Tasz RTKW czw., 24 wrz 2020 o 15:51 Lukas Tribus <[email protected]> napisał(a): > Hello, > > On Thu, 24 Sep 2020 at 11:40, Łukasz Tasz <[email protected]> wrote: > > > > Hi all, > > haproxy is gr8 - simply. > > > > Till today I was using roundobin algorithm, but after studying > documentation it popped up that source might be better. > > I'm using haproxy in tcp mode, version 1.8, load from one client > sometimes requires more then few servers from the backend. > > > > but also initialization of handling requests takes some cost - I > considered picking a source as an algorithm - to avoid picking the next > server according to roundrobin. > > But I realised that the behaviour of the queue has changed. With a > source algorithm for every source(host, client) there is a separate queue > and one server picked. > > would it be possible that when one server reaches it's slots, the next > one is allocated (and next one, and next one)? where I can find detailed > information on how queues are managed depending on the algorithm which is > used? > > It sounds like what you are looking for is "balance first". > > You can read more about this in the documentation about balance: > > https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#4.2-balance > > > Lukas >

