mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
![]() These Serve CLI commands start Serve if it's not already running: * `serve deploy` * `serve config` * `serve status` * `serve shutdown` #27026 introduces the ability to specify a `host` and `port` in the Serve config file. However, once Serve starts running, changing these options requires tearing down the entire Serve application and relaunching it. This limitation is an issue because users can inadvertently start Serve by running one of the `GET`-based CLI commands (i.e. `serve config` or `serve status`) before running `serve deploy`. This change makes `serve deploy` the only CLI command that can start a Serve application on a Ray cluster. The other commands have updated behavior when Serve is not yet running on the cluster. * `serve config`: prints an empty config body. ```yaml import_path: '' runtime_env: {} deployments: [] ``` * `serve status`: prints an empty status body, with a new `app_status` `status` value: `NOT_STARTED`. ```yaml app_status: status: NOT_STARTED message: '' deployment_timestamp: 0 deployment_statuses: [] ``` * `serve shutdown`: performs a no-op. |
||
---|---|---|
.. | ||
client | ||
modules | ||
tests | ||
__init__.py | ||
agent.py | ||
BUILD | ||
consts.py | ||
dashboard.py | ||
datacenter.py | ||
head.py | ||
http_server_agent.py | ||
http_server_head.py | ||
k8s_utils.py | ||
memory_utils.py | ||
optional_deps.py | ||
optional_utils.py | ||
state_aggregator.py | ||
utils.py |