haproxy/doc
Krzysztof Piotr Oledzki 5259dfedd1 [MEDIUM]: rework checks handling
This patch adds two new variables: fastinter and downinter.
When server state is:
 - non-transitionally UP -> inter (no change)
 - transitionally UP (going down), unchecked or transitionally DOWN (going up) -> fastinter
 - down -> downinter

It allows to set something like:
        server sr6 127.0.51.61:80 cookie s6 check inter 10000 downinter 20000 fastinter 500 fall 3 weight 40
In the above example haproxy uses 10000ms between checks but as soon as
one check fails fastinter (500ms) is used. If server is down
downinter (20000) is used or fastinter (500ms) if one check pass.
Fastinter is also used when haproxy starts.

New "timeout.check" variable was added, if set haproxy uses it as an additional
read timeout, but only after a connection has been already established. I was
thinking about using "timeout.server" here but most people set this
with an addition reserve but still want checks to kick out laggy servers.
Please also note that in most cases check request is much simpler
and faster to handle than normal requests so this timeout should be smaller.

I also changed the timeout used for check connections establishing.

Changes from the previous version:
 - use tv_isset() to check if the timeout is set,
 - use min("timeout connect", "inter") but only if "timeout check" is set
   as this min alone may be to short for full (connect + read) check,
 - debug code (fprintf) commented/removed
 - documentation

Compile tested only (sorry!) as I'm currently traveling but changes
are rather small and trivial.
2008-01-22 11:29:06 +01:00
..
design-thoughts [DOC] added some docs about http headers storage and acls 2007-04-01 09:44:10 +02:00
internals [BUILD] make ebtree headers multiple-include compatible 2007-11-28 14:23:05 +01:00
architecture.txt [DOC] update architecture guide 2007-03-25 16:01:14 +02:00
configuration.txt [MEDIUM]: rework checks handling 2008-01-22 11:29:06 +01:00
gpl.txt [LICENSE] licensing clarifications 2006-06-15 21:48:13 +02:00
haproxy-en.txt [MEDIUM]: Count retries and redispatches also for servers, fix redistribute_pending, extend logs, %d->%u cleanup 2008-01-06 16:43:05 +01:00
haproxy-fr.txt [DOC] add a bit of documentation about timers 2007-12-02 22:27:38 +01:00
haproxy.1 [DOC] added a small man page 2007-09-09 22:40:07 +02:00
lgpl.txt [LICENSE] licensing clarifications 2006-06-15 21:48:13 +02:00
tcp-splicing.txt [MAJOR] complete support and doc for tcp-splicing 2007-01-07 02:03:04 +01:00