Change the behavior of mem-quota-query
Open
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
Assessment
This issue has not been assessed yet.