Skip to content

Commit

Permalink
Initial RPC implementation for Spark/Flink.
Browse files Browse the repository at this point in the history
  • Loading branch information
sukritkalra committed Feb 11, 2024
1 parent 301717f commit c6fe9ee
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions rpc/protos/erdos_scheduler.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// ERDOS Scheduler RPC Service.
// This service is aimed for systems to schedule tasks by exploiting the
// scheduler backends and the Simulator types available in ERDOS.

syntax = "proto3";

package erdos;

// The `SchedulerService` is the main service for scheduling tasks.
service SchedulerService {
// Registers a new framework with the backend scheduler.
// This is the entry point for a new instance of Spark / Flink to register
// itself with the backend scheduler, and is intended as an EHLO.
rpc RegisterFramework(RegisterFrameworkRequest) returns (RegisterFrameworkResponse) {}
}

message RegisterFrameworkRequest {
string framework_name = 1;
string framework_id = 2;
}

message RegisterFrameworkResponse {
string framework_id = 1;
}
2 changes: 2 additions & 0 deletions rpc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
grpcio
grpcio-tools

0 comments on commit c6fe9ee

Please sign in to comment.