[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:
fangfengbin
2020-08-21 01:18:58 +08:00
committed by GitHub
parent 224933b5e4
commit a462ae2747
11 changed files with 278 additions and 63 deletions
@@ -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;