Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Commit

Permalink
Reduce max memory usage of sender queue
Browse files Browse the repository at this point in the history
  • Loading branch information
LotharSee committed Jan 30, 2018
1 parent 8c5d72c commit df07249
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions agent/trace-agent.ini
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ max_spans_per_payload=1000
flush_period_seconds=5
# Maximum amount of trace data we can have queued up in case we are unable to send them to DD servers.
# A value <= 0 disables this limit
# Default: 256MB
queue_max_bytes=268435456
# Default: 64MB
queue_max_bytes=67108864

###################################################
# Service writer - extracts service info from
Expand All @@ -101,8 +101,8 @@ flush_period_seconds=5
queue_max_payloads=-1
# Maximum amount of service data we can have queued up in case we are unable to send it to DD servers.
# A value <= 0 disables this limit
# Default: 256MB
queue_max_bytes=268435456
# Default: 64MB
queue_max_bytes=67108864
# Maximum amount of time for which we keep service data enqueued in case we are unable to send it to DD servers.
# A value <= 0 disables this limit
# Default: -1
Expand All @@ -115,5 +115,5 @@ queue_max_age_seconds=-1
[trace.writer.stats]
# Maximum amount of stats data we can have queued up in case we are unable to send them to DD servers.
# A value <= 0 disables this limit
# Default: 256MB
queue_max_bytes=268435456
# Default: 64MB
queue_max_bytes=67108864
4 changes: 2 additions & 2 deletions writer/config/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ type QueuablePayloadSenderConf struct {
func DefaultQueuablePayloadSenderConf() QueuablePayloadSenderConf {
return QueuablePayloadSenderConf{
MaxAge: 20 * time.Minute,
MaxQueuedBytes: 256 * 1024 * 1024, // 256 MB
MaxQueuedPayloads: -1, // Unlimited
MaxQueuedBytes: 64 * 1024 * 1024, // 64 MB
MaxQueuedPayloads: -1, // Unlimited
ExponentialBackoff: backoff.DefaultExponentialConfig(),
}
}

0 comments on commit df07249

Please sign in to comment.