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

Possible Duplicate:
Change backend when reaching maxconn HAProxy

I want our HAProxy configuration to fail over to the backup server in the backend, or to another specified backend, in the event that maxconns is reached on all backend servers.

This is to display a static over capacity message that I'll serve up from another server.

From what I can tell by reading the backup server is only used if the backend servers are all "down", not when they are full of traffic.

How can I accomplish this behaviour?

share|improve this question

marked as duplicate by Kyle Brandt Aug 2 '12 at 19:25

This question was marked as an exact duplicate of an existing question.

Does this do what you need?… – Kyle Brandt Jul 30 '12 at 16:20
I shall give that a go tomorrow – SimonJGreen Jul 30 '12 at 20:12
yep. that. thanks! – SimonJGreen Aug 2 '12 at 19:18
up vote 0 down vote accepted

This worked, answer taken from another question.

acl too_many be_sess_rate gt 10
use_backend b_too_many if too_many be_sess_rate
share|improve this answer

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