How does TiDB avoid timeout when analyzing large regions?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB如何避免大region analyze超时的?

| username: TiDBer_D7483dYr

【TiDB Usage Environment】Production\Test Environment\POC Test
【TiDB Version】Latest
【Encountered Problem】

Looking at the latest code, the RPC timeout for a single region’s analyze request is still tikv.ReadTimeoutMedium (60s).
When a region is very large, such as 10G, 60s may not be enough to complete the run.

【Reproduction Path】What operations were performed to encounter the problem
【Problem Phenomenon and Impact】

| username: 啦啦啦啦啦 | Original post link

Regions will automatically split. When the data in a Region exceeds the default Region size limit, it will start to split into 2 Regions.

| username: TiDBer_D7483dYr | Original post link

Okay, there might not be any major issues for now. I see that support for Dynamic size region is coming up.

The issue of large regions needs to be considered, right?

| username: banana_jian | Original post link

It looks like this is already planned.

| username: Lily2025 | Original post link

The dynamic size region solution should have considered this issue. When reading, it will be split according to the region-bucket-size (default 96M).

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.