Skip to content

Commit

Permalink
Set message sizes to 16MB in clients
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Dec 12, 2023
1 parent 4b3b35f commit 897ca4a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ballista/client/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ impl BallistaContext {
let connection = create_grpc_client_connection(scheduler_url.clone())
.await
.map_err(|e| DataFusionError::Execution(format!("{e:?}")))?;
let mut scheduler = SchedulerGrpcClient::new(connection);
let mut scheduler = SchedulerGrpcClient::new(connection)
.max_encoding_message_size(16 * 1024 * 1024)
.max_decoding_message_size(16 * 1024 * 1024);

let remote_session_id = scheduler
.create_session(CreateSessionParams {
Expand Down
4 changes: 3 additions & 1 deletion ballista/core/src/execution_plans/distributed_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ async fn execute_query(
.await
.map_err(|e| DataFusionError::Execution(format!("{e:?}")))?;

let mut scheduler = SchedulerGrpcClient::new(connection);
let mut scheduler = SchedulerGrpcClient::new(connection)
.max_encoding_message_size(16 * 1024 * 1024)
.max_decoding_message_size(16 * 1024 * 1024);

let query_result = scheduler
.execute_query(query)
Expand Down
4 changes: 3 additions & 1 deletion ballista/executor/src/executor_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ pub async fn start_executor_process(opt: Arc<ExecutorProcessConfig>) -> Result<(
}
}?;

let mut scheduler = SchedulerGrpcClient::new(connection);
let mut scheduler = SchedulerGrpcClient::new(connection)
.max_encoding_message_size(16 * 1024 * 1024)
.max_decoding_message_size(16 * 1024 * 1024);

let default_codec: BallistaCodec<LogicalPlanNode, PhysicalPlanNode> =
BallistaCodec::default();
Expand Down
4 changes: 3 additions & 1 deletion ballista/executor/src/executor_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ impl<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> ExecutorServer<T,
} else {
let scheduler_url = format!("http://{scheduler_id}");
let connection = create_grpc_client_connection(scheduler_url).await?;
let scheduler = SchedulerGrpcClient::new(connection);
let scheduler = SchedulerGrpcClient::new(connection)
.max_encoding_message_size(16 * 1024 * 1024)
.max_decoding_message_size(16 * 1024 * 1024);

{
self.schedulers
Expand Down

0 comments on commit 897ca4a

Please sign in to comment.