Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
105c066
IcingaDB: use a separate Redis conn for history & heartbeat streams
yhabteab Oct 16, 2025
eab507f
IcingaDB: track object changesets efficiently
yhabteab Oct 30, 2025
e6dc594
IcingaDB: don't send `nextupdate:{host,service}` as part of the initi…
yhabteab Mar 4, 2026
26d23bd
IcingaDB: enqueue all dependency related updates to the worker queue
yhabteab Mar 4, 2026
d364ad9
IcingaDB: enqueue config runtime updates to the worker queue
yhabteab Oct 30, 2025
adbefa5
Revert "IcingaDB: suppress state sync until config sync finished"
yhabteab Oct 30, 2025
cbb4147
RedisConnection: simplify query prioritization logic
yhabteab Oct 31, 2025
bbb7d02
RedisConnection: enhance `WriteQueueItem` & related usages
yhabteab Oct 31, 2025
4852273
Revert "CheckerComponent#CheckThreadProc(): also propagate next check…
yhabteab Nov 3, 2025
e88366d
IcingaDB: subscribe to `OnNextCheckChanged` signal
yhabteab Nov 3, 2025
9d5883d
IcingaDB: use polymorphism for queue entries
julianbrost Dec 5, 2025
89d8c32
Fix missing `olock` for dependency child registration
yhabteab Mar 4, 2026
b633d6b
IcingaDB: remove unused `UpdateObjectAttrs` method
yhabteab Mar 10, 2026
8375934
Simplify `IcingaDB::PendingItemsThreadProc()` event loop
julianbrost Mar 11, 2026
2048450
IcingaDB: put all queue related stuff into `icingadb:task_queue` name…
yhabteab Mar 12, 2026
855f6c7
IcingaDB: use key extractor for worker queue
julianbrost Mar 17, 2026
390ee8c
Inline `DequeueAndProcessOne` & don't process items out of order
yhabteab Mar 23, 2026
7d7159c
Reduce min queue item age from `1000ms` to `300ms`
yhabteab Mar 23, 2026
267675e
RedisConnection: simplify `GetOldestPendingQueryTs` function
julianbrost Apr 2, 2026
99328ec
Log pending items stats regularly & include them as perfdata in Icing…
yhabteab Apr 15, 2026
bfb0e7d
Inline `SendNextUpdate` & remove superfluous `m_RconWorker` checks
yhabteab Apr 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions lib/checker/checkercomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,13 @@ void CheckerComponent::CheckThreadProc()

bool forced = checkable->GetForceNextCheck();
bool check = true;
bool notifyNextCheck = false;
double nextCheck = -1;

if (!forced) {
if (!checkable->IsReachable(DependencyCheckExecution)) {
Log(LogNotice, "CheckerComponent")
<< "Skipping check for object '" << checkable->GetName() << "': Dependency failed.";

check = false;
notifyNextCheck = true;
}

Host::Ptr host;
Expand Down Expand Up @@ -182,7 +179,6 @@ void CheckerComponent::CheckThreadProc()
<< Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", nextCheck);

check = false;
notifyNextCheck = true;
}
}
}
Expand All @@ -201,11 +197,6 @@ void CheckerComponent::CheckThreadProc()
checkable->UpdateNextCheck();
}

if (notifyNextCheck) {
// Trigger update event for Icinga DB
Checkable::OnNextCheckUpdated(checkable);
Comment thread
Al2Klimov marked this conversation as resolved.
}

lock.lock();

continue;
Expand Down
16 changes: 16 additions & 0 deletions lib/icinga/dependency-group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,22 @@ void DependencyGroup::LoadParents(std::set<Checkable::Ptr>& parents) const
}
}

/**
* Retrieve any child Checkable from the current dependency group.
*
* @return - Returns the first child Checkable found in this group, or nullptr if there are no children.
*/
Checkable::Ptr DependencyGroup::GetAnyChild() const
{
std::lock_guard lock(m_Mutex);
for (auto& [_, children] : m_Members) {
if (!children.empty()) {
return children.begin()->second->GetChild();
}
}
return nullptr;
}

/**
* Retrieve the number of dependency objects in the current dependency group.
*
Expand Down
1 change: 1 addition & 0 deletions lib/icinga/dependency.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class DependencyGroup final : public SharedObject
void RemoveDependency(const Dependency::Ptr& dependency);
std::vector<Dependency::Ptr> GetDependenciesForChild(const Checkable* child) const;
void LoadParents(std::set<Checkable::Ptr>& parents) const;
Checkable::Ptr GetAnyChild() const;
size_t GetDependenciesCount() const;

void SetIcingaDBIdentifier(const String& identifier);
Expand Down
2 changes: 1 addition & 1 deletion lib/icingadb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mkclass_target(icingadb.ti icingadb-ti.cpp icingadb-ti.hpp)
mkembedconfig_target(icingadb-itl.conf icingadb-itl.cpp)

set(icingadb_SOURCES
icingadb.cpp icingadb-objects.cpp icingadb-stats.cpp icingadb-utility.cpp redisconnection.cpp icingadb-ti.hpp
icingadb.cpp icingadb-objects.cpp icingadb-stats.cpp icingadb-utility.cpp icingadb-worker.cpp redisconnection.cpp icingadb-ti.hpp
icingadbchecktask.cpp icingadb-itl.cpp
)

Expand Down
Loading
Loading