From aa084634990c113056151e2b8a0e154956436c2f Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sat, 4 Jun 2022 23:36:59 +0100 Subject: [PATCH] Update the metrics more frequently to prevent spiking in rates --- quickpeep_raker/src/bin/qp-raker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickpeep_raker/src/bin/qp-raker.rs b/quickpeep_raker/src/bin/qp-raker.rs index 674c2a5..2547588 100644 --- a/quickpeep_raker/src/bin/qp-raker.rs +++ b/quickpeep_raker/src/bin/qp-raker.rs @@ -286,7 +286,7 @@ pub async fn main() -> anyhow::Result<()> { let datastore_metrics_updater = { let store = task_context.store.clone(); tokio::spawn(async move { - let mut interval = tokio::time::interval(Duration::from_secs(60)); + let mut interval = tokio::time::interval(Duration::from_secs(30)); interval.set_missed_tick_behavior(MissedTickBehavior::Skip); loop { tokio::select! {