blob: 3a2cb79b2784e56823a4a890008e54bd06cf41bb (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "12+4 IPs, 4 nodes, 3 -> 4 healthy"
export CTDB_TEST_LOGLEVEL=DEBUG
required_result <<EOF
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES (UNASSIGNED)
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
${TEST_DATE_STAMP}Selecting most imbalanced node from:
${TEST_DATE_STAMP} 0 [0]
${TEST_DATE_STAMP} 1 [181370]
${TEST_DATE_STAMP} 2 [128630]
${TEST_DATE_STAMP} 3 [128881]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [181370]
${TEST_DATE_STAMP} 1 [-64566] -> 130.216.30.178 -> 0 [+0]
${TEST_DATE_STAMP} 1 [-64566] -> 130.216.30.176 -> 0 [+0]
${TEST_DATE_STAMP} 1 [-64315] -> 130.216.30.175 -> 0 [+0]
${TEST_DATE_STAMP} 1 [-64315] -> 130.216.30.171 -> 0 [+0]
${TEST_DATE_STAMP} 1 [-52489] -> 10.19.99.253 -> 0 [+0]
${TEST_DATE_STAMP} 1 [-52489] -> 10.19.99.250 -> 0 [+0]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP}1 [-64566] -> 130.216.30.178 -> 0 [+0]
${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
${TEST_DATE_STAMP}Selecting most imbalanced node from:
${TEST_DATE_STAMP} 0 [0]
${TEST_DATE_STAMP} 1 [116804]
${TEST_DATE_STAMP} 2 [128630]
${TEST_DATE_STAMP} 3 [128881]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES FROM 3 [128881]
${TEST_DATE_STAMP} 3 [-55099] -> 130.216.30.180 -> 0 [+15625]
${TEST_DATE_STAMP} 3 [-55099] -> 130.216.30.177 -> 0 [+15876]
${TEST_DATE_STAMP} 3 [-55350] -> 130.216.30.174 -> 0 [+15129]
${TEST_DATE_STAMP} 3 [-55350] -> 130.216.30.173 -> 0 [+15129]
${TEST_DATE_STAMP} 3 [-36864] -> 10.19.99.252 -> 0 [+9216]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP}3 [-55350] -> 130.216.30.174 -> 0 [+15129]
${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
${TEST_DATE_STAMP}Selecting most imbalanced node from:
${TEST_DATE_STAMP} 0 [15129]
${TEST_DATE_STAMP} 1 [116804]
${TEST_DATE_STAMP} 2 [128630]
${TEST_DATE_STAMP} 3 [73531]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES FROM 2 [128630]
${TEST_DATE_STAMP} 2 [-55099] -> 130.216.30.181 -> 0 [+30754]
${TEST_DATE_STAMP} 2 [-55099] -> 130.216.30.179 -> 0 [+31258]
${TEST_DATE_STAMP} 2 [-55099] -> 130.216.30.172 -> 0 [+31005]
${TEST_DATE_STAMP} 2 [-55099] -> 130.216.30.170 -> 0 [+30754]
${TEST_DATE_STAMP} 2 [-36864] -> 10.19.99.251 -> 0 [+18432]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP}2 [-55099] -> 130.216.30.181 -> 0 [+30754]
${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
${TEST_DATE_STAMP}Selecting most imbalanced node from:
${TEST_DATE_STAMP} 0 [45883]
${TEST_DATE_STAMP} 1 [116804]
${TEST_DATE_STAMP} 2 [73531]
${TEST_DATE_STAMP} 3 [73531]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [116804]
${TEST_DATE_STAMP} 1 [-48690] -> 130.216.30.176 -> 0 [+46630]
${TEST_DATE_STAMP} 1 [-49186] -> 130.216.30.175 -> 0 [+46387]
${TEST_DATE_STAMP} 1 [-49186] -> 130.216.30.171 -> 0 [+45883]
${TEST_DATE_STAMP} 1 [-43273] -> 10.19.99.253 -> 0 [+27648]
${TEST_DATE_STAMP} 1 [-43273] -> 10.19.99.250 -> 0 [+27648]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP}1 [-43273] -> 10.19.99.253 -> 0 [+27648]
${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
${TEST_DATE_STAMP}Selecting most imbalanced node from:
${TEST_DATE_STAMP} 0 [73531]
${TEST_DATE_STAMP} 1 [73531]
${TEST_DATE_STAMP} 2 [73531]
${TEST_DATE_STAMP} 3 [73531]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES FROM 0 [73531]
${TEST_DATE_STAMP} 0 [-39970] -> 130.216.30.181 -> 0 [+39970]
${TEST_DATE_STAMP} 0 [-39970] -> 130.216.30.178 -> 0 [+39970]
${TEST_DATE_STAMP} 0 [-39474] -> 130.216.30.174 -> 0 [+39474]
${TEST_DATE_STAMP} 0 [-27648] -> 10.19.99.253 -> 0 [+27648]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [73531]
${TEST_DATE_STAMP} 1 [-39474] -> 130.216.30.176 -> 0 [+55846]
${TEST_DATE_STAMP} 1 [-39970] -> 130.216.30.175 -> 0 [+55603]
${TEST_DATE_STAMP} 1 [-39970] -> 130.216.30.171 -> 0 [+55099]
${TEST_DATE_STAMP} 1 [-27648] -> 10.19.99.250 -> 0 [+43273]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES FROM 2 [73531]
${TEST_DATE_STAMP} 2 [-39474] -> 130.216.30.179 -> 0 [+56099]
${TEST_DATE_STAMP} 2 [-39970] -> 130.216.30.172 -> 0 [+55350]
${TEST_DATE_STAMP} 2 [-39970] -> 130.216.30.170 -> 0 [+55099]
${TEST_DATE_STAMP} 2 [-27648] -> 10.19.99.251 -> 0 [+43273]
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} ----------------------------------------
${TEST_DATE_STAMP} CONSIDERING MOVES FROM 3 [73531]
${TEST_DATE_STAMP} 3 [-39970] -> 130.216.30.180 -> 0 [+56099]
${TEST_DATE_STAMP} 3 [-39970] -> 130.216.30.177 -> 0 [+55846]
${TEST_DATE_STAMP} 3 [-39474] -> 130.216.30.173 -> 0 [+55350]
${TEST_DATE_STAMP} 3 [-27648] -> 10.19.99.252 -> 0 [+43777]
${TEST_DATE_STAMP} ----------------------------------------
130.216.30.181 0
130.216.30.180 3
130.216.30.179 2
130.216.30.178 0
130.216.30.177 3
130.216.30.176 1
130.216.30.175 1
130.216.30.174 0
130.216.30.173 3
130.216.30.172 2
130.216.30.171 1
130.216.30.170 2
10.19.99.253 0
10.19.99.252 3
10.19.99.251 2
10.19.99.250 1
EOF
simple_test 0,0,0,0 <<EOF
10.19.99.250 1
10.19.99.251 2
10.19.99.252 3
10.19.99.253 1
130.216.30.170 2
130.216.30.171 1
130.216.30.172 2
130.216.30.173 3
130.216.30.174 3
130.216.30.175 1
130.216.30.176 1
130.216.30.177 3
130.216.30.178 1
130.216.30.179 2
130.216.30.180 3
130.216.30.181 2
EOF
|