Rules:
- We have 4 backend machines behind a HAproxy server.
- One client opens 4 long-lived tcp connections.
- We have two clients.
- Each client should have 1 long-lived tcp connection per backend machine.
- No specific IP addresses of clients should be Used.
Is it possible to have such a setup using HAproxy?
I have tried and the problems are:
If We Use leastcon balancing algorithm on 1 client it works perfectly.
If We use leastcon balancing algorithm on 2 clients, the connections distribution on the backend nodes won't allways verify the rule number 2
If We use different backends with the same backend machines, and create acls on source IP to group connections coming from the same client, and forward them to the diffrent backends using leastcon balancing algorithm, It works perfectly, but we are not respecting rule number 5.
Does anyone have better ideas?