ctdb-takeover: Drop unused ctdb_takeover_run() and related code
[sfrench/samba-autobuild/.git] / ctdb / tests / takeover / simulation / ip_groups5.py
1 #!/usr/bin/env python
2
3 # 1 IP group, to test backward compatibility of LCP2 algorithm.  16
4 # addresses across 4 nodes.
5
6 from ctdb_takeover import Cluster, Node, process_args
7
8 process_args()
9
10 addresses1 = ['192.168.1.%d' % n for n in range(1, 17)]
11
12 # Try detecting imbalance with square root of number of nodes?  Or
13 # just with a parameter indicating how unbalanced you're willing to
14 # accept...
15
16 c = Cluster()
17
18 for i in range(4):
19     c.add_node(Node(addresses1))
20
21 c.recover()
22
23 c.random_iterations()