Le 04/02/12 15:01, Baptiste a écrit : > Hi everybody, > > Please find in attachment a patch which provides IMAP health checking. > > Note that it provides also a clean application logout :) > > it applies on HAProxy HEAD git. > > I've tested it on my courier IMAP server and it works as expected. > You can test it with the simple conf below: > listen imap > bind 0.0.0.0:1143 > mode tcp > option imapchk > server imapserver <IP>:143 check > > Your feedback are welcome.
Some remarks about the documentation : - It would be great if Willy could pronounce on the options naming: *chk / *-check / *-chk - I would mention the check in the "server" "check" parameter paragraph (maybe it should be turned into a list). - s/operrating/operating/ What about something a bit shorter (please give us inline diffs to comment on :-)): Set "option imapchk" to test IMAP servers availability. The health check consists in establishing a TCP connection, reading the IMAP banner and verifying it starts with "* OK". Sidenote: it would be great to unify all the health checks descriptions. All of them describe the check with more or less details, then sometimes add consideration about logging and whatnots. -- Patrick Mézard

