HomeClusterLabs Projects

Log: scheduler: sort node names numerically and case-insensitively

Description

Log: scheduler: sort node names numerically and case-insensitively

Previously, node names were sorted (for display, etc.) alphabetically,
which means that names would display like:

Clone Set: clone2 [clone2rsc]

Started: [ node10 node11 node2 node3 node4 ]

Now, if both names contain digits at the same location, that portion is
compared numerically. Also, non-digits are compared case-insensitively,
since node names (like DNS names) are intended to be case-insensitive.
The same display is now:

Clone Set: clone2 [clone2rsc]

Started: [ node2 node3 node4 node10 node11 ]

Details

Provenance
kgaillotAuthored on Aug 14 2018, 5:52 PM
Parents
rP986a6573b2c0: Test: scheduler: update regression tests for instance ordering change
Branches
Unknown
Tags
Unknown

Event Timeline