mirror of
https://github.com/wassname/ray.git
synced 2026-10-02 12:41:04 +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:
1 parent
224933b5e4
commit
a462ae2747
11 files changed
+278
-63
No files matched your search
@@ -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