Werk #10378: Improve "Update DNS cache" / cmk --update-dns-cache performance

Komponente Core & setup
Titel Improve "Update DNS cache" / cmk --update-dns-cache performance
Datum 31.10.2019
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.6.0p6 2.0.0i1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

The operation was performing a lot of needless operations. The update of several thousands of hosts DNS entries took way too long. The exact time needed depends mostly on the number of hosts, cache size, DNS lookup performance and so on. But even with good responding servers the operation took too long, because the cache was updated in a very inefficient way when calling the "Update DNS cache" action in WATO or "cmk --update-dns-cache" from the command line.

The operation is now more than a 100 times faster (tested with ~2000 hosts and a fast responding DNS server).

Zur Liste aller Werks