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


Reply via email to