mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
Even more tuning.
This commit is contained in:
parent
dc2efae421
commit
6b6be8eec3
@ -34,7 +34,7 @@ EventQueue::EventQueue(void)
|
|||||||
for (int i = 0; i < sizeof(m_ThreadStates) / sizeof(m_ThreadStates[0]); i++)
|
for (int i = 0; i < sizeof(m_ThreadStates) / sizeof(m_ThreadStates[0]); i++)
|
||||||
m_ThreadStates[i] = ThreadDead;
|
m_ThreadStates[i] = ThreadDead;
|
||||||
|
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
SpawnWorker();
|
SpawnWorker();
|
||||||
|
|
||||||
boost::thread reportThread(boost::bind(&EventQueue::ReportThreadProc, this));
|
boost::thread reportThread(boost::bind(&EventQueue::ReportThreadProc, this));
|
||||||
@ -215,7 +215,7 @@ void EventQueue::ReportThreadProc(void)
|
|||||||
/* Spawn a few additional workers. */
|
/* Spawn a few additional workers. */
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
SpawnWorker();
|
SpawnWorker();
|
||||||
} else {
|
} else if (alive > busy + 2) {
|
||||||
KillWorker();
|
KillWorker();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user