Skip to content

Commit 0360777

Browse files
authored
feat: Set querier.max-flamegraph-nodes-max default to 1,048,576 (#4370)
1 parent 1a30550 commit 0360777

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/pyroscope/help-all.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ Usage of ./pyroscope:
576576
-querier.max-flamegraph-nodes-default int
577577
Maximum number of flame graph nodes by default. 0 to disable. (default 8192)
578578
-querier.max-flamegraph-nodes-max int
579-
Maximum number of flame graph nodes allowed. 0 to disable.
579+
Maximum number of flame graph nodes allowed. 0 to disable. (default 1048576)
580580
-querier.max-query-length duration
581581
The limit to length of queries. 0 to disable. (default 1d)
582582
-querier.max-query-lookback duration

cmd/pyroscope/help.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Usage of ./pyroscope:
160160
-querier.max-flamegraph-nodes-default int
161161
Maximum number of flame graph nodes by default. 0 to disable. (default 8192)
162162
-querier.max-flamegraph-nodes-max int
163-
Maximum number of flame graph nodes allowed. 0 to disable.
163+
Maximum number of flame graph nodes allowed. 0 to disable. (default 1048576)
164164
-querier.max-query-length duration
165165
The limit to length of queries. 0 to disable. (default 1d)
166166
-querier.max-query-lookback duration

docs/sources/configure-server/reference-configuration-parameters/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@ distributor_usage_groups:
22722272
22732273
# Maximum number of flame graph nodes allowed. 0 to disable.
22742274
# CLI flag: -querier.max-flamegraph-nodes-max
2275-
[max_flamegraph_nodes_max: <int> | default = 0]
2275+
[max_flamegraph_nodes_max: <int> | default = 1048576]
22762276
22772277
# The tenant's shard size, used when store-gateway sharding is enabled. Value of
22782278
# 0 disables shuffle sharding for the tenant, that is all tenant blocks are

pkg/validation/limits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (l *Limits) RegisterFlags(f *flag.FlagSet) {
180180
f.IntVar(&l.MaxProfileSymbolValueLength, "validation.max-profile-symbol-value-length", 65535, "Maximum length of a profile symbol value (labels, function names and filenames, etc...). Profiles are not rejected instead symbol values are truncated. 0 to disable.")
181181

182182
f.IntVar(&l.MaxFlameGraphNodesDefault, "querier.max-flamegraph-nodes-default", 8<<10, "Maximum number of flame graph nodes by default. 0 to disable.")
183-
f.IntVar(&l.MaxFlameGraphNodesMax, "querier.max-flamegraph-nodes-max", 0, "Maximum number of flame graph nodes allowed. 0 to disable.")
183+
f.IntVar(&l.MaxFlameGraphNodesMax, "querier.max-flamegraph-nodes-max", 1<<20, "Maximum number of flame graph nodes allowed. 0 to disable.")
184184

185185
f.Var(&l.DistributorAggregationWindow, "distributor.aggregation-window", "Duration of the distributor aggregation window. Requires aggregation period to be specified. 0 to disable.")
186186
f.Var(&l.DistributorAggregationPeriod, "distributor.aggregation-period", "Duration of the distributor aggregation period. Requires aggregation window to be specified. 0 to disable.")

0 commit comments

Comments
 (0)