Markus Frosch
86d2f317ee
IcingaObject: Do not invalidate templateResolver on every setImports()
...
Do not clear templateResolver, but refresh current object with its "new" parents.
refs #11803
2016-10-31 17:21:21 +01:00
Thomas Gelf
a9b3b2f47a
IcingaObjectImports: fix compatibility issue
...
fixes #12951
2016-10-20 19:17:52 +00:00
Thomas Gelf
cfbf40147c
IcingaObjectImports: simplify code
2016-10-14 10:33:46 +00:00
Thomas Gelf
e99568fffc
DirectorObjectForm: add unique error message...
...
...without adding an error in case we detect a loop. Also improve
resolve cache invalidation and clean up old imports-related code
refs #11803
2016-10-12 15:23:54 +00:00
Thomas Gelf
6f12663756
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
2016-10-09 12:41:06 +00:00
Thomas Gelf
73bdfb3ecd
IcingaObjectImports: keep passed objects in set()
...
This reduces lookups and avoids failures when unstored objects are
involved
2016-08-23 14:08:51 +00:00
Thomas Gelf
2bf5bdddb5
IcingaObject, imports: more legacy config support
2016-07-28 06:57:27 +00:00
Thomas Gelf
1f5f34cea5
IcingaObjectGroups,Imports: add some manual GC...
...
...to work around PHP issues
2016-06-30 09:34:27 +02:00
Thomas Gelf
57656f8dd9
IcingaObject: externalize imported object loading
2016-06-16 21:40:22 +02:00
Thomas Gelf
d042f8d599
IcingaObjectImports: fix adding objects
2016-06-16 21:20:11 +02:00
Thomas Gelf
64fbdcfeee
IcingaObjectImports: fix null handling
2016-05-20 08:12:46 +02:00
Markus Frosch
839527a2e1
IcingaObjectImports: set modified on clear
...
Imports could not have been set empty because of this
2016-05-19 16:34:07 +02:00
Thomas Gelf
378423ff10
IcingaObjectImports: implement lazy loading
...
reefs #11301
2016-03-07 02:05:10 +01:00
Thomas Gelf
f3e526f95f
IcingaObjectImports: gracefully ignore empty members
2016-03-05 12:56:29 +01:00
Thomas Gelf
3460912fea
IcingaObjectImports: fix behaviour, simplify usage
2016-03-05 10:49:37 +01:00
Thomas Gelf
4bc5afb2f8
library/Director: fix PSR2 complaints
2016-02-26 11:58:37 +01:00
Thomas Gelf
1cd0b0f4cb
IcingaObjectImports: allow for multicol relations
2015-12-10 11:43:54 +01:00
Thomas Gelf
e5e3f749b7
IcingaObjectImports: prefetch should not be forgotten
2015-12-02 02:48:15 +01:00
Thomas Gelf
3811c1612b
IcingaObjectImports: attempt to fix history
2015-08-28 17:11:51 +02:00
Thomas Gelf
48a8e1ab63
IcingaObjectImports: simplify code
2015-07-31 14:33:09 +02:00
Alexander Fuhr
fbbea8d486
IcingaObjectImports: Add check if modified and loaded from db
2015-06-30 10:46:15 +02:00
Alexander Fuhr
321f9d9503
IcingaObjectImports: Fix bug with on delete
2015-06-29 12:50:59 +02:00
Alexander Fuhr
864b9ea55c
Implement IcingaObjectImport to handle object imports
2015-06-26 15:54:00 +02:00
Alexander Fuhr
b1a7922873
Imports: Start with implementing the imports
2015-06-26 10:39:30 +02:00