Repository navigation
perf: per-run budgets for the background loops (#2019) - #2020
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed and why
The hot-path budgets of #2003 hold the requests the gateway serves; this holds its background loops the same way (#1998's speed criterion).
app/ferrofed-server/tests/it/e2e/loop_budget.rs, in the e2e lane, runs one iteration of each loop five times after two warm runs, in the steady state its loop runs in: the store's sweep of expired rows (Store::sweep, over a real PostgreSQL 19), the registry reload of a registry document, asSIGHUPasks it (Reloader::reload), the PMIR subscription's check against a stub Patient Identity Registry (IdentityFeed::check, the subscription up) and the mCSD directory's refresh against a stub Care Services Directory (DirectoryRegistry::refresh, unchanged). The least allocations and the most store calls of each are held toBUDGETS.e2e::budget(counting,warm,judge,StoreCalls::installed), so the two cases count the same way.The budgets come from the Linux CI figures of the e2e lane (job 140137806468): each allocation budget is the figure plus 2%, each store-call budget the figure itself.
No user-visible change, so no changelog fragment.
Closes #2019
Checklist
no-changelog.