Deprecate setResource java api (#13117)

This commit is contained in:
fangfengbin 2021-01-02 12:17:45 +08:00 committed by GitHub
parent 27cbac576d
commit 456d08ad40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,12 +200,26 @@ public final class Ray extends RayCall {
return runtime;
}
/** Update the resource for the specified client. Set the resource for the specific node. */
/**
* Update the resource for the specified client. Set the resource for the specific node.
*
* @deprecated Consider using placement groups instead
* (docs.ray.io/en/master/placement-group.html). You can also specify resources at Ray start
* time with the 'resources' field in the cluster autoscaler.
*/
@Deprecated
public static void setResource(UniqueId nodeId, String resourceName, double capacity) {
internal().setResource(resourceName, capacity, nodeId);
}
/** Set the resource for local node. */
/**
* Set the resource for local node.
*
* @deprecated Consider using placement groups instead
* (docs.ray.io/en/master/placement-group.html). You can also specify resources at Ray start
* time with the 'resources' field in the cluster autoscaler.
*/
@Deprecated
public static void setResource(String resourceName, double capacity) {
internal().setResource(resourceName, capacity, UniqueId.NIL);
}