Skip to content

Commit

Permalink
config: increase dogstatsd_no_aggregation_pipeline_batch_size defau…
Browse files Browse the repository at this point in the history
…lt. (#13879)

`256` was fairly small, it'll be better to send more metrics per payload.
  • Loading branch information
remeh committed Oct 17, 2022
1 parent 5d8bbfa commit e57ba47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/dogstatsd/internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ The NoAggregationStreamWorker runs an infinite loop in a goroutine. It receives

It runs only when `dogstatsd_no_aggregation_pipeline` is set to `true`.

The payload being sent to the intake (through the normal `Serializer`/`Forwarder` pieces) contains, at maximum, `dogstatsd_no_aggregation_pipeline_batch_size` metrics. This value defaults to `256`.
The payload being sent to the intake (through the normal `Serializer`/`Forwarder` pieces) contains, at maximum, `dogstatsd_no_aggregation_pipeline_batch_size` metrics. This value defaults to `2048`.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ func InitConfig(config Config) {
// Enable the no-aggregation pipeline.
config.BindEnvAndSetDefault("dogstatsd_no_aggregation_pipeline", true)
// How many metrics maximum in payloads sent by the no-aggregation pipeline to the intake.
config.BindEnvAndSetDefault("dogstatsd_no_aggregation_pipeline_batch_size", 256)
config.BindEnvAndSetDefault("dogstatsd_no_aggregation_pipeline_batch_size", 2048)

// To enable the following feature, GODEBUG must contain `madvdontneed=1`
config.BindEnvAndSetDefault("dogstatsd_mem_based_rate_limiter.enabled", false)
Expand Down

0 comments on commit e57ba47

Please sign in to comment.