LUClusterVerifyGroup: Spread SSH checks over more nodes
authorMichael Hanselmann <hansmi@google.com>
Fri, 30 Sep 2011 15:48:28 +0000 (17:48 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 30 Sep 2011 16:04:04 +0000 (18:04 +0200)
commit64c7b3831dcf35a515ac7928cdb62bfb78b47291
treef3d4f853cdfe234f095920820f139306c031f134
parent11705e3de9ee4ddec3a40dda7dc6ed40f769339e
LUClusterVerifyGroup: Spread SSH checks over more nodes

When verifying a group the code would always check SSH to all nodes in
the same group, as well as the first node for every other group. On big
clusters this can cause issues since many nodes will try to connect to
the first node of another group at the same time. This patch changes the
algorithm to choose a different node every time.

A unittest for the selection algorithm is included.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/backend.py
lib/cmdlib.py
test/ganeti.cmdlib_unittest.py