databend
databend copied to clipboard
Feature: add resource quota
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?
After the new processor and new planner tasks are finished, the resource quota task will start.
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
cool
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.