Commit Graph

47 Commits

Author SHA1 Message Date
Thomas Gelf 1b5ed9699d Db\Migrations: warn about downgrades
fixes #1992
2019-10-16 11:28:29 +02:00
Thomas Gelf 7a2a406edb Housekeeping: fix PostgreSQL queries
fixes #282
fixes #12
2019-09-20 02:04:41 +02:00
Markus Frosch 72d9d47a1b Migrations: Disable max_execution_time on apply 2019-04-24 15:04:08 +02:00
Markus Frosch 6d3702a893 PrefetchCache: Purge any object cache on forget or initialize 2019-04-17 10:47:16 +02:00
Thomas Gelf cb3d13ba3b IcingaObjectFilterHelper: clean up exceptions 2019-04-11 02:53:10 +02:00
Thomas Gelf 6e25c05d89 Migrations: cleanup 2018-10-15 15:03:57 +02:00
Thomas Gelf db72931c1e Migrations: cleanup 2018-10-06 16:58:13 +02:00
Markus Frosch 4675a241a8 Integrate MembershipHousekeeping into Housekeeping 2018-09-18 12:21:19 +02:00
Markus Frosch 7bfe1e03e6 Housekeeping: Add helper to refresh memberships in database
This is usually only done when either object or group changes.
2018-09-18 10:36:45 +02:00
Thomas Gelf 14a3039f65 controllers, libs: less noise from exceptions 2018-08-08 10:07:39 +02:00
Thomas Gelf 88f7dc0d0f controllers, library: small fixes 2018-06-23 09:05:10 +02:00
Thomas Gelf 8c432285e7 Various: stick with default exceptions...
...IDE hints are annoying
2018-05-29 21:31:43 +02:00
Thomas Gelf 193c575e3a HostServiceBlacklist: small fixes
refs #907
2018-05-25 19:57:52 +02:00
Thomas Gelf 8073128d0e IcingaServiceForm: add blacklist/delete button...
...and a lot of related boilerplate to get the "blacklist" feature working
2018-05-25 19:11:50 +02:00
Thomas Gelf 11bd7215f5 PrefetchCache: respect CustomVar rendering type
fixes #1257
2017-10-24 11:15:36 +02:00
Thomas Gelf 6c02d9c09a PrefetchCache: remove now obsolete code 2017-08-13 20:51:13 +02:00
Thomas Gelf 59d6291fcf PrefetchCache, IcingaObject: speed up import list
...greatly improves REST API performance
2017-08-01 12:48:29 +02:00
Thomas Gelf 118dddf93a Caches: add Benchmark, some IDE hints for CVar 2017-07-31 16:12:56 +02:00
Thomas Gelf 9f96b1d31b IcingaObjectFilterHelper: do not fail with no...
...involved parents (indirect inheritance with no child template)
2017-07-14 15:19:05 +02:00
Thomas Gelf e4d35d74e3 Migrations: fail on PHP 5.3.x
fixes #1006
2017-07-14 13:21:42 +02:00
Thomas Gelf 61e8621716 IcingaObjectFilterHelper: external filter helpers 2017-07-14 13:21:42 +02:00
Thomas Gelf 4860082d4b host/services: show applied service sets
fixes #735
2017-02-17 08:44:08 +01:00
Thomas Gelf 2bc477daaa Migration: do not require a Director\Db 2017-02-14 09:13:42 +01:00
Thomas Gelf 6396fbc1ee Migrations: table name should depend on module
refs #746
2017-01-24 16:41:43 +01:00
Thomas Gelf 0e2a056f49 Migrations: make it ready for use by other modules
fixes #746
2017-01-24 15:17:59 +01:00
Thomas Gelf b7a10d296c phpcs: mostly new PSR-2 SpacingAfter/Before checks 2017-01-13 20:54:52 +01:00
Thomas Gelf 2918ef555e schema: fix lost/diverged foreign keys
fixes #13591
2016-12-15 15:51:48 +01:00
Thomas Gelf ee0def7d2b Lots of files: make IDE users happy 2016-11-01 18:28:36 +01:00
Corentin Ardeois ddcfb09f58 Handle expressions only for apply objects
Expressions will be handled only if the object is an ApplyRule.
Only properties and custom variables are replaced.

refs #11976
2016-10-22 00:15:09 +00:00
Thomas Gelf 785746fb26 GroupMembershipCache: fix messed up properties
fixes #12887
2016-10-11 15:26:31 +00:00
Thomas Gelf 380fb0afe9 GroupMembershipCache: add missing property
fixes #12884
2016-10-10 19:15:34 +00:00
Thomas Gelf 1bc4a397a8 CustomVariableCache: optionally use digest()...
...for PostgreSQL in case pgcrypto is installed. Also add related hint to the
installation documentation
2016-10-09 12:43:04 +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 193e860beb Db\Migration: use query for OPTIMIZE, not exec
This is required as OPTIMIZE returns data
2016-07-26 13:43:18 +02:00
Thomas Gelf b09c4f8ef0 Db/Cache: first step to externalize lookup caches 2016-06-30 10:34:34 +02:00
Thomas Gelf f5f4bb1dfa Housekeeping: semicolon 2016-04-22 11:29:09 +02:00
Thomas Gelf 9c283e8bb6 Housekeeping: add getPendingTasks helper method 2016-04-22 11:12:29 +02:00
Thomas Gelf e30bafc62e various: code style 2016-03-20 16:38:00 +01:00
Thomas Gelf f77e9433d0 Cli: add housekeeping command 2016-03-20 16:32:04 +01:00
Thomas Gelf 5621b3d064 Housekeeping: lots of cleanup and new funcitonality 2016-03-20 16:17:45 +01:00
Thomas Gelf 9bd54f6af5 Houskeeping: allow to filter for pending tasks 2016-03-20 15:17:34 +01:00
Thomas Gelf 12e849d2a4 Housekeeping: wipe obsolete imported data 2016-03-20 15:10:28 +01:00
Thomas Gelf ca71bf5420 Migrations: add hasSchema helper method 2016-03-05 17:22:54 +01:00
Thomas Gelf 86f8830bcf Db/Housekeeping: prepare centralized housekeeping 2016-02-27 13:00:07 +01:00
Thomas Gelf 4bc5afb2f8 library/Director: fix PSR2 complaints 2016-02-26 11:58:37 +01:00
Thomas Gelf afe0bfb373 Migrations: run initial schema file...
...when no migrations have ever been applied
2016-02-17 15:42:34 +01:00
Thomas Gelf 84cbf522c9 Migrations: implement DB migration helpers 2016-02-08 22:33:28 +01:00