]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: compression: rate limit in 'show info'
authorWilliam Lallemand <wlallemand@exceliance.fr>
Mon, 19 Nov 2012 16:26:05 +0000 (17:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Nov 2012 00:58:11 +0000 (01:58 +0100)
Show the compression rate limit 'CompressRateLim' in bytes per second on
the UNIX socket.

doc/configuration.txt
src/dumpstats.c

index 6b4b74d52d3dbb1cd57c1967bce696e25f2b11c0..94a1f22402be04a33908b0d1614e51583eea58f0 100644 (file)
@@ -11175,7 +11175,8 @@ set rate-limit connections global <value>
 set rate-limit http-compression global <value>
   Change the maximum input compression rate, which is set by the global
   'maxcomprate' setting. A value of zero disables the limitation. The value is
-  passed in number of kilobytes per second.
+  passed in number of kilobytes per second. The value is available in the "show
+  info" on the line "CompressBpsRateLim" in bytes.
 
 set table <table> key <key> data.<data_type> <value>
   Create or update a stick-table entry in the table. If the key is not present,
index 268bec69bd4e5cf368090445223ba3e905b2cb09..32825b0775f9b17cef7c4c926b73353de0a6f16b 100644 (file)
@@ -1746,6 +1746,7 @@ static int stats_dump_raw_to_buffer(struct stream_interface *si)
                                     "MaxConnRate: %d\n"
                                     "CompressBpsIn: %u\n"
                                     "CompressBpsOut: %u\n"
+                                    "CompressBpsRateLim: %u\n"
                                     "Tasks: %d\n"
                                     "Run_queue: %d\n"
                                     "Idle_pct: %d\n"
@@ -1763,6 +1764,7 @@ static int stats_dump_raw_to_buffer(struct stream_interface *si)
                                     actconn, pipes_used, pipes_free,
                                     read_freq_ctr(&global.conn_per_sec), global.cps_lim, global.cps_max,
                                     read_freq_ctr(&global.comp_bps_in), read_freq_ctr(&global.comp_bps_out),
+                                    global.comp_rate_lim,
                                     nb_tasks_cur, run_queue_cur, idle_pct,
                                     global.node, global.desc?global.desc:""
                                     );