Sorry if I'm being daft, but I've read the manual, experimented, asked in
IRC and still have not sorted out my HAProxy config.

Here's my config: https://gist.github.com/997967e1ba9b29908296

What I want to happen:
  requests should go to server "master" exclusively.  If master ever refuses
a connection, then fail to "slave" and never proxy any requests to "master"
ever again.

What happens:
  requests correctly go to "master" exclusively.  If master refuses a
connection, clients get ERCONNREFUSED. =(

if i use the admin socket to connect and say that "master" failed, then
connections are correctly made to "slave".

I thought that the "observe layer4" would cause master to fail if any of the
connections to it failed, but that doesn't seem to be the case.  "master"
and "slave" do not implement http, smtp or ssl so the "check" methods in the
manual are out of the question. (the backend server is redis.)

Do i have to have a separate monitor process that will kick master out of
HAProxy's active server list, or did i somehow mess up my config?

Thanks!

- Aaron

Reply via email to