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

Feature: add resource quota #6935

Closed
1 of 2 tasks
FANNG1 opened this issue Aug 1, 2022 · 5 comments
Closed
1 of 2 tasks

Feature: add resource quota #6935

FANNG1 opened this issue Aug 1, 2022 · 5 comments
Labels
C-feature Category: feature

Comments

@FANNG1
Copy link

FANNG1 commented Aug 1, 2022

now we use 'max_threads' to control cpu resource, we should add other configs like 'max_query_time', 'max_mem' to prevent bad sql ooms databend. any plan to implement this?

@FANNG1 FANNG1 added the C-feature Category: feature label Aug 1, 2022
@BohuTANG
Copy link
Member

BohuTANG commented Aug 1, 2022

After the new processor and new planner tasks are finished, the resource quota task will start.

@BohuTANG BohuTANG changed the title Feature: add resource control to Feature: add resource quota Aug 1, 2022
@BohuTANG BohuTANG mentioned this issue Aug 1, 2022
4 tasks
@BohuTANG
Copy link
Member

Update:
Add a new setting max_execute_time to control max execution time(In milliseconds), you can set it for a session:

set max_execute_time=100;

or for a cluster:

set global max_execute_time=100;

cc @sandflee

@FANNG1
Copy link
Author

FANNG1 commented Aug 30, 2022

cool

@zhang2014
Copy link
Member

max_memory_usage will be implemented in #7290, but it may take some time. at present, we can't track the memory usage accurately. We are try find reasons.

@BohuTANG
Copy link
Member

BohuTANG commented Jun 1, 2024

The memory limit and cpu and running queue all is supports.

@BohuTANG BohuTANG closed this as completed Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature
Projects
None yet
Development

No branches or pull requests

3 participants