python/ray/tests/kuberay/test_autoscaling_config.py
def _get_basic_autoscaling_config() -> dict:
    """The expected autoscaling derived from the example Ray CR."""
    return {
        "cluster_name": "raycluster-complete",
        "provider": {
            "disable_launch_config_check": True,
            "disable_node_updaters": True,
            "namespace": "default",
            "type": "kuberay",
        },
        "available_node_types": {
            "head-group": {
                "max_workers": 0,
                "min_workers": 0,
                "node_config": {},
                "resources": {
                    "CPU": 1,
                    "Custom1": 1,
                    "Custom2": 5,
                },
            },
            "small-group": {
                "max_workers": 300,
                "min_workers": 1,
                "node_config": {},
                "resources": {
                    "CPU": 1,
                    "Custom2": 5,
                    "Custom3": 1,
                },
            },
        },
        "auth": {},
        "cluster_synced_files": [],
        "file_mounts": {},
        "file_mounts_sync_continuously": False,
        "head_node": {},
        "head_node_type": "head-group",
        "head_setup_commands": [],
        "head_start_ray_commands": [],
        "idle_timeout_minutes": 5,
        "initialization_commands": [],
        "max_workers": 300,
        "setup_commands": [],
        "upscaling_speed": 1,
        "worker_nodes": {},
        "worker_setup_commands": [],
        "worker_start_ray_commands": [],
    }
The expected autoscaling derived from the example Ray CR.
The expected autoscaling derived from the example Ray CR.
The expected autoscaling derived from the example Ray CR .
def _get_basic_autoscaling_config() -> dict:
    return {
        "cluster_name": "raycluster-complete",
        "provider": {
            "disable_launch_config_check": True,
            "disable_node_updaters": True,
            "namespace": "default",
            "type": "kuberay",
        },
        "available_node_types": {
            "head-group": {
                "max_workers": 0,
                "min_workers": 0,
                "node_config": {},
                "resources": {
                    "CPU": 1,
                    "Custom1": 1,
                    "Custom2": 5,
                },
            },
            "small-group": {
                "max_workers": 300,
                "min_workers": 1,
                "node_config": {},
                "resources": {
                    "CPU": 1,
                    "Custom2": 5,
                    "Custom3": 1,
                },
            },
        },
        "auth": {},
        "cluster_synced_files": [],
        "file_mounts": {},
        "file_mounts_sync_continuously": False,
        "head_node": {},
        "head_node_type": "head-group",
        "head_setup_commands": [],
        "head_start_ray_commands": [],
        "idle_timeout_minutes": 5,
        "initialization_commands": [],
        "max_workers": 300,
        "setup_commands": [],
        "upscaling_speed": 1,
        "worker_nodes": {},
        "worker_setup_commands": [],
        "worker_start_ray_commands": [],
    }
def _get_basic_autoscaling_config ( ) -> dict : return { "cluster_name" : "raycluster-complete" , "provider" : { "disable_launch_config_check" : True , "disable_node_updaters" : True , "namespace" : "default" , "type" : "kuberay" , } , "available_node_types" : { "head-group" : { "max_workers" : 0 , "min_workers" : 0 , "node_config" : { } , "resources" : { "CPU" : 1 , "Custom1" : 1 , "Custom2" : 5 , } , } , "small-group" : { "max_workers" : 300 , "min_workers" : 1 , "node_config" : { } , "resources" : { "CPU" : 1 , "Custom2" : 5 , "Custom3" : 1 , } , } , } , "auth" : { } , "cluster_synced_files" : [ ] , "file_mounts" : { } , "file_mounts_sync_continuously" : False , "head_node" : { } , "head_node_type" : "head-group" , "head_setup_commands" : [ ] , "head_start_ray_commands" : [ ] , "idle_timeout_minutes" : 5 , "initialization_commands" : [ ] , "max_workers" : 300 , "setup_commands" : [ ] , "upscaling_speed" : 1 , "worker_nodes" : { } , "worker_setup_commands" : [ ] , "worker_start_ray_commands" : [ ] , }
The expected autoscaling derived from the example Ray CR.
The expected autoscaling derived from the example Ray CR .
"""The expected autoscaling derived from the example Ray CR."""