mirror of https://github.com/Icinga/icinga2.git
Icinga DB: sync checkables along with their states first
`WorkQueue#ParallelFor(x, false, y)` will enqueue x's items in FIFO order, so x has to start with host and service.
This commit is contained in:
parent
848f1ae167
commit
07c8440fd2
|
@ -44,17 +44,22 @@ INITIALIZE_ONCE(&IcingaDB::ConfigStaticInitialize);
|
|||
|
||||
std::vector<Type::Ptr> IcingaDB::GetTypes()
|
||||
{
|
||||
// The initial config sync will queue the types in the following order.
|
||||
return {
|
||||
CheckCommand::TypeInstance,
|
||||
Comment::TypeInstance,
|
||||
// Sync them first to get their states ASAP.
|
||||
Host::TypeInstance,
|
||||
Service::TypeInstance,
|
||||
|
||||
// Then sync them for similar reasons.
|
||||
Downtime::TypeInstance,
|
||||
Comment::TypeInstance,
|
||||
|
||||
CheckCommand::TypeInstance,
|
||||
Endpoint::TypeInstance,
|
||||
EventCommand::TypeInstance,
|
||||
Host::TypeInstance,
|
||||
HostGroup::TypeInstance,
|
||||
Notification::TypeInstance,
|
||||
NotificationCommand::TypeInstance,
|
||||
Service::TypeInstance,
|
||||
ServiceGroup::TypeInstance,
|
||||
TimePeriod::TypeInstance,
|
||||
User::TypeInstance,
|
||||
|
|
Loading…
Reference in New Issue