TiFlash process get blocked when cpu_quota is less than 1 cpu
Open
Nobody has claimed this yet.
severity/moderate
type/bug
- Dominant language
- C++
- Stars
- 1k
- Forks
- 423
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 24
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Deploy a tidb cluster using tiup with cpu_quota less than 100%
tiflash_servers:
- host: 127.0.0.1
...
resource_control:
cpu_quota: 80%
2. What did you expect to see? (Required)
tiflash starts normally or exit with explicit error message
3. What did you see instead (Required)
tiflash blocks forever
4. What is your TiFlash version? (Required)
master
Contributor guide
No contributing guide indexed for this repository
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
Reproduce with a TiUP cluster whose tiflash_servers resource_control.cpu_quota is set to 80%, then trace the TiFlash startup and CPU resource-control path involved in the block. Done means TiFlash either starts normally with a quota below one CPU or exits with an explicit error instead of blocking forever.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100