Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Does this do what you need? serverfault.com/questions/406433/… –  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

1 Answer 1

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.