-
Notifications
You must be signed in to change notification settings - Fork 4k
QQs: check if schema database record needs an update on tick #11278
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
QQs: check if schema database record needs an update on tick #11278
Conversation
|
This can introduce a lot of CPU burn in clusters with thousands of quorum queues. Has the CPU impact of this been measured? |
|
Relevant: #7863 |
ce90f5d to
204900f
Compare
Nope, but I will run some benchmark tests before final review! |
|
@kjnilsson Looking at the (there are of course costs in actually repairing too, but I would assume that a queue actually needs repairing is unusual, and that a lot of queues needing it even more so) |
The |
Aha, I'll update the function to use that one instead. |
|
@michaelklishin With the addition of
|
|
In other words, with the more efficient Ra leaderboard-based implementation we waste about 1% of the CPU with 10K quorum queues. |
I wrote it a bit weird, but it would be 0.5% CPU with 10k QQs in total (the 0.42 is part of the 0.53) |
15c80f7 to
83a0eed
Compare
|
@Mergifyio backport v3.13.x |
✅ Backports have been created
|
QQs: check if schema database record needs an update on tick (backport #11278)

Proposed Changes
Let QQ run
rabbit_quorum_queue:repair_amqqueue_nodeson tick to repair potential membership discrepancy (RA members compared to amqqueue state members)See #11029
Types of Changes
What types of changes does your code introduce to this project?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply.You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask on the mailing list.
We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.mddocumentFurther Comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution
you did and what alternatives you considered, etc.