summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2023-01-18 10:42:30 +0200
committerGitHub <noreply@github.com>2023-01-18 10:42:30 +0200
commit3d5f9e64a012b8d0f66ccf483e0e0e6eb3186787 (patch)
treea564b1d7a15427c601d7ead9a410a825e6007894 /daemon
parentb9cafae62c973a651dbf1bb7448fc42e2eb61527 (diff)
Revert health to run in a single thread (#14244)
* revert health to single thread * remove getting now * use a health struct * remove commented code * cleanup health log from metdata * dont check for METADATA_UPDATE
Diffstat (limited to 'daemon')
-rw-r--r--daemon/service.c2
-rw-r--r--daemon/static_threads.c9
2 files changed, 10 insertions, 1 deletions
diff --git a/daemon/service.c b/daemon/service.c
index fd19a3cc6f..3f5e8c55a3 100644
--- a/daemon/service.c
+++ b/daemon/service.c
@@ -201,7 +201,7 @@ static void svc_rrd_cleanup_obsolete_charts_from_all_hosts() {
&& (
(
host->child_last_chart_command
- && host->child_last_chart_command + host->health_delay_up_to < now_realtime_sec()
+ && host->child_last_chart_command + host->health.health_delay_up_to < now_realtime_sec()
)
|| (host->child_connect_time + TIME_TO_RUN_OBSOLETIONS_ON_CHILD_CONNECT < now_realtime_sec())
)
diff --git a/daemon/static_threads.c b/daemon/static_threads.c
index 51dbf64061..ff43fc0ccc 100644
--- a/daemon/static_threads.c
+++ b/daemon/static_threads.c
@@ -37,6 +37,15 @@ const struct netdata_static_thread static_threads_common[] = {
.start_routine = cpuidlejitter_main
},
{
+ .name = "HEALTH",
+ .config_section = NULL,
+ .config_name = NULL,
+ .enabled = 1,
+ .thread = NULL,
+ .init_routine = NULL,
+ .start_routine = health_main
+ },
+ {
.name = "ANALYTICS",
.config_section = NULL,
.config_name = NULL,