Skip to content

Commit 66b1bc9

Browse files
committed
[KEP-4816] Simple scoring for DRA Prioritized List feature
1 parent 755a89a commit 66b1bc9

File tree

1 file changed

+22
-0
lines changed
  • keps/sig-scheduling/4816-dra-prioritized-list

1 file changed

+22
-0
lines changed

keps/sig-scheduling/4816-dra-prioritized-list/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ tags, and then generate with `hack/update-toc.sh`.
9191
- [Risks and Mitigations](#risks-and-mitigations)
9292
- [Design Details](#design-details)
9393
- [Scheduler Implementation](#scheduler-implementation)
94+
- [Scoring](#scoring)
9495
- [Test Plan](#test-plan)
9596
- [Prerequisite testing updates](#prerequisite-testing-updates)
9697
- [Unit tests](#unit-tests)
@@ -899,6 +900,27 @@ would need a higher score, which currently is planned for beta of this feature.
899900
For alpha, the scheduler may still pick a node with a less preferred device, if
900901
there are nodes with each type of device available.
901902

903+
#### Scoring
904+
905+
Full support for scoring in DRA is not in scope for this feature, but we will
906+
implement limited scoring to make sure that nodes which can satisfy claims with
907+
higher ranked subrequests are preferred over others.
908+
909+
We will implement this by letting the dynamicresources scheduler plugin implement
910+
the `Score` interface.
911+
912+
The allocation result for each node will be given a score based on the ranking of
913+
the chosen subrequests across all requests using the `FirstAvailable` field across
914+
all claims referenced by the Pod. Since the number of subrequests for each request
915+
is capped at 8, we will compute a score between 1 and 8 for each request, with 8
916+
being the best (i.e. the first option was chosen) and 1 if the 8th subrequest was
917+
chosen. We save the score of 0 in case we want to implement optional requests. Since
918+
the score for every node is computed based on the same claims, we end up with a
919+
ranking of the results from all nodes.
920+
921+
We don't see a need to normalize the scores for now, but this might be needed when
922+
we implement more complicated scoring in the future.
923+
902924
### Test Plan
903925

904926
<!--

0 commit comments

Comments
 (0)