mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
Deprecate setResource java api (#13117)
This commit is contained in:
parent
27cbac576d
commit
456d08ad40
1 changed files with 16 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue