[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haproxy
Subject:    Re: Check behavior
From:       Willy Tarreau <w () 1wt ! eu>
Date:       2009-12-20 6:06:48
Message-ID: 20091220060648.GA9784 () 1wt ! eu
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic