Count retries and redispatches

From: Krzysztof Oledzki <ole#ans.pl>
Date: Sun, 23 Sep 2007 15:29:21 +0200 (CEST)


Hello,

It is important to know how does your instalation perform. 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.

I think it is a post-1.3.12 material.

Best regards,

                                 Krzysztof Olędzki

Received on 2007/09/23 15:29

This archive was generated by hypermail 2.2.0 : 2007/11/04 19:21 CET