diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-01-26 00:55:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 00:55:38 +0200 |
commit | 7a21b966381022b9dbb15d4377fb09b82d1f6067 (patch) | |
tree | 0aabb02c74b2611a5872dd05dba089bb7dc19f06 /ml | |
parent | 3e3ff4bee83363dca7cfb838baf1cf316960ed1b (diff) |
DBENGINE v2 - improvements part 9 (#14326)
* on shutdown stop data collection for all hosts instead of freeing their memory
* print number of sql statements per metadata host scan
* print timings with metadata checking
* use dbengine API to figure out of a database is legacy
* Recalculate retention after a datafile deletion
* validate child timestamps during replication
* main cache uses a lockless aral per partition, protected by the partition index lock
* prevent ML crash
* Revert "main cache uses a lockless aral per partition, protected by the partition index lock"
This reverts commit 6afc01527dc5c66548b4bc8a1d63c026c3149358.
* Log direct index and binary searches
* distribute metrics more evenly across time
* statistics about retention recalculation
* fix crash
* Reverse the binary search to calculate retention
* more optimization on retention calculation
* removed commented old code
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Diffstat (limited to 'ml')
-rw-r--r-- | ml/Host.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ml/Host.cc b/ml/Host.cc index 0b91014b14..662b470776 100644 --- a/ml/Host.cc +++ b/ml/Host.cc @@ -303,7 +303,7 @@ void Host::detect() { while (service_running((SERVICE_TYPE)(SERVICE_ML_PREDICTION | SERVICE_COLLECTORS))) { worker_is_idle(); - heartbeat_next(&HB, RH->rrd_update_every * USEC_PER_SEC); + heartbeat_next(&HB, (RH ? RH->rrd_update_every : default_rrd_update_every) * USEC_PER_SEC); detectOnce(); } } |