mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 07:01:05 +08:00
Deprecate setResource java api (#13117)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user