[icinga-checkins] icinga.org: icingaweb2-module-director/master: PrefetchCache: lot' s of improvements

git at icinga.org git at icinga.org
Mon Oct 10 12:00:29 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 6f126637560a350661d13589829dc26d17900aea
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=6f126637560a350661d13589829dc26d17900aea

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Oct  9 12:02:22 2016 +0000

PrefetchCache: lot's of improvements

This commit enables the prefetch cache per default when rendering configs
and adds the following features:

* prefetch all kinds of Icinga object inheritance (imports)
* prefetch group memberships
* prefetch custom variables
* render vars with the same checksum only once

Roughly measured performance boost with a large real-life config, renders three
times faster as it did before. Might be even more for those suffering from high
latencies when accessing their DB remotely and/or on a slow storage.

fixes #12876

---

 library/Director/CustomVariable/CustomVariable.php |   26 +++++
 .../Director/CustomVariable/CustomVariables.php    |    2 +-
 library/Director/Db/Cache/CustomVariableCache.php  |   22 +++--
 library/Director/Db/Cache/GroupMembershipCache.php |  101 ++++++++++++++++++++
 library/Director/Db/Cache/PrefetchCache.php        |   52 +++++++++-
 library/Director/Objects/IcingaObject.php          |    7 +-
 library/Director/Objects/IcingaObjectGroups.php    |   11 ++-
 library/Director/Objects/IcingaObjectImports.php   |   21 +++-
 .../Director/Objects/IcingaTemplateResolver.php    |    3 +-
 9 files changed, 227 insertions(+), 18 deletions(-)

Diff:   https://git.icinga.org/?p=icingaweb2-module-director.git;a=commitdiff;h=6f126637560a350661d13589829dc26d17900aea


More information about the icinga-checkins mailing list