mirror of https://github.com/Icinga/icinga2.git
Icinga DB: silence WorkQueue performance
This commit is contained in:
parent
82c3827b66
commit
e6a9631a02
|
@ -130,7 +130,7 @@ void IcingaDB::UpdateAllConfigObjects()
|
||||||
double startTime = Utility::GetTime();
|
double startTime = Utility::GetTime();
|
||||||
|
|
||||||
// Use a Workqueue to pack objects in parallel
|
// Use a Workqueue to pack objects in parallel
|
||||||
WorkQueue upq(25000, Configuration::Concurrency);
|
WorkQueue upq(25000, Configuration::Concurrency, LogNotice);
|
||||||
upq.SetName("IcingaDB:ConfigDump");
|
upq.SetName("IcingaDB:ConfigDump");
|
||||||
|
|
||||||
std::vector<Type::Ptr> types = GetTypes();
|
std::vector<Type::Ptr> types = GetTypes();
|
||||||
|
@ -174,7 +174,7 @@ void IcingaDB::UpdateAllConfigObjects()
|
||||||
std::vector<String> keys = GetTypeOverwriteKeys(lcType);
|
std::vector<String> keys = GetTypeOverwriteKeys(lcType);
|
||||||
DeleteKeys(rcon, keys, Prio::Config);
|
DeleteKeys(rcon, keys, Prio::Config);
|
||||||
|
|
||||||
WorkQueue upqObjectType(25000, Configuration::Concurrency);
|
WorkQueue upqObjectType(25000, Configuration::Concurrency, LogNotice);
|
||||||
upqObjectType.SetName("IcingaDB:ConfigDump:" + lcType);
|
upqObjectType.SetName("IcingaDB:ConfigDump:" + lcType);
|
||||||
|
|
||||||
std::map<String, String> redisCheckSums;
|
std::map<String, String> redisCheckSums;
|
||||||
|
|
|
@ -154,7 +154,7 @@ private:
|
||||||
static std::vector<Type::Ptr> GetTypes();
|
static std::vector<Type::Ptr> GetTypes();
|
||||||
|
|
||||||
Timer::Ptr m_StatsTimer;
|
Timer::Ptr m_StatsTimer;
|
||||||
WorkQueue m_WorkQueue;
|
WorkQueue m_WorkQueue{0, 1, LogNotice};
|
||||||
|
|
||||||
String m_PrefixConfigObject;
|
String m_PrefixConfigObject;
|
||||||
String m_PrefixConfigCheckSum;
|
String m_PrefixConfigCheckSum;
|
||||||
|
|
Loading…
Reference in New Issue