pingcap / pingcap/tidb-operator
Pod Autoscaler for tidb (SQL Processing) component in TiDB Cluster
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 540
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 18
Description
Question
We are exploring the horizontal pod auto scaler (hpa) for the TiDB component. We tested it by deploying a small tidb cluster and auto-scaler hpa with basic configuration.
HPA was able to scale up and down the TiDB component. But if the replica count was not equal to the default value in TC spec the cluster state went into the not-ready status and tidb phase was changed to scale. This can cause maintenance hindrances for the operator.
Regarding the above-discussed cases, we have a few questions:
- What was the outcome of HPA evaluation done by the PingCap team? (as said here it did not work: doc
- Do you have such features in your roadmap?
- If tc status is not-ready and tidb phase is scale, how exactly does it affect the TiDB cluster?
- can we maintain a healthy state based on scale action done by hpa? or would it be anti-pattern for operator framework?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked HPA/VPA FAQ and the reported behavior when the TC spec replica count differs from the HPA-managed count. Trace how that scaling affects TC readiness and the TiDB phase. Done means establishing answers to the four questions and identifying whether documentation or operator behavior needs to change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100