[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-20 10:18:58 -07:00
committed by GitHub
co-authored by 灵洵
parent 224933b5e4
commit a462ae2747
11 changed files with 278 additions and 63 deletions
@@ -19,6 +19,7 @@ def placement_group(bundles: List[Dict[str, float]],
PACK: Packs Bundles into as few nodes as possible.
SPREAD: Places Bundles across distinct nodes as even as possible.
STRICT_PACK: Packs Bundles into one node.
STRICT_SPREAD: Packs Bundles across distinct nodes.
The group is not allowed to span multiple nodes.
name: The name of the placement group.
"""