ClickHouse/tests/integration/test_prometheus_endpoint
Azat Khuzhin 38ad4ef493 Fix timeout for prometheus exporter for HTTP/1.1 (due to keep-alive)
Before:

    $ time curl -s --http1.1 127.1:9363/metrics > /dev/null
    real    0m10.018s # default keep_alive_timeout is 10 seconds
    user    0m0.005s
    sys     0m0.001s

After

    $ time curl -s --http1.1 127.1:9363/metrics > /dev/null
    real    0m0.008s
    user    0m0.006s
    sys     0m0.000s

And if you will look at the test_prometheus_endpoint, you will see that
it takes > 30 seconds (it obtains metrics 3 times), after this patch it
should be finished more or less instantly.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-01-19 13:29:17 +03:00
..
configs Change <yandex> to <clickhouse> in configs 2021-09-20 01:38:53 +03:00
__init__.py Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
test.py Fix timeout for prometheus exporter for HTTP/1.1 (due to keep-alive) 2024-01-19 13:29:17 +03:00