Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM: <carry>: openshift: add custom nodeset comparator
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1731011 In OpenShift clusters we see very small memory differences between instances, typically 8Ki. The default comparator which is used when --balance-similar-node-groups is enabled only considers nodes in a nodegroup to be equal when the memory capacity is identical. This new comparator is identical to the default but will tolerate a 128Ki difference in memory capacity. With this change, and with --balance-similar-node-groups enabled, I now see the following: ```console $ oc get machinesets NAME DESIRED CURRENT READY AVAILABLE AGE amcdermo-w6m6z-worker-us-east-2a 3 3 3 3 24h amcdermo-w6m6z-worker-us-east-2b 4 4 4 4 24h amcdermo-w6m6z-worker-us-east-2c 4 4 4 4 24h e2e-59443-w-0 3 3 1 1 20m e2e-59443-w-1 3 3 1 1 20m e2e-59443-w-2 3 3 1 1 20m e2e-59443-w-3 3 3 1 1 20m e2e-59443-w-4 3 3 1 1 20m e2e-59443-w-5 3 3 1 1 20m e2e-59443-w-6 3 3 1 1 20m e2e-59443-w-7 3 3 1 1 20m e2e-59443-w-8 3 3 1 1 20m ```
- Loading branch information