-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support promotion rule override in vttablet
#16344
Support promotion rule override in vttablet
#16344
Conversation
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Tim Vaillancourt <[email protected]>
aa24995
to
d32cc8e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16344 +/- ##
==========================================
+ Coverage 68.61% 68.67% +0.06%
==========================================
Files 1544 1548 +4
Lines 197993 199119 +1126
==========================================
+ Hits 135848 136747 +899
- Misses 62145 62372 +227 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
I'm going to close this for now in favour of using dynamic tablet tags + our custom durability policy #16857 will implement dynamic tablet tags 🚀 |
Description
This PR implements #16377 by adding a
--promotion-rule topodatapb.PromotionRule
flag tovttablet
(and indirectlyvtcombo
) to express an override to the promotion rule of a single tabletThis is an "advanced" feature that comes with some risk if promotion rules like
must_not
are deployed too widely; this risk falls "on the user" and a no-override deployment is recommended (the Durability Policy calls the shots for tablets consistently)In a subsequent release I would like to phase-out the
promotionrule.CandidatePromotionRule
type in favour of the newtopodatapb.PromotionRule
type (added in this PR). I believe waiting 1 release will ensure proto-level downgrade/upgrade compatibilityRelated Issue(s)
#16377
Checklist
Deployment Notes