Re: [PATCH] corosync-quorumtool: sort nodes by nodeid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/08/14 12:42, Fabio M. Di Nitto wrote:
On 08/14/2014 03:47 PM, Christine Caulfield wrote:
This is a silly thing that's bugged me for a while. corosync-quorumtool
always prints nodes out in IP address order which is not necessarily
node ID order. This can make the output confusing.

This patch forces node ID order. I'm also considering making sort order
a command-line option with selections for IP address, node ID and name.
Thoughts?

No objections, but please make it an option right away. I prefer to see
IP vs nodeids (that's also probably why I wrote it that way :)


IP order is just the way they come out of corosync, which is a side-effect of how the totem protocol works - quorumtool itself does no sorting.

I'll add in some option code though, and later add sorting by node name. Though that will be more complex as it's currently worked out at print time - which is not really that efficient when using the monitor option ;-)

Chrissie
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux