Skip to content

Commit

Permalink
Decouple ray submitter, worker, and head resources (#5933)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Parraga <[email protected]>
  • Loading branch information
Sovietaced authored Nov 12, 2024
1 parent 3409ae1 commit 3c3ae05
Show file tree
Hide file tree
Showing 8 changed files with 372 additions and 124 deletions.
17 changes: 17 additions & 0 deletions flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

193 changes: 111 additions & 82 deletions flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions flyteidl/gen/pb_rust/flyteidl.plugins.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions flyteidl/protos/flyteidl/plugins/ray.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package flyteidl.plugins;

option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins";

import "flyteidl/core/tasks.proto";

// RayJobSpec defines the desired state of RayJob
message RayJob {
// RayClusterSpec is the cluster template to run the job
Expand Down Expand Up @@ -35,6 +37,8 @@ message HeadGroupSpec {
// Optional. RayStartParams are the params of the start command: address, object-store-memory.
// Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
map<string, string> ray_start_params = 1;
// Pod Spec for the ray head pod
core.K8sPod k8s_pod = 2;
}

// WorkerGroupSpec are the specs for the worker pods
Expand All @@ -50,4 +54,6 @@ message WorkerGroupSpec {
// Optional. RayStartParams are the params of the start command: address, object-store-memory.
// Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
map<string, string> ray_start_params = 5;
// Pod Spec for ray worker pods
core.K8sPod k8s_pod = 6;
}
Loading

0 comments on commit 3c3ae05

Please sign in to comment.