Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the behavior of mem-quota-query #37104

Open
wshwsh12 opened this issue Aug 15, 2022 · 0 comments
Open

Change the behavior of mem-quota-query #37104

wshwsh12 opened this issue Aug 15, 2022 · 0 comments
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@wshwsh12
Copy link
Contributor

wshwsh12 commented Aug 15, 2022

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.

@wshwsh12 wshwsh12 added the type/enhancement The issue or PR belongs to an enhancement. label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant