Skip to content

Commit

Permalink
Decouple ray submitter, worker, and head resources
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Parraga <[email protected]>
  • Loading branch information
Sovietaced committed Oct 29, 2024
1 parent 13b3d82 commit 75c0ceb
Show file tree
Hide file tree
Showing 8 changed files with 314 additions and 120 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.

194 changes: 112 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;
// Resource specification for ray head pod
core.Resources resources = 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;
// Resource specification for ray worker pods
core.Resources resources = 6;
}
Loading

0 comments on commit 75c0ceb

Please sign in to comment.