-
Notifications
You must be signed in to change notification settings - Fork 15
Add DedicatedExecutor
to FlightSQL Server
#247
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 9 commits
aba2d21
cfe58cd
1f4a4d3
8652be4
e0f06fc
95253e2
44de59e
709c30e
c43f841
ed2798f
d0d3cbf
e638439
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,6 +172,10 @@ pub struct ExecutionConfig { | |
pub tui_batch_size: usize, | ||
#[serde(default = "default_flightsql_server_batch_size")] | ||
pub flightsql_server_batch_size: usize, | ||
#[serde(default = "default_dedicated_executor_enabled")] | ||
pub dedicated_executor_enabled: bool, | ||
#[serde(default = "default_dedicated_executor_threads_percent")] | ||
pub dedicated_executor_threads_percent: f64, | ||
} | ||
|
||
fn default_ddl_path() -> Option<PathBuf> { | ||
|
@@ -204,6 +208,14 @@ fn default_flightsql_server_batch_size() -> usize { | |
8092 | ||
} | ||
|
||
fn default_dedicated_executor_enabled() -> bool { | ||
false | ||
} | ||
|
||
fn default_dedicated_executor_threads_percent() -> f64 { | ||
0.75 | ||
} | ||
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. By default we give the dedicated executor 75% of available CPU threads - since this in config it is configurable |
||
|
||
impl Default for ExecutionConfig { | ||
fn default() -> Self { | ||
Self { | ||
|
@@ -213,6 +225,8 @@ impl Default for ExecutionConfig { | |
cli_batch_size: default_cli_batch_size(), | ||
tui_batch_size: default_tui_batch_size(), | ||
flightsql_server_batch_size: default_flightsql_server_batch_size(), | ||
dedicated_executor_enabled: default_dedicated_executor_enabled(), | ||
dedicated_executor_threads_percent: default_dedicated_executor_threads_percent(), | ||
} | ||
} | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.