mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 14:06:42 +08:00
[Placement Group]Add strict spread strategy (#10174)
* support STRICT_SPREAD strategy * fix review comments * rebase master * fix lint error * fix lint error Co-authored-by: 灵洵 <fengbin.ffb@antfin.com>
This commit is contained in:
@@ -8,14 +8,22 @@ public enum PlacementStrategy {
|
||||
* Packs Bundles close together inside nodes as tight as possible.
|
||||
*/
|
||||
PACK(0),
|
||||
|
||||
/**
|
||||
* Places Bundles across distinct nodes as even as possible.
|
||||
*/
|
||||
SPREAD(1),
|
||||
|
||||
/**
|
||||
* Packs Bundles into one node. The group is not allowed to span multiple nodes.
|
||||
*/
|
||||
STRICT_PACK(2);
|
||||
STRICT_PACK(2),
|
||||
|
||||
/**
|
||||
* Places Bundles across distinct nodes.
|
||||
* The group is not allowed to deploy more than one bundle on a node.
|
||||
*/
|
||||
STRICT_SPREAD(3);
|
||||
|
||||
private int value = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user