pingcap / pingcap/tidb

Excessive PD goroutine growth during large-scale Restore (3M regions)

Open
#64,990 0 comments 0 reactions 0 assignees View on GitHub
affects-7.5 component/br may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)
Running Restore on a cluster with 3 million regions and 75+ TiKV nodes.
During the ScanRegions phase, the PD server’s goroutine count grows abnormally.

Image

### 2. What did you expect to see? (Required)
PD goroutine count remains stable (e.g., below ~10k) during the restore workflow.
### 3. What did you see instead (Required)
PD goroutine count keeps increasing and eventually reaches ~1 million, causing significant slowdown during the region scanning phase.
### 4. What is your TiDB version? (Required)
v7.5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.