Re: Check behavior

From: Willy Tarreau <w#1wt.eu>
Date: Sun, 20 Dec 2009 07:06:48 +0100


On Sun, Dec 20, 2009 at 06:29:56AM +0300, Alexey Lapitsky wrote:
> Hi,
>
> I have multiple listen sections with the same backends:
>
> listen download.example.com :10000
> server download_passenger 127.0.0.1:8080 check maxconn 20
>
> listen search.example.com :10001
> server search_passenger 127.0.0.1:8080 check maxconn 2
>
>
> Will haproxy independently "check" each backend?

yes. You can even have different check methods for them. If you don't want to check them twice, you can make one server reflect the state of another using the "track" keyword. Example :

 listen download.example.com :10000

         server download_passenger 127.0.0.1:8080 check maxconn 20  

 listen search.example.com :10001

         server search_passenger 127.0.0.1:8080 track download.example.com/download_passenger maxconn 2  

Regards,
Willy Received on 2009/12/20 07:06

This archive was generated by hypermail 2.2.0 : 2009/12/20 07:15 CET