You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Comma separated list of compaction ranges expressed in the time duration format")
51
-
52
-
f.DurationVar(
53
-
&cfg.ConsistencyDelay,
54
-
"compactor.consistency-delay",
55
-
30*time.Minute,
56
-
fmt.Sprintf("Minimum age of fresh (non-compacted) blocks before they are being processed. Malformed blocks older than the maximum of consistency-delay and %s will be removed.", compact.MinimumAgeForRemoval))
57
-
58
-
f.IntVar(
59
-
&cfg.BlockSyncConcurrency,
60
-
"compactor.block-sync-concurrency",
61
-
20,
62
-
"Number of goroutines to use when syncing block metadata from object storage")
63
-
64
-
f.StringVar(
65
-
&cfg.DataDir,
66
-
"compactor.data-dir",
67
-
"./data",
68
-
"Data directory in which to cache blocks and process compactions")
69
-
70
-
f.DurationVar(
71
-
&cfg.CompactionInterval,
72
-
"compactor.compaction-interval",
73
-
time.Hour,
74
-
"The frequency at which the compaction runs")
75
-
76
-
f.IntVar(
77
-
&cfg.CompactionRetries,
78
-
"compactor.compaction-retries",
79
-
3,
80
-
"How many times to retry a failed compaction during a single compaction interval")
47
+
f.Var(&cfg.BlockRanges, "compactor.block-ranges", "Comma separated list of compaction ranges expressed in the time duration format")
48
+
f.DurationVar(&cfg.ConsistencyDelay, "compactor.consistency-delay", 30*time.Minute, fmt.Sprintf("Minimum age of fresh (non-compacted) blocks before they are being processed. Malformed blocks older than the maximum of consistency-delay and %s will be removed.", compact.MinimumAgeForRemoval))
49
+
f.IntVar(&cfg.BlockSyncConcurrency, "compactor.block-sync-concurrency", 20, "Number of goroutines to use when syncing block metadata from object storage")
50
+
f.StringVar(&cfg.DataDir, "compactor.data-dir", "./data", "Data directory in which to cache blocks and process compactions")
51
+
f.DurationVar(&cfg.CompactionInterval, "compactor.compaction-interval", time.Hour, "The frequency at which the compaction runs")
52
+
f.IntVar(&cfg.CompactionRetries, "compactor.compaction-retries", 3, "How many times to retry a failed compaction during a single compaction interval")
81
53
}
82
54
83
55
// Compactor is a multi-tenant TSDB blocks compactor based on Thanos.
0 commit comments