Skip to content

Commit 6ba63d4

Browse files
uddate proposal with podGroup crd update
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
1 parent 59ea497 commit 6ba63d4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docs/proposal/network-topology.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,11 @@ spec:
125125
- subGroupSize: 3
126126
minSubGroups: 2
127127
name: task
128-
matchPolicy:
129-
- labelKey: volcano.sh/task-subgroup-id
128+
labelSelector:
129+
modelserving.volcano.sh/name: sample
130+
modelserving.volcano.sh/role: prefill
131+
matchLabelKeys:
132+
modelserving.volcano.sh/role-id
130133
networkTopology:
131134
mode: hard
132135
highestTierAllowed: 1
@@ -136,7 +139,7 @@ A `subGroupPolicy` has been added to the `podGroup` to ensure task-level gang sc
136139

137140
- `subGroupSize`: The number of pods in a subGroup.
138141
- `minSubGroups`: The minimum replicas of subGroups.
139-
- `matchPolicy`: The label key used to match pods.
142+
- `matchLabelKeys`: The label key used to match pods.
140143
- `networkTopology`: The network topology of a subGroup.
141144

142145
This YAML specifies that the PodGroup requires six pods to be deployed together, and all six pods must be scheduled on nodes with a maximum network topology distance of 2. Among these, the six pods are divided into two subGroups of three based on the value of the `volcano.sh/task-subgroup-id` label, and each group must be strictly scheduled on nodes with a network topology distance of 1.
@@ -169,9 +172,11 @@ spec:
169172
minResources:
170173
subGroupPolicy:
171174
- name: network-topology
172-
matchPolicy:
173-
- labelKey: "modelserving.volcano.sh/role"
174-
- labelKey: "modelserving.volcano.sh/role-id"
175+
labelSelector:
176+
modelserving.volcano.sh/name: sample
177+
modelserving.volcano.sh/role: prefill
178+
matchLabelKeys:
179+
modelserving.volcano.sh/role-id
175180
networkTopology:
176181
mode: hard
177182
highestTierAllowed: 1

0 commit comments

Comments
 (0)