refactor: slightly increase querier namespace cache TTLs (#5635)

This should lower catalog load and eliminate a few costly cache misses.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Marco Neumann 2022-09-14 13:54:51 +00:00 committed by GitHub
parent 1353a429d7
commit 2332e5de10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -29,10 +29,10 @@ use trace::span::Span;
use super::ram::RamSize;
/// Duration to keep existing namespaces.
pub const TTL_EXISTING: Duration = Duration::from_secs(60);
pub const TTL_EXISTING: Duration = Duration::from_secs(120);
// When to refresh an existing namespace.
pub const REFRESH_EXISTING: Duration = Duration::from_secs(10);
pub const REFRESH_EXISTING: Duration = Duration::from_secs(30);
/// Duration to keep non-existing namespaces.
///