# Serve.shutdown() and how to reconnect to cluster

**URL:** <https://discuss.ray.io/t/serve-shutdown-and-how-to-reconnect-to-cluster/6799>\
**Category:** Ray Serve\
**Created:** [July 12, 2022, 11:45pm UTC](https://discuss.ray.io/t/serve-shutdown-and-how-to-reconnect-to-cluster/6799 "2022-07-12T23:45:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![luisp](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/luisp/32/2865_2.png) [@luisp](https://discuss.ray.io/u/luisp)\
**Post date:** [July 14, 2022, 2:17am UTC](https://discuss.ray.io/t/serve-shutdown-and-how-to-reconnect-to-cluster/6799/4 "2022-07-14T02:17:19Z")

</div>

Hello @architkulkarni!

Thanks for your response! I will be watching the issue #26527.

Well, I decided to check the other Serve API functions. For instance, if I just call `serve.list_deployments()`, then a local cluster is also created and I got the error “_There is no instance running on this Ray cluster. Please call serve.start(detached=True) to start one._”

So I would like to suggest something else: Serve API functions should never create clusters. They could connect to an existing cluster. A remote cluster if RAY\_ADDRESS is set. A local cluster otherwise.

Once again, thanks!!  
And congratulations for the great project!

---

_[View the full topic](https://discuss.ray.io/t/serve-shutdown-and-how-to-reconnect-to-cluster/6799)._
