Back to Ray

Programmatic Cluster Scaling

doc/source/cluster/running-applications/autoscaling/reference.rst

1.13.1533 B
Original Source

.. _ref-autoscaler-sdk:

Programmatic Cluster Scaling

.. _ref-autoscaler-sdk-request-resources:

ray.autoscaler.sdk.request_resources

Within a Ray program, you can command the autoscaler to scale the cluster up to a desired size with request_resources() call. The cluster will immediately attempt to scale to accommodate the requested resources, bypassing normal upscaling speed constraints.

.. autofunction:: ray.autoscaler.sdk.request_resources :noindex: