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

Component Core & setup
Title Reduced Check_MK helper size for certain dists/python versions
Date May 17, 2016
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.4.0i1
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed

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

To the list of all Werks