-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(metrics): Better align flush times with intervals (#2904)
Align the flush times of backdated metric buckets with bucket intervals so that global flushing becomes more effective. This is done through two changes: 1. Allow to configure `ShiftKey::None` to disable shifting of flushed buckets. If set to `none`, buckets from all projects are flushed at the same time. 2. For backdated buckets, do not use the precise current timestamp. Instead, round it to the current bucket interval, then add the debounce delay. When shifting is configured, the shift is now also added to backdated buckets. Integration tests by default use `shift_key: none` now to improve their execution time, which also helps reduce flakiness.
- Loading branch information
Showing
4 changed files
with
63 additions
and
138 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
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