-
Notifications
You must be signed in to change notification settings - Fork 751
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
chore: replace max_io_request #12997
chore: replace max_io_request #12997
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
use thread_nums as permit_nums to control the concurrency. Do we need to use try_join_all directly without permits? or use thread_nums * 4 as the permit_nums? cc @dantengsky @zhyass |
src/query/service/tests/it/storages/fuse/operations/mutation/recluster_mutator.rs
Show resolved
Hide resolved
Docker Image for PR
|
Docker Image for PR
|
maybe we should add new settings is better, with default values same to |
I'm not sure whether we need the factor * thread_nums or just use try_join_all() |
it may be necessary when we need to adjust its parallel? |
Looks we don't need the new setting, only adjust a factor with CPU is fine. |
ci-benchmark shows no performance degradations, which is expected, since all the modifications are table mutation-related only (If I get it right). but scenarios the ci-benchmark not covered, e.g. deletions/compactions/replace-into, etc, we do not know the impacts yet. Maybe too conservative, but I am with @zhang2014 , that we may need to introduce a new setting(let's say, |
I agree with that. When we set max_stroage_io_request, we will also set max_mutation_io_request, but we can also set max_mutation_io_request individually. And no need factor, just use max_mutation_io_request as the permit_nums in execute_futures_in_parallel. cc @dantengsky @zhang2014 @BohuTANG @zhyass can we be consistent with this? |
Hmm... |
* replace max_io_request * fix check * replace max_io_request with max_threads * remove write_segments * fix typo * use factor 4 when execute_futures_in_parallel advised by zhyass * rename * rename * add factor * use factor as 2
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Summary about this PR
we need to use thread_nums to limit the permit_nums , in some cases, if the permit num is too large, we will get oom.
This change is