summaryrefslogtreecommitdiffstats
path: root/database/sqlite/sqlite_aclk_chart.h
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2022-03-08 20:06:30 +0200
committerGitHub <noreply@github.com>2022-03-08 20:06:30 +0200
commit6872df9e6ac91c4fc8eb56c8736b7ab567c0638a (patch)
treea89fc41ea2996d95e707de2f2b25b3cbb350b23b /database/sqlite/sqlite_aclk_chart.h
parent3b07293ede31cf3ddcdfb098469cf03583e672c3 (diff)
Adjust cloud dimension update frequency (#12284)
* Queue a chart immediately to the cloud * Do not inform the cloud immediately if a dimension stopped collecting use MAX(obsoletion time, 1.5 * update_every) * Notify cloud immediately on dimension deletion * Add debug messages * Do not schedule an update if we are shutting down
Diffstat (limited to 'database/sqlite/sqlite_aclk_chart.h')
-rw-r--r--database/sqlite/sqlite_aclk_chart.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/database/sqlite/sqlite_aclk_chart.h b/database/sqlite/sqlite_aclk_chart.h
index 67d81a534e..370af4729a 100644
--- a/database/sqlite/sqlite_aclk_chart.h
+++ b/database/sqlite/sqlite_aclk_chart.h
@@ -12,8 +12,8 @@ typedef enum payload_type {
extern sqlite3 *db_meta;
-#ifndef RRDSET_MINIMUM_LIVE_COUNT
-#define RRDSET_MINIMUM_LIVE_COUNT 3
+#ifndef RRDSET_MINIMUM_LIVE_MULTIPLIER
+#define RRDSET_MINIMUM_LIVE_MULTIPLIER (1.5)
#endif
extern int queue_chart_to_aclk(RRDSET *st);
@@ -34,4 +34,5 @@ void aclk_receive_chart_reset(struct aclk_database_worker_config *wc, struct acl
void aclk_receive_chart_ack(struct aclk_database_worker_config *wc, struct aclk_database_cmd cmd);
void aclk_process_dimension_deletion(struct aclk_database_worker_config *wc, struct aclk_database_cmd cmd);
uint32_t sql_get_pending_count(struct aclk_database_worker_config *wc);
+void aclk_send_dimension_update(RRDDIM *rd);
#endif //NETDATA_SQLITE_ACLK_CHART_H