I'm managing two Linux nodes, each running six containers. The issue I'm facing is that when I shut down two containers on one of the nodes, I expect the traffic to redirect to the other node. I've checked the HAProxy configuration and it appears to be set up correctly. What could be going wrong?
2 Answers
A colleague of mine mentioned it could be a rogue process unrelated to load balancing. It’s worth investigating other factors that might be causing traffic not to redistribute properly. Have you checked for any misconfigurations or resource limits?
What load balancing method are you using? That could be a key factor here. If it's balance source, sticky sessions might be affecting the traffic shift. You might want to consider switching to round robin to see if that helps.
I’m with you on this one! I've seen issues like yours with sticky sessions before. Switching it up sounds like a smart move.

Yeah, sticky sessions can definitely cause issues with balancing. If the client sessions are stuck to particular nodes, traffic won't shift as you expect. Round robin might be the better option here!