Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client] enable aggregation by default #158

Merged
merged 4 commits into from
Sep 30, 2021
Merged

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Sep 15, 2021

This change will set aggregation for simple types by default, this would reduce the overall packet traffic to the server. The goal is to reduce the overall load on the dogstatsd client-server environments. Aggregation comes with a slight overhead on the client side, but it's clearly offset by the gains on the server side.

Please note that this PR has the effect of making metric submission with sample rates ineffectual as they make no sense in the context of metric aggregation. In practice, the metric is just aggregated and the sampling is just ignored.

@truthbk truthbk added this to the 3.0.0 milestone Sep 15, 2021
@truthbk
Copy link
Member Author

truthbk commented Sep 23, 2021

Got to fix the perf tests, but the actual client code is reviewable. Will push the fix soon.

@truthbk truthbk merged commit 0eb2814 into master Sep 30, 2021
@truthbk truthbk deleted the jaime/aggregation_default branch September 30, 2021 03:40
vickenty added a commit that referenced this pull request Nov 25, 2021
Setting was enabled by default in #158, but this change was reverted by
accident when #157 was merged.
vickenty added a commit that referenced this pull request Dec 6, 2021
* Re-enable aggregation by default

Setting was enabled by default in #158, but this change was reverted by
accident when #157 was merged.

* Disable aggregation for telemetry tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants