-
Notifications
You must be signed in to change notification settings - Fork 5.5k
feat: Allow flexible thread pool monitoring for Spiller cpu pool #26695
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -268,8 +268,14 @@ class PrestoServer { | |
| // 'driverExecutor_'. | ||
| folly::CPUThreadPoolExecutor* driverCpuExecutor_; | ||
|
|
||
| // Executor for spilling. | ||
| std::unique_ptr<folly::CPUThreadPoolExecutor> spillerExecutor_; | ||
| // Executor for spilling. The underlying thread pool executor is a | ||
| // folly::CPUThreadPoolExecutor. The executor is stored as abstract type to | ||
| // provide flexibility of thread pool monitoring. The underlying | ||
| // folly::CPUThreadPoolExecutor can be obtained through 'spillerCpuExecutor_'. | ||
| std::unique_ptr<folly::Executor> spillerExecutor_; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @duxiao1212 for this code. I'm not sure I follow the motivation for this change. Please can you help explain.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right @aditi-pandit - the original type worked. However, we need to change it to BackgroundWhile investigating stuck driver issues, we identified the need for thread monitoring capability on the spiller thread executor. This helps detect and diagnose thread stalls during spill operations. ImplementationBy storing as the base type This follows the same pattern as |
||
| // Raw pointer pointing to the underlying folly::CPUThreadPoolExecutor of | ||
| // 'spillerExecutor_'. | ||
| folly::CPUThreadPoolExecutor* spillerCpuExecutor_; | ||
|
|
||
| std::unique_ptr<VeloxPlanValidator> planValidator_; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.