How can i achive the following with HAProxy with regards to its simple tutorial found here:
http://www.webhostingtalk.com/showthread.php?t=627783
I would to use HAProxy first direct all trafic to primary if off direct to secondary if primary back redirect back to primary
Is there also an option to discard some of the requests by the proxy? for example all requests /tothisplace to discard at this HAProxy level?
Also is there anything much simpler than HAProxy that I can use to achieve that? (I used in the past simpleproxy for other usage and it was very easy to use, is there a way to do it with simpleproxy?)
thanks
Question 1 - add a backup directive on the secondary server - http://code.google.com/p/haproxy-docs/wiki/ServerOptions
Question 2 - You can create an ACL based on the requested url, using url_end or something like that, and redirect it to an tarpit. http://code.google.com/p/haproxy-docs/wiki/MatchingLayer7