pingcap / pingcap/tidb

Change the behavior of mem-quota-query

Open
#37,104 0 comments 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
Now tidb distinguishes between soft limit and hard limit, but it does not work very well.
For example, the hard limit can cancel SQL only after all disk drop operations are triggered. During this period, the memory usage may exceed the hard limit.
We should try to spill to disk when the memory reaches the soft limit, and kill when the hard limit is reached.

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.