Repository navigation
fix(metrics): bound latency segment memory by summing into fixed time buckets #398
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
8d4208e
fix(metrics): sum latency segments into fixed time buckets instead of…
LeeroyHannigan b9555b3
Merge branch 'main' into fix/bounded-latency-segments
LeeroyHannigan 99c3e89
Merge origin/main into fix/bounded-latency-segments
LeeroyHannigan 6fe3bda
test(metrics): check the segment store's account key
LeeroyHannigan 48768ee
docs(metrics): state the latency segment bound per account
LeeroyHannigan a43ef7e
fix(metrics): drop the segment rings of an account idle for a day
LeeroyHannigan b276bd5
refactor(metrics): apply the empty account rule in the segment store
LeeroyHannigan e9567da
test(metrics): name the accounts in the bound test's comment
LeeroyHannigan 9b6bff1
test(metrics): trim the segment store tests
LeeroyHannigan 0c3a1d0
test(metrics): label the segment reference check with the filter index
LeeroyHannigan 2e5e047
fix(metrics): hold only the segment buckets that had a request
LeeroyHannigan 03bae35
docs(metrics): state the segment memory per bucket held and the relea…
LeeroyHannigan 0019e59
test(metrics): query through the clock seam in the collector tests
LeeroyHannigan b6d0196
test(metrics): move the segment bound and prune tests to their own file
LeeroyHannigan 11bfdbe
docs(metrics): give the segment memory per release and count the keys…
LeeroyHannigan 8412d67
refactor(metrics): compare the newest bucket in the prune itself
LeeroyHannigan 5532d07
Merge origin/main into fix/bounded-latency-segments
LeeroyHannigan 737a515
test(metrics): pin the drop of every stale bucket in a record
LeeroyHannigan 9c57cba
refactor(metrics): add a request to a bucket through add_bucket
LeeroyHannigan da45615
test(metrics): drop the ignored timing comparison of the old push
LeeroyHannigan 17f47a2
test(metrics): count held and allocated buckets in one helper
LeeroyHannigan 2e5a5f6
docs(metrics): state the prune lag and the kept allocation in comments
LeeroyHannigan 7967ac7
docs(metrics): give the pair memory per account shape and an upgrade …
LeeroyHannigan 5c4f613
test(metrics): clear the two pedantic lints in the segment prune test
LeeroyHannigan 637cefd
docs(metrics): give the measured cost range of a pair and the throttl…
LeeroyHannigan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading the clock before the lock here, or before the read lock in
query_segments, leaves every test passing. The comment's property rests on the lock placement alone. A clock seam on the record path would let a test hold it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reproduced for both paths. 2e5e047 moves the clock behind
record_segments_withandquery_segments_with, and the production paths passInstant::now.segment_record_and_query_read_the_clock_under_the_lockpasses a clock that assertstry_readandtry_writeon the segments lock returnWouldBlock. A clock read before either lock fails it.