Werk #20087 · Jun 2, 26
check-httpv2: reduce runtime overhead per check invocation
Previously, each invocation of check-httpv2 started a pool of worker
threads to handle the HTTP request.
Because the check only performs a single request, it could not benefit from the
additional threads.
On the contrary, starting the threads produced significant overhead related to
the number of CPUs of the system.
The check now runs on a single thread, reducing the CPU and memory overhead of each invocation. This is particularly noticeable on sites that monitor many HTTP endpoints.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p6All Editions
- 2.4.0p32All Editions