Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 1b885e16915f2720fc8edbc7859025e7ab1f21ae
https://github.com/tribe29/checkmk/commit/1b885e16915f2720fc8edbc7859025e7a…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-06-09 (Wed, 09 Jun 2021)
Changed paths:
A .werks/12301
M cmk/base/checkers/fetcher_configuration.py
M cmk/fetchers/__init__.py
M cmk/fetchers/_base.py
M cmk/fetchers/agent.py
M cmk/fetchers/controller.py
M tests/unit/cmk/base/checkers/test_fetcher_configuration.py
M tests/unit/cmk/fetchers/test_controller.py
M tests/unit/cmk/fetchers/test_fetchers.py
Log Message:
-----------
12301 FIX Fix cache usage for clusters
Backport cluster fix
This combines the commits pertaining to CMK-7752 in master.
Tested with `cmk -vvv cluster` where cluster contains two
TCP nodes giving:
"""
[TCPFetcher] Fetch with cache settings:
DefaultAgentFileCache(base_path=PosixPath('/omd/sites/stable/tmp/check_mk/
cache/stable'), max_age=90, disabled=False, use_outdated=False,
simulation=False)
Using data from cache file /omd/sites/stable/tmp/check_mk/cache/stable
Got 516255 bytes data from cache
[TCPFetcher] Use cached data
"""
The cache was not used properly for clusters. This resulted
in performance problems such that, if an host was part of <i>n</i>
clusters, it would be contacted <i>n + 1</i> times. Now,
we make sure that the host is contacted a single time and that
checking for the clusters use locally cached data.
CMK-7752
Change-Id: I26cbd363cc6c452e52a68685cc36d700c37133bf