ray/dashboard/modules
shrekris-anyscale 4ab97399cd
[Serve] Only start Serve in the CLI through the serve deploy command (#27063)
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.
2022-07-27 13:21:19 -05:00
..
actor [Dashboard] Stop caching logs in memory. Use state observability api to fetch on demand. (#26818) 2022-07-26 03:10:57 -07:00
event [api] Annotate as public / move ray-core APIs to _private and add enforcement rule (#25695) 2022-06-21 15:13:29 -07:00
healthz [dashboard][2/2] Add endpoints to dashboard and dashboard_agent for liveness check of raylet and gcs (#26408) 2022-07-09 13:09:48 -07:00
job [Serve] Only start Serve in the CLI through the serve deploy command (#27063) 2022-07-27 13:21:19 -05:00
log Revert Revert "[Observability] Fix --follow lost connection when it is used for > 30 seconds" #26162 (#26163) 2022-06-28 16:07:32 -07:00
node [State Observability] Set the default detail formatting as yaml + quicker head node register (#26946) 2022-07-26 13:49:30 -07:00
reporter [Dashboard] Fix dashboard RAM and CPU with cgroups2 (#25710) 2022-06-26 14:01:26 -07:00
runtime_env [runtime env] Add URI support for plugins (#26746) 2022-07-28 00:28:19 +08:00
serve [Serve] Only start Serve in the CLI through the serve deploy command (#27063) 2022-07-27 13:21:19 -05:00
snapshot [Serve] Add API Annotations And Move to _private (#27058) 2022-07-27 09:08:26 -07:00
state [State Observability] Add warnings for data truncation + order columns as it is defined in StateSchema (#27018) 2022-07-27 06:56:30 -07:00
test [api] Annotate as public / move ray-core APIs to _private and add enforcement rule (#25695) 2022-06-21 15:13:29 -07:00
tests [serve] Reject Ray client addresses when submitting via Dashboard (#23339) 2022-03-21 11:17:51 -05:00
tune [tune] fix set_tune_experiment (#26298) 2022-07-05 15:04:51 -07:00
usage_stats [Usage stats] Report total number of running jobs for usage stats purpose. (#26787) 2022-07-21 01:37:58 -07:00
__init__.py [Dashboard] New dashboard skeleton (#9099) 2020-07-27 11:34:47 +08:00
dashboard_sdk.py [core] ray.init defaults to an existing Ray instance if there is one (#26678) 2022-07-23 11:27:22 -07:00
version.py Revert "Revert "[Dashboard][Serve] Move Serve related endpoints to dashboard agent"" (#26336) 2022-07-06 19:37:30 -07:00