Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 72ae750

Browse files
committed
sync docker/package configs + config docs
1 parent b3dffc3 commit 72ae750

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

docs/config.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ metric-max-stale = 6h
4747
# Interval to run garbage collection job
4848
gc-interval = 1h
4949
# duration before secondary nodes start serving requests
50+
# shorter warmup means metrictank will need to query cassandra more if it doesn't have requested data yet.
51+
# in clusters, best to assure the primary has saved all the data that a newly warmup instance will need to query, to prevent gaps in charts
5052
warm-up-period = 1h
5153
# settings for rollups (aggregation for archives)
5254
# comma-separated of archive specifications.
@@ -119,7 +121,8 @@ proftrigger-freq = 60s
119121
proftrigger-path = /tmp
120122
# minimum time between triggered profiles
121123
proftrigger-min-diff = 1h
122-
# if this many bytes allocated, trigger a heap profile
124+
# if process consumes this many bytes (see bytes_sys in dashboard), trigger a heap profile for developer diagnosis
125+
# set it higher than your typical memory usage, but lower than how much RAM the process can take before its get killed
123126
proftrigger-heap-thresh = 25000000000
124127
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
125128
log-min-dur = 5min
@@ -173,6 +176,7 @@ brokers = kafka:9092
173176
# kafka topic (may be given multiple times as a comma-separated list)
174177
topics = mdm
175178
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
179+
# the further back in time you go, the more old data you can load into metrictank, but the longer it takes to catch up to realtime data
176180
offset = last
177181
# save interval for offsets
178182
offset-commit-interval = 5s
@@ -291,4 +295,11 @@ timout = 1s
291295
num-conns = 10
292296
# Max number of metricDefs allowed to be unwritten to cassandra
293297
write-queue-size = 100000
298+
#automatically clear series from the index if they have not been seen for this much time.
299+
max-stale = 0
300+
#Interval at which the index should be checked for stale series.
301+
prune-interval = 3h
302+
#frequency at which we should update the metricDef lastUpdate field.
303+
update-interval = 4h
304+
#fuzzyness factor for update-interval. should be in the range 0 > fuzzyness <= 1. With an updateInterval of 4hours and fuzzyness of 0.5, metricDefs will be updated every 4-6hours.
294305
```

scripts/config/metrictank-docker.ini

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ metric-max-stale = 6h
3131
gc-interval = 1h
3232

3333
# duration before secondary nodes start serving requests
34+
# shorter warmup means metrictank will need to query cassandra more if it doesn't have requested data yet.
35+
# in clusters, best to assure the primary has saved all the data that a newly warmup instance will need to query, to prevent gaps in charts
3436
warm-up-period = 1h
3537

3638
# settings for rollups (aggregation for archives)
@@ -102,7 +104,8 @@ proftrigger-freq = 60s
102104
proftrigger-path = /tmp
103105
# minimum time between triggered profiles
104106
proftrigger-min-diff = 1h
105-
# if this many bytes allocated, trigger a heap profile
107+
# if process consumes this many bytes (see bytes_sys in dashboard), trigger a heap profile for developer diagnosis
108+
# set it higher than your typical memory usage, but lower than how much RAM the process can take before its get killed
106109
proftrigger-heap-thresh = 25000000000
107110

108111
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
@@ -151,6 +154,7 @@ brokers = kafka:9092
151154
# kafka topic (may be given multiple times as a comma-separated list)
152155
topics = mdm
153156
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
157+
# the further back in time you go, the more old data you can load into metrictank, but the longer it takes to catch up to realtime data
154158
offset = last
155159
# save interval for offsets
156160
offset-commit-interval = 5s
@@ -262,4 +266,4 @@ prune-interval = 3h
262266
#frequency at which we should update the metricDef lastUpdate field.
263267
update-interval = 4h
264268
#fuzzyness factor for update-interval. should be in the range 0 > fuzzyness <= 1. With an updateInterval of 4hours and fuzzyness of 0.5, metricDefs will be updated every 4-6hours.
265-
update-fuzzyness = 0.5
269+
update-fuzzyness = 0.5

scripts/config/metrictank-package.ini

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ metric-max-stale = 6h
3131
gc-interval = 1h
3232

3333
# duration before secondary nodes start serving requests
34+
# shorter warmup means metrictank will need to query cassandra more if it doesn't have requested data yet.
35+
# in clusters, best to assure the primary has saved all the data that a newly warmup instance will need to query, to prevent gaps in charts
3436
warm-up-period = 1h
3537

3638
# settings for rollups (aggregation for archives)
@@ -102,7 +104,8 @@ proftrigger-freq = 60s
102104
proftrigger-path = /tmp
103105
# minimum time between triggered profiles
104106
proftrigger-min-diff = 1h
105-
# if this many bytes allocated, trigger a heap profile
107+
# if process consumes this many bytes (see bytes_sys in dashboard), trigger a heap profile for developer diagnosis
108+
# set it higher than your typical memory usage, but lower than how much RAM the process can take before its get killed
106109
proftrigger-heap-thresh = 25000000000
107110

108111
# only log incoming requests if their timerange is at least this duration. Use 0 to disable
@@ -151,6 +154,7 @@ brokers = localhost:9092
151154
# kafka topic (may be given multiple times as a comma-separated list)
152155
topics = mdm
153156
# offset to start consuming from. Can be one of newest, oldest,last or a time duration
157+
# the further back in time you go, the more old data you can load into metrictank, but the longer it takes to catch up to realtime data
154158
offset = last
155159
# save interval for offsets
156160
offset-commit-interval = 5s
@@ -262,4 +266,4 @@ prune-interval = 3h
262266
#frequency at which we should update the metricDef lastUpdate field.
263267
update-interval = 4h
264268
#fuzzyness factor for update-interval. should be in the range 0 > fuzzyness <= 1. With an updateInterval of 4hours and fuzzyness of 0.5, metricDefs will be updated every 4-6hours.
265-
update-fuzzyness = 0.5
269+
update-fuzzyness = 0.5

0 commit comments

Comments
 (0)