]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stats: count server retries and redispatches
authorKrzysztof Oledzki <ole@ans.pl>
Thu, 18 Oct 2007 17:12:30 +0000 (19:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Oct 2007 17:12:30 +0000 (19:12 +0200)
commit1cf36ba3ae9e532ac06aaf2a30e6c217d8d1f878
tree37cc737d9a1898bf6d2901dff5e32f21847d9a7c
parent9edd161554b3f4603437e069d958c1610522b6fe
[MEDIUM] stats: count server retries and redispatches

It is important to know how your installation performs. Haproxy masks
connection errors, which is extremely good for a client but it is bad for
an administrator (except people believing that "ignorance is a bless").

Attached patch adds retries and redispatches counters, so now haproxy:

1. For server:
 - counts retried connections (masked or not)

2. For backends:
 - counts retried connections (masked or not) that happened to
    a slave server
 - counts redispatched connections
 - does not count successfully redispatched connections as backend errors.
    Errors are increased only when client does not get a valid response,
    in other words: with failed redispatch or when this function is not
    enabled.

3. For statistics:
 - display Retr (retries) and Redis (redispatches) as a "Warning"
   information.
include/types/proxy.h
include/types/server.h
src/backend.c
src/dumpstats.c
src/proto_http.c