From e1195ab17320a07d09066edd31f412a50a96a61f Mon Sep 17 00:00:00 2001 From: Jared Tan Date: Tue, 4 Jun 2019 09:17:18 +0800 Subject: [PATCH] add time series implementation configuration. (#2815) * add time series implementation configuration. * add configuration-api. --- docker/oap/docker-entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/oap/docker-entrypoint.sh b/docker/oap/docker-entrypoint.sh index 4918b31d9d..7ed09d6287 100755 --- a/docker/oap/docker-entrypoint.sh +++ b/docker/oap/docker-entrypoint.sh @@ -68,6 +68,10 @@ storage: password: \${SW_ES_PASSWORD:""} indexShardsNumber: \${SW_STORAGE_ES_INDEX_SHARDS_NUMBER:2} indexReplicasNumber: \${SW_STORAGE_ES_INDEX_REPLICAS_NUMBER:0} + # Those data TTL settings will override the same settings in core module. + recordDataTTL: \${SW_STORAGE_ES_RECORD_DATA_TTL:7} # Unit is day + otherMetricsDataTTL: \${SW_STORAGE_ES_OTHER_METRIC_DATA_TTL:45} # Unit is day + monthMetricsDataTTL: \${SW_STORAGE_ES_MONTH_METRIC_DATA_TTL:18} # Unit is month # Batch process setting, refer to https://www.elastic.co/guide/en/elasticsearch/client/java-api/5.5/java-docs-bulk-processor.html bulkActions: \${SW_STORAGE_ES_BULK_ACTIONS:2000} # Execute the bulk every 2000 requests bulkSize: \${SW_STORAGE_ES_BULK_SIZE:20} # flush the bulk every 20mb @@ -147,6 +151,7 @@ core: - Day - Month # Set a timeout on metrics data. After the timeout has expired, the metrics data will automatically be deleted. + enableDataKeeperExecutor: \${SW_CORE_ENABLE_DATA_KEEPER_EXECUTOR:true} # Turn it off then automatically metrics data delete will be close. recordDataTTL: \${SW_CORE_RECORD_DATA_TTL:90} # Unit is minute minuteMetricsDataTTL: \${SW_CORE_MINUTE_METRIC_DATA_TTL:90} # Unit is minute hourMetricsDataTTL: \${SW_CORE_HOUR_METRIC_DATA_TTL:36} # Unit is hour @@ -195,6 +200,8 @@ telemetry: prometheus: host: \${SW_TELEMETRY_PROMETHEUS_HOST:0.0.0.0} port: \${SW_TELEMETRY_PROMETHEUS_PORT:1234} +configuration: + none: envoy-metric: default: EOT -- GitLab