The page you navigated to does not exist, so we brought you to the closest page to it.
flytekitplugins.ray.models
class HeadGroupSpec(
ray_start_params: typing.Optional[typing.Dict[str, str]],
k8s_pod: typing.Optional[flytekit.models.task.K8sPod],
)
| Parameter |
Type |
Description |
ray_start_params |
typing.Optional[typing.Dict[str, str]] |
|
k8s_pod |
typing.Optional[flytekit.models.task.K8sPod] |
|
| Property |
Type |
Description |
is_empty |
None |
|
k8s_pod |
None |
Additional pod specs for the head node pod. :rtype: K8sPod |
ray_start_params |
None |
The ray start params of head node group. :rtype: typing.Dict[str, str] |
def from_flyte_idl(
proto,
)
| Parameter |
Type |
Description |
proto |
|
|
def serialize_to_string()
:rtype: Text
:rtype: flyteidl.plugins._ray_pb2.HeadGroupSpec
Define RayCluster spec that will be used by KubeRay to launch the cluster.
class RayCluster(
worker_group_spec: typing.List[flytekitplugins.ray.models.WorkerGroupSpec],
head_group_spec: typing.Optional[flytekitplugins.ray.models.HeadGroupSpec],
enable_autoscaling: bool,
)
| Parameter |
Type |
Description |
worker_group_spec |
typing.List[flytekitplugins.ray.models.WorkerGroupSpec] |
|
head_group_spec |
typing.Optional[flytekitplugins.ray.models.HeadGroupSpec] |
|
enable_autoscaling |
bool |
|
| Property |
Type |
Description |
enable_autoscaling |
None |
Whether to enable autoscaling. :rtype: bool |
head_group_spec |
None |
The head group configuration. :rtype: HeadGroupSpec |
is_empty |
None |
|
worker_group_spec |
None |
The worker group configurations. :rtype: typing.List[WorkerGroupSpec] |
def from_flyte_idl(
proto,
)
| Parameter |
Type |
Description |
proto |
|
|
def serialize_to_string()
:rtype: Text
:rtype: flyteidl.plugins._ray_pb2.RayCluster
Models _ray_pb2.RayJob
class RayJob(
ray_cluster: flytekitplugins.ray.models.RayCluster,
runtime_env: typing.Optional[str],
runtime_env_yaml: typing.Optional[str],
ttl_seconds_after_finished: typing.Optional[int],
shutdown_after_job_finishes: bool,
)
| Parameter |
Type |
Description |
ray_cluster |
flytekitplugins.ray.models.RayCluster |
|
runtime_env |
typing.Optional[str] |
|
runtime_env_yaml |
typing.Optional[str] |
|
ttl_seconds_after_finished |
typing.Optional[int] |
|
shutdown_after_job_finishes |
bool |
|
| Property |
Type |
Description |
is_empty |
None |
|
ray_cluster |
None |
|
runtime_env |
None |
|
runtime_env_yaml |
None |
|
shutdown_after_job_finishes |
None |
|
ttl_seconds_after_finished |
None |
|
def from_flyte_idl(
proto: flyteidl.plugins.ray_pb2.RayJob,
)
| Parameter |
Type |
Description |
proto |
flyteidl.plugins.ray_pb2.RayJob |
|
def serialize_to_string()
:rtype: Text
class WorkerGroupSpec(
group_name: str,
replicas: int,
min_replicas: typing.Optional[int],
max_replicas: typing.Optional[int],
ray_start_params: typing.Optional[typing.Dict[str, str]],
k8s_pod: typing.Optional[flytekit.models.task.K8sPod],
)
| Parameter |
Type |
Description |
group_name |
str |
|
replicas |
int |
|
min_replicas |
typing.Optional[int] |
|
max_replicas |
typing.Optional[int] |
|
ray_start_params |
typing.Optional[typing.Dict[str, str]] |
|
k8s_pod |
typing.Optional[flytekit.models.task.K8sPod] |
|
| Property |
Type |
Description |
group_name |
None |
Group name of the current worker group. :rtype: str |
is_empty |
None |
|
k8s_pod |
None |
Additional pod specs for the worker node pods. :rtype: K8sPod |
max_replicas |
None |
Max replicas of the worker group. :rtype: int |
min_replicas |
None |
Min replicas of the worker group. :rtype: int |
ray_start_params |
None |
The ray start params of worker node group. :rtype: typing.Dict[str, str] |
replicas |
None |
Desired replicas of the worker group. :rtype: int |
def from_flyte_idl(
proto,
)
| Parameter |
Type |
Description |
proto |
|
|
def serialize_to_string()
:rtype: Text
:rtype: flyteidl.plugins._ray_pb2.WorkerGroupSpec