haproxy/reg-tests/checks
Christopher Faulet b381a505c1 BUG/MAJOR: tcpcheck: Allocate input and output buffers from the buffer pool
Historically, the input and output buffers of a check are allocated by hand
during the startup, with a specific size (not necessarily the same than
other buffers). But since the recent refactoring of the checks to rely
exclusively on the tcp-checks and to use the underlying mux layer, this part
is totally buggy. Indeed, because these buffers are now passed to a mux,
they maybe be swapped if a zero-copy is possible. In fact, for now it is
only possible in h2_rcv_buf(). Thus the bug concretely only exists if a h2
health-check is performed. But, it is a latent bug for other muxes.

Another problem is the size of these buffers. because it may differ for the
other buffer size, it might be source of bugs.

Finally, for configurations with hundreds of thousands of servers, having 2
buffers per check always allocated may be an issue.

To fix the bug, we now allocate these buffers when required using the buffer
pool. Thus not-running checks don't waste memory and muxes may swap them if
possible. The only drawback is the check buffers have now always the same
size than buffers used by the streams. This deprecates indirectly the
"tune.chksize" global option.

In addition, the http-check regtest have been update to perform some h2
health-checks.

Many thanks to @VigneshSP94 for its help on this bug.

This patch should solve the issue #936. It relies on the commit "MINOR:
tcpcheck: Don't handle anymore in-progress send rules in tcpcheck_main".
Both must be backport as far as 2.2.

bla
2020-11-27 10:29:41 +01:00
..
1be_40srv_odd_health_checks.vtc MEDIUM: cli/ssl: configure ssl on server at runtime 2020-11-18 17:22:28 +01:00
4be_1srv_health_checks.vtc MEDIUM: cli/ssl: configure ssl on server at runtime 2020-11-18 17:22:28 +01:00
4be_1srv_smtpchk_httpchk_layer47errors.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
40be_2srv_odd_health_checks.vtc MEDIUM: cli/ssl: configure ssl on server at runtime 2020-11-18 17:22:28 +01:00
agent-check.vtc REGTEST: make agent-check.vtc require 1.8 2020-09-29 10:58:04 +02:00
common.pem
http-check-expect.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
http-check-send.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
http-check.vtc BUG/MAJOR: tcpcheck: Allocate input and output buffers from the buffer pool 2020-11-27 10:29:41 +01:00
http-monitor-uri.vtc
ldap-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
mysql-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
pgsql-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
redis-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
smtp-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
spop-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
ssl-hello-check.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tcp-check_min-recv.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tcp-check_multiple_ports.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tcp-check-ssl.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tcp-checks-socks4.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00
tls_health_checks.vtc MEDIUM: proxy: remove start_proxies() 2020-10-09 11:27:30 +02:00