]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: halog: explain how to use -ac and -ad in the help message
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Nov 2022 08:40:06 +0000 (09:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Nov 2022 08:40:06 +0000 (09:40 +0100)
Tim reported in issue #1435 that halog options -ac/-ad were poorly
documented. They're indeed used to spot infrastructure outages between
the clients and haproxy by detecting abnormal periods of silence followed
by bursts, either affecting the network itself, or also a single machine
(e.g. swapping on an edge client or proxy can cause such patterns).

admin/halog/halog.c

index 45eec7576b55a4f04d81d1d0732ae1062478cff8..7ff43638709491789b3c322401a115538264c83d 100644 (file)
@@ -207,6 +207,11 @@ void help()
               "       -uao, -uto: average times computed on valid ('OK') requests\n"
               "       -uba, -ubt: average bytes returned, total bytes returned\n"
               " -hdr  output captured header at the given <block>:<field>\n",
+              " -ac <count> -ad <delay>:\n
+              "       Report periods corresponding to a grouped accept of <count> requests at\n"
+              "       the same millisecond after a delay of at least <ad> milliseconds with no\n"
+              "       incoming accept (used to spot network outages). Output format contains:\n"
+              "          <accept_date> <date_ms> <delta_ms from previous one> <nb_entries>\n"
               (int)SOURCE_FIELD, (int)SOURCE_FIELD
               );
        exit(0);