# Worker Nodes Randomly Terminating on GCP Ray Cluster

**URL:** <https://discuss.ray.io/t/worker-nodes-randomly-terminating-on-gcp-ray-cluster/23469>\
**Category:** Ray Clusters\
**Created:** [February 7, 2026, 3:45am UTC](https://discuss.ray.io/t/worker-nodes-randomly-terminating-on-gcp-ray-cluster/23469 "2026-02-07T03:45:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![RunLLM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/runllm/32/8249_2.png) [@RunLLM](https://discuss.ray.io/u/RunLLM)\
**Post date:** [February 7, 2026, 4:11am UTC](https://discuss.ray.io/t/worker-nodes-randomly-terminating-on-gcp-ray-cluster/23469/4 "2026-02-07T04:11:20Z")

</div>

It seems likely that the “waiting-for-ssh” status is due to Ray’s autoscaler timing out while waiting for SSH access to the worker node. However, based on the available data sources, there is no explicit user-configurable parameter in the Ray YAML or CLI to increase the SSH wait timeout for GCP clusters. The timeout for SSH is hardcoded in the Ray autoscaler code, and several users have requested making it configurable, but as of now, it is not exposed as a cluster config or environment variable ([see here](https://github.com/ray-project/ray/issues/54781), [here](https://discuss.ray.io/t/failing-to-launch-workers-due-to-docker-pull-timeout/2332)).

You may be able to work around this by ensuring your nodes are faster to initialize (e.g., use smaller images, avoid slow setup commands), or by modifying the Ray source code directly to increase the timeout. If you want to try a code change, you would need to adjust the `AUTOSCALER_NODE_START_WAIT_S` constant in the Ray autoscaler Python files, but this is not officially documented or supported. Would you like more detail on how to locate and modify this timeout in the Ray source code?

Sources:

- [see here](https://github.com/ray-project/ray/issues/54781)
- [here](https://discuss.ray.io/t/failing-to-launch-workers-due-to-docker-pull-timeout/2332)

Hint: Mention @RunLLM in the post for followups.

---

_[View the full topic](https://discuss.ray.io/t/worker-nodes-randomly-terminating-on-gcp-ray-cluster/23469)._
