On Tue, Feb 3, 2015 at 4:59 PM, Pavlos Parissis <[email protected]> wrote: > On 01/02/2015 03:15 μμ, Willy Tarreau wrote: >> Hi Simon, >> >> On Fri, Jan 30, 2015 at 11:22:52AM +0900, Simon Horman wrote: >>> Hi Willy, Hi All, >>> >>> the purpose of this email is to solicit feedback on an implementation >>> of email alerts for haproxy the design of which is based on a discussion >>> in this forum some months ago. > > > It would be great if we could use something like this > acl low_capacity nbsrv(foo_backend) lt 2 > mail alert if low_capacity > > In some environments you only care to wake up the on-call sysadmin if you are > real troubles and not because 1-2 servers failed. > > Nice work, > Pavlos >
This might be doable using monitor-uri and monitor fail directives in a dedicated listen section which would fail if number of server in a monitored farm goes below a threshold. That said, this is a dirty hack. Baptiste

