frontend: bump bits to 0.1.3.dev0 (subject-filtered user-limit NATS scans) - #232
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.
Points the frontend's
bitsdependency at0.1.3.dev0(bits0.1.3),which contains the subject-filtered user-limit NATS scan fix
(ecmwf/bits-broker#59).
Why
With the
bits-leases-userlimitsKV bucket bloated past the NATS client'sper-subscription buffer, the broker's whole-bucket scans (
list_user_slotsonstrict-mode admission, and the periodic reclaim sweep) degraded into an
async-nats"slow consumer" / resubscribe storm that flooded logs and stalledthe dispatcher queue. bits
0.1.3replaces thekeys()+ per-keyentry()enumeration with a single server-side subject-filtered
watchstream, andbounds the reclaim sweep with a timeout.
Validation
This exact bits code (the
0.1.3.dev0tag commit is the merged #59 plus theversion bump) was A/B-tested on a test cluster with a 120k-entry bucket: the
previous frontend produced 953 slow-consumer events in a 240s window, the
new build produced 0.
Change
frontend/Cargo.toml:bitsrev = 9bdacb5→tag = "0.1.3.dev0"Cargo.lock: bits0.1.2→0.1.3(bits-only)No image bump / deploy in this PR — that's a follow-up once merged.