UCP: support AutoSclaerRef for TidbCluster #2484
Labels
area/auto-scaling
related to auto-scaling
challenge-program-2
difficulty/medium
status/WIP
Issue/PR is being worked on
Description
Currently, 1 tidbcluster could be controlled by multi
TidbclusterAutoScaler
which is not we want. We need 1 tidbcluster should be controlled by no more than 1TidbclusterAutoScaler
.To achieve this purpose, We want to add a new attribute in
TidbCluster
Status and named asAutoSclaerRef
.The
AutoSclaerRef
would be kind like mutex that theTidbclusterAutoScaler
should first patch itself to the target Tidbcluster'sAutoSclaerRef
. If success, it would start to sync the auto-scaler procss for the target tidbcluster. If not success, it just only skip the current syncing.The controller logic is much more similar as
MonitorRef
, you can know the reference from this pr. #2424Score
Mentor(s)
Contact the mentors: #tidb-challenge-program channel in TiDB-Operator Community Slack Workspace
As the logic is not simple and the detail is still needed to be discussed, we are welcome for every challenger to contact the mentor if you have any questions.
Recommended Skills
The text was updated successfully, but these errors were encountered: