summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-01-26 00:55:38 +0200
committerGitHub <noreply@github.com>2023-01-26 00:55:38 +0200
commit7a21b966381022b9dbb15d4377fb09b82d1f6067 (patch)
tree0aabb02c74b2611a5872dd05dba089bb7dc19f06 /daemon
parent3e3ff4bee83363dca7cfb838baf1cf316960ed1b (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 'daemon')
-rw-r--r--daemon/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/main.c b/daemon/main.c
index 608985bddf..8f51e36c16 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -418,9 +418,10 @@ void netdata_cleanup_and_exit(int ret) {
#endif
// free the database
- delta_shutdown_time("free rrdhost structures");
+ delta_shutdown_time("stop collection for all hosts");
- rrdhost_free_all();
+ // rrdhost_free_all();
+ rrd_finalize_collection_for_all_hosts();
delta_shutdown_time("stop metasync threads");