Werk #16557: Distributed agent bakery: cached packages remain on remote site

Component Agent bakery
Title Distributed agent bakery: cached packages remain on remote site
Date Oct 2, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p19 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p36 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This Werk fixes a regression that got introduced with Checkmk 2.2.

When using the agent bakery and (automatically) downloading agent packages from a remote site, the remote site caches the provided packages until they are invalidated by the central site. This happens automatically on every call from the agent updater.

This mechanism recently failed to delete unneeded cached packages from the remote site, leading to an increased disk usage.

The regression that lead to this behavior also lead to a significantly decreased performance when querying the remote site from multiple agent updates at once. This is also fixed with this Werk.

To the list of all Werks