Update the metrics more frequently to prevent spiking in rates
This commit is contained in:
parent
bde4a7e5e2
commit
aa08463499
|
@ -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! {
|
||||
|
|
Loading…
Reference in New Issue