Hello

I've been using HAProxy for several years as a perfect LB solution for webclusters.

Now I am looking for best current practices with haproxy redirecting traffic under certain load.

Lets say I have simple frontend for one website and simple backend of 5 webservers. Lets also assume that I know how many sessions I want on the frontend at max, and how many sessions every webserver in backend can handle. When such limits are being hit, I want to move incoming client connections to special page (you know what I mean, the "sorry, but the server is too busy, try again in some minutes"-kind of page), prefferably to the another server being "hidden" behind HAProxy. What are best current practices doing this?

So far I've tested:
a) frontend ACLs, various cases: fe_conn, be_conn, connslots and then use_backend
b) use_backend for simple serving such page from one server
c) use_backend with server redir to different address (don't like that one)
d) use_backend with errorfile HAProxy directive

I am wondering, what is the best current practice in this? Or how this should be done properly? Of course the ideal solution would be to rewrite every kind of URI client is requesting to simple index.html of such "error page".

Regards
--
*   Maciej Wierzbicki * At paranoia's poison door  *
*   VOO1-RIPE   *

Reply via email to