mirror of
https://github.com/vale981/ray
synced 2025-03-09 12:56:46 -04:00

This change adds the GET, PUT, and DELETE commands for Serve’s REST API. The dashboard receives these commands and issues corresponding requests to the Serve controller.
66 lines
No EOL
2.3 KiB
JSON
66 lines
No EOL
2.3 KiB
JSON
{
|
|
"deployments": [
|
|
{
|
|
"name": "shallow",
|
|
"import_path": "test_env.shallow_import.ShallowClass",
|
|
"init_args": [],
|
|
"init_kwargs": {},
|
|
"num_replicas": 3,
|
|
"route_prefix": "/shallow",
|
|
"max_concurrent_queries": 100,
|
|
"user_config": null,
|
|
"autoscaling_config": null,
|
|
"graceful_shutdown_wait_loop_s": 2.0,
|
|
"graceful_shutdown_timeout_s": 20.0,
|
|
"health_check_period_s": 10.0,
|
|
"health_check_timeout_s": 30.0,
|
|
"ray_actor_options": {
|
|
"runtime_env": {
|
|
"py_modules": [
|
|
"https://github.com/shrekris-anyscale/test_deploy_group/archive/HEAD.zip",
|
|
"https://github.com/shrekris-anyscale/test_module/archive/HEAD.zip",
|
|
null
|
|
],
|
|
"working_dir": null
|
|
},
|
|
"num_cpus": 1.0,
|
|
"num_gpus": 0.0,
|
|
"memory": 0.0,
|
|
"object_store_memory": 0.0,
|
|
"resources": {},
|
|
"accelerator_type": null
|
|
}
|
|
},
|
|
{
|
|
"name": "one",
|
|
"import_path": "test_module.test.one",
|
|
"init_args": [],
|
|
"init_kwargs": {},
|
|
"num_replicas": 3,
|
|
"route_prefix": "/one",
|
|
"max_concurrent_queries": 100,
|
|
"user_config": null,
|
|
"autoscaling_config": null,
|
|
"graceful_shutdown_wait_loop_s": 2.0,
|
|
"graceful_shutdown_timeout_s": 20.0,
|
|
"health_check_period_s": 10.0,
|
|
"health_check_timeout_s": 30.0,
|
|
"ray_actor_options": {
|
|
"runtime_env": {
|
|
"py_modules": [
|
|
"https://github.com/shrekris-anyscale/test_deploy_group/archive/HEAD.zip",
|
|
"https://github.com/shrekris-anyscale/test_module/archive/HEAD.zip",
|
|
null
|
|
],
|
|
"working_dir": null
|
|
},
|
|
"num_cpus": 1.0,
|
|
"num_gpus": 0.0,
|
|
"memory": 0.0,
|
|
"object_store_memory": 0.0,
|
|
"resources": {},
|
|
"accelerator_type": null
|
|
}
|
|
}
|
|
]
|
|
} |