mirror of
https://github.com/wassname/ray.git
synced 2026-08-01 12:51:09 +08:00
59 lines
1.7 KiB
Protocol Buffer
59 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package ray.streaming.proto;
|
|
|
|
import "protobuf/streaming.proto";
|
|
|
|
option java_package = "io.ray.streaming.runtime.generated";
|
|
|
|
// Execution vertex info, including it's upstream and downstream
|
|
message ExecutionVertexContext {
|
|
// An edge between 2 execution vertices
|
|
message ExecutionEdge {
|
|
// upstream execution vertex id
|
|
int32 source_execution_vertex_id = 1;
|
|
// downstream execution vertex id
|
|
int32 target_execution_vertex_id = 2;
|
|
// serialized partition between source/target vertex
|
|
bytes partition = 3;
|
|
}
|
|
|
|
message ExecutionVertex {
|
|
// unique id of execution vertex
|
|
int32 execution_vertex_id = 1;
|
|
// unique id of execution job vertex
|
|
int32 execution_job_vertex_Id = 2;
|
|
// name of execution job vertex, e.g. 1-SourceOperator
|
|
string execution_job_vertex_name = 3;
|
|
// index of execution vertex
|
|
int32 execution_vertex_index = 4;
|
|
int32 parallelism = 5;
|
|
// serialized operator
|
|
bytes operator = 6;
|
|
bool chained = 7;
|
|
bytes worker_actor = 8;
|
|
string container_id = 9;
|
|
uint64 build_time = 10;
|
|
Language language = 11;
|
|
map<string, string> config = 12;
|
|
map<string, double> resource = 13;
|
|
}
|
|
|
|
// vertices
|
|
ExecutionVertex current_execution_vertex = 1;
|
|
repeated ExecutionVertex upstream_execution_vertices = 2;
|
|
repeated ExecutionVertex downstream_execution_vertices = 3;
|
|
|
|
// edges
|
|
repeated ExecutionEdge input_execution_edges = 4;
|
|
repeated ExecutionEdge output_execution_edges = 5;
|
|
}
|
|
|
|
// Streaming python worker context
|
|
message PythonJobWorkerContext {
|
|
// serialized master actor handle
|
|
bytes master_actor = 1;
|
|
// vertex including it's upstream and downstream
|
|
ExecutionVertexContext execution_vertex_context = 2;
|
|
}
|