Skip to content

Commit cea44a6

Browse files
committed
Updated replication test
1 parent 1f213ec commit cea44a6

File tree

5 files changed

+129
-7
lines changed

5 files changed

+129
-7
lines changed

mariadb-replication-topolvm/README.md

Lines changed: 102 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ make physicalbackup
1212

1313
Threads: 4
1414
MariaDB version: 11.8.2
15+
MaxScale version: 23.08.5
1516

1617
### Semi-sync replication
1718

@@ -43,26 +44,122 @@ Threads fairness:
4344
execution time (avg/stddev): 299.8688/0.00
4445
```
4546

46-
### Semi-sync replication, WaitPoint=AfterSync
47+
### Semi-sync replication + WaitPoint=AfterSync
4748

4849
```
49-
TODO
50+
SQL statistics:
51+
queries performed:
52+
read: 5008178
53+
write: 1430467
54+
other: 715309
55+
total: 7153954
56+
transactions: 357582 (1191.93 per sec.)
57+
queries: 7153954 (23846.24 per sec.)
58+
ignored errors: 145 (0.48 per sec.)
59+
reconnects: 0 (0.00 per sec.)
60+
61+
General statistics:
62+
total time: 300.0028s
63+
total number of events: 357582
64+
65+
Latency (ms):
66+
min: 2.06
67+
avg: 3.35
68+
max: 24.09
69+
95th percentile: 4.10
70+
sum: 1199454.85
71+
72+
Threads fairness:
73+
events (avg/stddev): 89395.5000/16.52
74+
execution time (avg/stddev): 299.8637/0.00
5075
```
5176

5277
### Semi-sync replication + MaxScale
5378

5479
```
55-
TODO
80+
SQL statistics:
81+
queries performed:
82+
read: 4065992
83+
write: 1161408
84+
other: 580750
85+
total: 5808150
86+
transactions: 290322 (967.72 per sec.)
87+
queries: 5808150 (19360.09 per sec.)
88+
ignored errors: 106 (0.35 per sec.)
89+
reconnects: 0 (0.00 per sec.)
90+
91+
General statistics:
92+
total time: 300.0058s
93+
total number of events: 290322
94+
95+
Latency (ms):
96+
min: 2.48
97+
avg: 4.13
98+
max: 17.93
99+
95th percentile: 5.47
100+
sum: 1199556.54
101+
102+
Threads fairness:
103+
events (avg/stddev): 72580.5000/7425.68
104+
execution time (avg/stddev): 299.8891/0.01
56105
```
57106

58107
### Async replication
59108

60109
```
61-
TODO
110+
SQL statistics:
111+
queries performed:
112+
read: 5322674
113+
write: 1520307
114+
other: 760233
115+
total: 7603214
116+
transactions: 380042 (1266.79 per sec.)
117+
queries: 7603214 (25343.71 per sec.)
118+
ignored errors: 149 (0.50 per sec.)
119+
reconnects: 0 (0.00 per sec.)
120+
121+
General statistics:
122+
total time: 300.0034s
123+
total number of events: 380042
124+
125+
Latency (ms):
126+
min: 1.92
127+
avg: 3.16
128+
max: 19.86
129+
95th percentile: 3.89
130+
sum: 1199434.42
131+
132+
Threads fairness:
133+
events (avg/stddev): 95010.5000/21.08
134+
execution time (avg/stddev): 299.8586/0.00
62135
```
63136

64137
### Async replication + MaxScale
65138

66139
```
67-
TODO
140+
SQL statistics:
141+
queries performed:
142+
read: 4218116
143+
write: 1204825
144+
other: 602472
145+
total: 6025413
146+
transactions: 301178 (1003.91 per sec.)
147+
queries: 6025413 (20084.29 per sec.)
148+
ignored errors: 116 (0.39 per sec.)
149+
reconnects: 0 (0.00 per sec.)
150+
151+
General statistics:
152+
total time: 300.0057s
153+
total number of events: 301178
154+
155+
Latency (ms):
156+
min: 2.42
157+
avg: 3.98
158+
max: 17.07
159+
95th percentile: 5.28
160+
sum: 1199537.26
161+
162+
Threads fairness:
163+
events (avg/stddev): 75294.5000/7936.71
164+
execution time (avg/stddev): 299.8843/0.01
68165
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: mariadb
5+
labels:
6+
k8s.mariadb.com/watch: ""
7+
stringData:
8+
password: MariaDB11!
9+
root-password: MariaDB11!

mariadb-replication-topolvm/mariadb/mariadb.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ spec:
6565
enabled: true
6666
errorDurationThreshold: 30s
6767
gtidStrictMode: true
68+
# semiSyncEnabled: false
6869
# semiSyncAckTimeout: 10s
6970
# semiSyncWaitPoint: AfterSync
7071
# syncBinlog: 1
@@ -108,6 +109,21 @@ spec:
108109
operator: In
109110
values:
110111
- compute-large
112+
113+
livenessProbe:
114+
failureThreshold: 10
115+
periodSeconds: 10
116+
timeoutSeconds: 5
117+
118+
readinessProbe:
119+
failureThreshold: 10
120+
periodSeconds: 10
121+
timeoutSeconds: 5
122+
123+
startupProbe:
124+
failureThreshold: 10
125+
periodSeconds: 10
126+
timeoutSeconds: 5
111127
---
112128
apiVersion: k8s.mariadb.com/v1alpha1
113129
kind: PhysicalBackup

mariadb-replication-topolvm/maxscale/maxscale-secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
labels:
66
k8s.mariadb.com/watch: ""
77
stringData:
8-
password: MaxScale!
8+
password: MaxScale11!

mariadb-replication-topolvm/sysbench/sysbench-cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- --tables=5
3434
- --table_size=1000000
3535
- --mysql-host=mariadb-primary.default.svc.cluster.local
36-
# - --mysql-host=maxscale-primary.default.svc.cluster.local
36+
# - --mysql-host=maxscale.default.svc.cluster.local
3737
- --mysql-port=3306
3838
- --mysql-user=sbtest
3939
- --mysql-password=MariaDB11!

0 commit comments

Comments
 (0)