Werk #3531: Reduced Check_MK helper size for certain dists/python versions

Komponente Core & setup
Titel Reduced Check_MK helper size for certain dists/python versions
Datum 17.05.2016
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.4.0i1
Level Kleine Änderung
Klasse Neues Feature
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

The config of the Check_MK check helper is now written as marshaled python code, instead of plain python text. This reduces the helpers peak resident memory size while parsing the config file.

Some distributions (or python versions) tend not to shrink the resident memory of the check helper again, so the check helper size can only grow.

By using marshaled config data the initial check helper size can be drastically lower. Actual use case:

System setup

  • CentOS6
  • Python 2.6
  • 11k Hosts
  • 200k Services

The size of the config is roughly 8MB (this highly depends on the configured rules).

Marshaled config320 MB
Plain text config30 MB

Zur Liste aller Werks