[icinga-checkins] icinga.org: icinga2/master: Even more tuning.

git at icinga.org git at icinga.org
Sat Mar 23 16:02:22 CET 2013


Module: icinga2
Branch: master
Commit: 6b6be8eec38d53ace241d398de2329bdc090930a
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=6b6be8eec38d53ace241d398de2329bdc090930a

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Sat Mar 23 15:57:12 2013 +0100

Even more tuning.

---

 lib/base/eventqueue.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/base/eventqueue.cpp b/lib/base/eventqueue.cpp
index d9871ec..86001e5 100644
--- a/lib/base/eventqueue.cpp
+++ b/lib/base/eventqueue.cpp
@@ -34,7 +34,7 @@ EventQueue::EventQueue(void)
 	for (int i = 0; i < sizeof(m_ThreadStates) / sizeof(m_ThreadStates[0]); i++)
 		m_ThreadStates[i] = ThreadDead;
 
-	for (int i = 0; i < 8; i++)
+	for (int i = 0; i < 2; i++)
 		SpawnWorker();
 
 	boost::thread reportThread(boost::bind(&EventQueue::ReportThreadProc, this));
@@ -215,7 +215,7 @@ void EventQueue::ReportThreadProc(void)
 				/* Spawn a few additional workers. */
 				for (int i = 0; i < 8; i++)
 					SpawnWorker();
-			} else {
+			} else if (alive > busy + 2) {
 				KillWorker();
 			}
 		}





More information about the icinga-checkins mailing list