-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server): Send pre-aggregated metrics in batches (#966)
Uses the metrics aggregator from #958 to send batches of pre-aggregated buckets to the upstream instead of forwarding individual metric values. If sending fails for any reason, the metrics are merged back into the aggregator, which will retry flushing after the next interval. Metric envelopes are not queued like regular envelopes. Instead, they go straight to the EventProcessor worker pool, where they are parsed, normalized and sent to the project's aggregator. This ensures that metric requests do not create long running futures that would slow down the system. For mixed envelopes, metric items are split off and handled separately. Metrics aggregators are spawned on the projects thread, which runs the project cache and manages all project state access. In the future, metrics aggregation will have to be moved to a separate resource to ensure that project state requests remain instant.
- Loading branch information
Showing
18 changed files
with
898 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.