[autoscaler] Fix semantics of request_resources (#11820)

This commit is contained in:
Eric Liang
2020-11-09 14:57:40 -08:00
committed by GitHub
parent 1c132f2ff8
commit a9cf0141a0
6 changed files with 199 additions and 64 deletions
+7 -1
View File
@@ -38,6 +38,12 @@ The basic autoscaling config settings are as follows:
# considered idle if there are no tasks or actors running on it.
idle_timeout_minutes: 5
Programmatically Scaling a Cluster
----------------------------------
You can from within a Ray program command the autoscaler to scale the cluster up to a desired size with ``request_resources()`` call. The cluster will immediately attempt to scale to accomodate the requested resources, bypassing normal upscaling delay.
.. autofunction:: ray.autoscaler.sdk.request_resources
Manually Adding Nodes without Resources (Unmanaged Nodes)
---------------------------------------------------------
@@ -159,4 +165,4 @@ The following configuration is for a GPU enabled node type:
worker_image:
- rayproject/ray-ml:latest-gpu
worker_run_options: # Appended to top-level docker field.
- "-v /home:/home"
- "-v /home:/home"