Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions flyteidl2/plugins/ray.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

package flyteidl2.plugins;

import "flyteidl2/core/literals.proto";
import "flyteidl2/core/tasks.proto";

option go_package = "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/plugins";
Expand All @@ -22,6 +23,23 @@ message RayJob {
string runtime_env_yaml = 5;
}

message AutoscalerOptions {
enum UpscalingMode {
UPSCALING_MODE_UNSPECIFIED = 0;
UPSCALING_MODE_DEFAULT = 1;
UPSCALING_MODE_AGGRESSIVE = 2;
UPSCALING_MODE_CONSERVATIVE = 3;
}
UpscalingMode upscaling_mode = 1;
int32 idle_timeout_seconds = 2;
// autoscaler sidecar env vars
repeated core.KeyValuePair env = 3;
// custom autoscaler image
string image = 4;
// autoscaler container resources
core.Resources resources = 5;
}

// Define Ray cluster defines the desired state of RayCluster
message RayCluster {
// HeadGroupSpecs are the spec for the head pod
Expand All @@ -30,6 +48,7 @@ message RayCluster {
repeated WorkerGroupSpec worker_group_spec = 2;
// Whether to enable autoscaling.
bool enable_autoscaling = 3;
AutoscalerOptions autoscaler_options = 4;
}

// HeadGroupSpec are the spec for the head pod
Expand Down
Loading
Loading