pingcap / pingcap/tidb-operator

Pod Autoscaler for tidb (SQL Processing) component in TiDB Cluster

Open
#5,529 2 comments 0 reactions 0 assignees View on GitHub

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:

  1. What was the outcome of HPA evaluation done by the PingCap team? (as said here it did not work: doc
  2. Do you have such features in your roadmap?
  3. If tc status is not-ready and tidb phase is scale, how exactly does it affect the TiDB cluster?
  4. can we maintain a healthy state based on scale action done by hpa? or would it be anti-pattern for operator framework?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.