-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
(performance)[scanner] Isolate local and remote queries using different scanner… #11006
(performance)[scanner] Isolate local and remote queries using different scanner… #11006
Conversation
be/src/common/config.h
Outdated
// number of s3 scanner thread pool size | ||
CONF_Int32(doris_s3_scanner_thread_pool_thread_num, "48"); | ||
// number of s3 scanner thread pool queue size | ||
CONF_Int32(doris_s3_scanner_thread_pool_queue_size, "102400"); |
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.
102400 is too big,
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.
changed to 10240
be/src/runtime/exec_env.h
Outdated
@@ -200,6 +201,7 @@ class ExecEnv { | |||
|
|||
// TODO(cmy): find a better way to unify these 2 pools. | |||
PriorityThreadPool* _scan_thread_pool = nullptr; | |||
PriorityThreadPool* _s3_scan_thread_pool = nullptr; |
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.
_s3_scan_thread_pool need to be _remote_scan_thread_pool
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.
done
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.
LGTM
PR approved by anyone and no changes requested. |
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.
LGTM
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.
LGTM
Proposed changes
Issue Number: close #xxx
Problem Summary:
Scanner thread pool shared by remote data and local data query. The high latency of remote data query will occupy the thread pool worker thread and affect the performance of local data query.
Therefore, a remote scanner thread pool for remote data query is added to avoid the impact on local query.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...