blob: 0808f466cf12f12003882b18310c9f0fd743d9fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/env python
# 2 IP groups, both on the same 5 nodes, with each group on different
# interfaces/VLANs. One group has many more addresses to test how
# well an "imbalanced" configuration will balance...
from ctdb_takeover import Cluster, Node, process_args
process_args()
addresses20 = ['192.168.20.%d' % n for n in range(1, 13)]
addresses128 = ['192.168.128.%d' % n for n in range(1, 5)]
c = Cluster()
for i in range(5):
c.add_node(Node([addresses20, addresses128]))
#for i in range(3):
# c.add_node(Node([addresses20]))
c.recover()
c.random_iterations()
|