pingcap / pingcap/tidb

Optimize resource usage during lightning import

Open
#39,671 1 comment 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
![image](https://user-images.githubusercontent.com/38338933/205875438-af616b1f-c6cf-429b-87c8-2658bcade1f1.png)

During the current import period, the resource usage of lightning is not balanced, it is spiky

It can be seen from the log: it seems to be pulling a batch of csv files --" compact sst --> pulling a batch of csv -- "compact sst .....

Can the code be optimized? Make resource utilization more fully

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.