Set default metric_collection_interval to 10 min,

which is more reasonable for real usage
This commit is contained in:
Anastasia Lubennikova
2022-12-22 15:47:24 +02:00
parent 9b71215906
commit 63eb87bde3
2 changed files with 3 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ pub mod defaults {
pub const DEFAULT_CONCURRENT_TENANT_SIZE_LOGICAL_SIZE_QUERIES: usize =
super::ConfigurableSemaphore::DEFAULT_INITIAL.get();
pub const DEFAULT_METRIC_COLLECTION_INTERVAL: &str = "60 s";
pub const DEFAULT_METRIC_COLLECTION_INTERVAL: &str = "10 min";
pub const DEFAULT_METRIC_COLLECTION_ENDPOINT: Option<reqwest::Url> = None;
///
/// Default built-in configuration file.

View File

@@ -69,7 +69,8 @@ def test_metric_collection(
# to trigger remote storage operations in a controlled way
neon_env_builder.pageserver_config_override = (
f"""
metric_collection_endpoint="{metric_collection_endpoint}"
metric_collection_interval="60s"
metric_collection_endpoint="{metric_collection_endpoint}"
"""
+ "tenant_config={pitr_interval = '0 sec'}"
)