]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: config: mention in bytes_in and bytes_out that they're read on input
authorWilly Tarreau <w@1wt.eu>
Mon, 26 May 2025 13:51:14 +0000 (15:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 May 2025 13:54:36 +0000 (15:54 +0200)
Issue #2267 suggests that it's unclear what exactly the byte counts mean
(particularly when compression is involved). Let's clarify that the counts
are read on data input and that they also cover headers and a bit of
internal overhead.

doc/configuration.txt

index 11213439002837fa9b5a98b22273a316e5277949..7e2de9b5ec2279f0bb4c327eaa25e3dab1510cbe 100644 (file)
@@ -22751,10 +22751,16 @@ be_tunnel_timeout : integer
   also the "cur_tunnel_timeout".
 
 bytes_in : integer
-  This returns the number of bytes uploaded from the client to the server.
+  This returns the number of bytes uploaded from the client to the server. The
+  value corresponds to what was received by HAProxy, including some headers and
+  some internal encoding overhead. Request compression does not affect the
+  value reported here.
 
 bytes_out : integer
-  This is the number of bytes transmitted from the server to the client.
+  This is the number of bytes transmitted from the server to the client. The
+  value corresponds to what was received by HAProxy, including some headers and
+  some internal encoding overhead. Response compression does not affect the
+  value reported here.
 
 cur_client_timeout : integer
   Returns the currently applied client timeout in millisecond for the stream.
@@ -29090,7 +29096,8 @@ Arguments:
              integer which counts the cumulative number of bytes received from
              clients which matched this entry. Headers are included in the
              count. This may be used to limit abuse of upload features on photo
-             or video servers.
+             or video servers. Note that the values are measured when the data
+             enter haproxy, thus the counts are not affected by compression.
 
   - bytes_in_rate(<period>) [12 bytes]
              This is a rate counter on bytes from the client to the server.
@@ -29110,7 +29117,8 @@ Arguments:
              integer which counts the cumulative number of bytes sent to
              clients which matched this entry. Headers are included in the
              count. This may be used to limit abuse of bots sucking the whole
-             site.
+             site. Note that the values are measured when the data enter
+             haproxy, thus the counts are not affected by compression.
 
   - bytes_out_rate(<period>) [12 bytes]
              This is a rate counter on bytes from the server to the client.