mirror of
https://github.com/Icinga/icinga2.git
synced 2025-08-26 12:08:12 +02:00
This commit sets the activation priority if IcingaDB objects to 100 (the same value as IDO uses) so that it get's activated after most regular config objects (hosts, services, ...). Before (note how Icinga 2 continues to active objects for over a minute after IcingaDB is started and thinks the initial dump is done): [2021-01-19 08:33:19 +0000] information/IcingaDB: 'icingadb' started. [2021-01-19 08:34:02 +0000] information/IcingaDB: Initial config/status dump finished in 28.247 seconds. [2021-01-19 08:35:49 +0000] information/ConfigItem: Activated all objects. After (now activation of objects is done right after IcingaDB is started, as it's one of the last objects to be activated): [2021-01-19 08:39:01 +0000] information/IcingaDB: 'icingadb' started. [2021-01-19 08:39:02 +0000] information/ConfigItem: Activated all objects. [2021-01-19 08:39:38 +0000] information/IcingaDB: Initial config/status dump finished in 21.6606 seconds.
26 lines
382 B
Plaintext
26 lines
382 B
Plaintext
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
|
|
|
#include "base/configobject.hpp"
|
|
|
|
library icingadb;
|
|
|
|
namespace icinga
|
|
{
|
|
|
|
class IcingaDB : ConfigObject
|
|
{
|
|
activation_priority 100;
|
|
|
|
[config] String host {
|
|
default {{{ return "127.0.0.1"; }}}
|
|
};
|
|
[config] int port {
|
|
default {{{ return 6380; }}}
|
|
};
|
|
[config] String path;
|
|
[config] String password;
|
|
[config] int db_index;
|
|
};
|
|
|
|
}
|