Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


I am running haproxy for load balancing .. i have 2 web server behind the LB. My requirement is , to go 70% load to server 1 and remaining 30% to server2 ,

Please share the Configuration details if its possible,

share|improve this question

You need to use the weight keywork to specify the server weight.

weight <weight>

You can try the algorithm static-rr.

share|improve this answer

HaProxy implements a few different load portioning algorithms. The one we use is the least connections one "that picks the backend with the fewest pending connections." as discussed in this article:

The algorithm is smarter than just applying a ratio a la nginx - it should portion out load based on what your back-ends can handle.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.