Skip to content

Commit

Permalink
Configurable scheduler external host
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Apr 1, 2024
1 parent 30885ef commit 96c5320
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions ballista/core/src/serde/generated/ballista.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,6 @@ pub mod scheduler_grpc_client {
);
self.inner.unary(req, path, codec).await
}
/// Push-based task scheduler will only leverage this interface
/// rather than the PollWork interface to report executor states
pub async fn heart_beat_from_executor(
&mut self,
request: impl tonic::IntoRequest<super::HeartBeatParams>,
Expand Down Expand Up @@ -1253,8 +1251,6 @@ pub mod scheduler_grpc_server {
tonic::Response<super::RegisterExecutorResult>,
tonic::Status,
>;
/// Push-based task scheduler will only leverage this interface
/// rather than the PollWork interface to report executor states
async fn heart_beat_from_executor(
&self,
request: tonic::Request<super::HeartBeatParams>,
Expand Down
2 changes: 1 addition & 1 deletion ballista/scheduler/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async fn main() -> Result<()> {

let config = SchedulerConfig {
namespace: "ballista".to_string(),
external_host: "localhost".to_string(),
external_host: env::var("EXTERNAL_HOST").unwrap_or("localhost".to_string()),
bind_port,
event_loop_buffer_size: 10000,
task_distribution: TaskDistributionPolicy::Bias,
Expand Down

0 comments on commit 96c5320

Please sign in to comment.