-
Notifications
You must be signed in to change notification settings - Fork 719
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
resource_manager: implement the independent primary election #6086
Conversation
Signed-off-by: JmPotato <ghzpotato@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Skipping CI for Draft Pull Request. |
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6086 +/- ##
==========================================
+ Coverage 73.95% 74.07% +0.12%
==========================================
Files 383 385 +2
Lines 37882 37958 +76
==========================================
+ Hits 28015 28119 +104
+ Misses 7409 7361 -48
- Partials 2458 2478 +20
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
// resourceManagerKeyspaceGroupPrimaryElectionPrefix defines the key prefix for keyspace group primary election. | ||
// The entire key is in the format of "/pd/<cluster-id>/microservice/resource_manager/keyspace-group-XXXXX/primary" | ||
// in which XXXXX is 5 digits integer with leading zeros. For now we use 0 as the default cluster id. | ||
resourceManagerKeyspaceGroupPrimaryElectionPrefix = "/pd/0/microservice/resource_manager/keyspace-group-" |
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.
Will the resource manager have the concept of a keyspace group?
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.
Yes, in the assumption of the future, we may separate the resource manager service into several to serve different keyspace groups.
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@@ -32,13 +32,15 @@ import ( | |||
|
|||
const ( | |||
defaultName = "Resource Manager" | |||
defaultBackendEndpoints = "127.0.0.1:2379" | |||
defaultBackendEndpoints = "http://127.0.0.1:3379" |
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.
maybe conflict with tso's defaultListenAddr
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.
BTW, I think 2379 is better.
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2aa3863
to
e8d9c05
Compare
PTAL @CabinfeverB |
Signed-off-by: JmPotato <ghzpotato@gmail.com>
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.
rest lgtm
Signed-off-by: JmPotato <ghzpotato@gmail.com>
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 3e15ec4
|
What problem does this PR solve?
Issue Number: ref #5766.
What is changed and how does it work?
Check List
Tests
Release note