-
Notifications
You must be signed in to change notification settings - Fork 725
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
Standardize the use of scheduler name/type and checker name/type #8379
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Comments
okJiang
changed the title
Unify scheduler name/type and checker name/type
Standardize the use of scheduler name/type and checker name/type
Jul 9, 2024
This was referenced Jul 9, 2024
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jul 15, 2024
ref #8379 checker: use CheckerSchedulerType for checker - move metrics to proper place - rename GetType() to Name() Signed-off-by: okJiang <819421878@qq.com>
ti-chi-bot bot
added a commit
that referenced
this issue
Jul 17, 2024
ref #8379 Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot
added a commit
that referenced
this issue
Jul 25, 2024
…ckerSchedulerType. (#8416) ref #8379 1. Replace the input parameter of AddScheduler with types.CheckerSchedulerType. 2. Simplified the logic of AddScheduler by using a temporary map. 3. Remove scope's redundant definition and use types.CheckerSchedulerType. Signed-off-by: okJiang <819421878@qq.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot
added a commit
that referenced
this issue
Aug 1, 2024
ref #8379 - GetType() returns types.CheckerSchedulerType directly - keep the compatibility in `PersistOptions` and `PersistConfig“ - wrap `operator.OperatorLimitCounter.WithLabelValues().Inc()` to func `IncOperatorLimitCounter` Signed-off-by: okJiang <819421878@qq.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Aug 8, 2024
ref #8379 - Remove the old scheduler type, such as BalanceLeaderType - Instead old scheduler type string of types.CheckerSchedulerType - Instead old scheduler name of types.CheckerSchedulerType in SchedulerRegisterMap Signed-off-by: okJiang <819421878@qq.com>
This was referenced Aug 12, 2024
ti-chi-bot bot
added a commit
that referenced
this issue
Aug 21, 2024
ref #8379 Signed-off-by: okJiang <819421878@qq.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot
added a commit
that referenced
this issue
Sep 24, 2024
close #8379 Signed-off-by: okJiang <819421878@qq.com> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Sep 29, 2024
ref #8379 Signed-off-by: Ryan Leung <rleungx@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Target
Naming summary
checker
scheduler
Deep scheduler name/type
For schedulers, there is indeed a difference between name and type, but in the current code, these two are completely confused, making it difficult for readers to understand them. This section aims to completely distinguish them and give a clear definition. First
name
There are three ways to name a name
WithXxxxxxName
These three schedulers allow you to specify their names at creation time.
ScatterRange
Scatter-range-scheduler name is named by the key-range entered by the user, named scatter-range- {key-range} . Later changed to scatter-range-scheduler- {key-range}
Other
The names of other schedulers can be directly equivalent to type because they are constant
Name vs type
Compatibility issues
Keep the original monitoring and add the modified monitoring.schedulerConfig will save (xxxx-yyyy) schedulerType in PersistOptions, and then persist it to storage. It is necessary to find the form of schedulerType when reloading and then re-Set it to the form of xxxx-yyyy-scheduler to ensure compatibility.Conclusions
After some offline discussions, here are some conclusions.
Code changes
ref #8316
There are too many code changes. After splitting PR, review them one by one and merge them into the
feature branch, and then merge them into themaster.Progress
The text was updated successfully, but these errors were encountered: