Pound simply checks if it can establish a connection to the backend. If it can't, then it will take the backend out of the service group. If all backends in the service groups are down, then pound will go to emergency backend.

If you want pound to stop going to a backend on 500 level error, I suggest you write a small service on your backend which checks the backend HTTP status. You can use HAPort to have pound connect to such service. If the service sees a problem, it will not accept connections from pound.
Chris Sarginson wrote:
Thanks for the clarification, so if a server is responding with "Internal Error 
500" (say on a PHP script) pound would continue to direct traffic to the server?  Is 
this the same with all 5xx errors?  Does pound simply check for a socket response, or  
does it check for an HTTP status?

Chris

-----Original Message-----
From: Albert [mailto:[EMAIL PROTECTED]
Sent: 19 November 2008 15:02
To: [email protected]
Subject: Re: [Pound Mailing List] A few questions

HTTP 500 level is not considered "server failure".  "Server failure" is
a state in which connection can not be established.

Chris Sarginson wrote:
Hi guys,

I've just been having a brief trawl through the Mail Archives, and just have a 
few questions that this didnt seem to answer,

1) Are HTTP 500 errors definitely treated as a failure for a server?
2) Is the "Emergency" directive usable as follows:

           ListenHTTP
                  Address 123.123.123.123
                  Port    80
               Service
                  BackEnd
                      Address 192.168.0.10
                      Port    80
                  End
                  BackEnd
                      Address 192.168.0.11
                      Port    80
                  End
               End
              Emergency
                  BackEnd
                      Address 192.168.10.10
                      Port    80
                  End
                  BackEnd
                      Address 192.168.10.11
                      Port    80
                  End
               End
                 End

So that there are 2 servers available in a seperate geographic location that 
are unused unless neither of the primary servers are responding.

Thanks
Chris

--
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.





--
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.

--
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.




--
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.

Reply via email to