-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix SST thread not taking effect #173
Conversation
|
||
// This pool is used when handling ingest SST raft messages, e.g. | ||
// when using BR / lightning. | ||
sst_handle_pool_size: (cpu_num * 0.3).clamp(2.0, 8.0) as usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not using apply_raft_batch_system.low_priority_pool_size
directly?
@@ -286,7 +286,6 @@ pub unsafe fn run_proxy( | |||
fatal!("unknown configuration options: {}", e); | |||
} | |||
} | |||
crate::config::address_proxy_config(&mut config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? address_proxy_config will also do some checkings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This address have no effect, becuase the process then exited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is a config check, if address_proxy_config can't pass, it will call fatal
which print out a error log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, PTAL again.
Signed-off-by: Wish <[email protected]>
Signed-off-by: Wish <[email protected]>
Signed-off-by: Wish <[email protected]>
Signed-off-by: Wish [email protected]
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
Override the low-apply thread pool size using a Proxy customized config.
Check List
Tests
Side effects
Documentation
Release note