Commit 878be92
committed
Fix affinity bonus normalization in placement scoring
Normalize the affinity bonus by dividing it by totalCapacity to ensure
the relative impact of the bonus is consistent across nodes of different
sizes. Without normalization, the absolute affinity bonus has a
disproportionately stronger effect on large nodes (where the base score
is smaller) compared to small nodes, causing the algorithm to strongly
prefer large nodes with cache affinity even when smaller nodes are less
loaded.1 parent 75d9d73 commit 878be92
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments