haproxy/include/types
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
..
acl.h [MEDIUM] acl: support '-i' to ignore case when matching 2007-06-17 08:20:33 +02:00
backend.h [CLEANUP] fwrr: ensure that we never overflow in placements 2007-12-02 11:01:23 +01:00
buffers.h [BUG] do not re-arm read timeout after writing data 2007-06-03 16:03:49 +02:00
capture.h [MAJOR] last bunch of capture changes for mempool v2 2007-05-13 22:46:04 +02:00
client.h
fd.h [BUG] fix truncated responses with sepoll 2008-01-18 17:20:13 +01:00
global.h [OPTIM] introduce global parameter "tune.maxaccept" 2008-01-06 11:22:57 +01:00
hdr_idx.h
httperr.h
log.h [BUILD] fix build on AIX due to recent log changes 2007-12-05 11:11:55 +01:00
polling.h
proto_http.h [MEDIUM] introduce "timeout http-request" in frontends 2008-01-06 13:24:40 +01:00
protocols.h [MEDIUM] support fully transparent proxy on Linux (USE_LINUX_TPROXY) 2008-01-13 14:49:51 +01:00
proxy.h [MEDIUM]: rework checks handling 2008-01-22 11:29:06 +01:00
queue.h [MAJOR] ported pendconn to mempools v2 2007-05-13 20:19:55 +02:00
server.h [MEDIUM]: rework checks handling 2008-01-22 11:29:06 +01:00
session.h [MEDIUM] add a turn-around state of one second after a connection failure 2008-01-06 23:34:21 +01:00
task.h
template.h