Skip to content

Commit 18eb00d

Browse files
committed
Merge branch 'release/2.5.0'
2 parents 41d3926 + 4aa99a3 commit 18eb00d

File tree

84 files changed

+4114
-2125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+4114
-2125
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"plugin:prettier/recommended"
1111
],
1212
"parserOptions": {
13-
"ecmaVersion": 6
13+
"ecmaVersion": 2020
1414
},
1515
"env": {
1616
"node": true,

.travis.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,35 +41,33 @@ matrix:
4141
allow_failures:
4242
- node_js: "12"
4343
env: DB=build SKIP_LEAK=1
44-
- node_js: "12"
45-
env: SKYSQL=true SKIP_LEAK=1
4644
include:
4745
- node_js: "12"
4846
env: DB=build SKIP_LEAK=1
4947
- node_js: "12"
5048
env: SKYSQL=true SKIP_LEAK=1
5149
- node_js: "10"
52-
env: DB=mariadb:10.4
50+
env: DB=mariadb:10.5
5351
- node_js: "12"
54-
env: DB=mariadb:10.4 SKIP_LEAK=1 ADDITIONAL_CONF=--version=10.4.199
52+
env: DB=mariadb:10.5 SKIP_LEAK=1 ADDITIONAL_CONF=--version=10.5.199
5553
- node_js: "14"
56-
env: DB=mariadb:10.4 SKIP_LEAK=1
54+
env: DB=mariadb:10.5 SKIP_LEAK=1
5755
- node_js: "12"
58-
env: DB=mariadb:10.4 SKIP_LEAK=1 TEST_COLLATION=cp1251_general_ci
56+
env: DB=mariadb:10.5 SKIP_LEAK=1 TEST_COLLATION=cp1251_general_ci
5957
- node_js: "12"
60-
env: DB=mariadb:10.4 LINT=1 SKIP_LEAK=1
58+
env: DB=mariadb:10.5 LINT=1 SKIP_LEAK=1
6159
- node_js: "12"
62-
env: DB=mariadb:10.4 BENCH=1 SKIP_LEAK=1
60+
env: DB=mariadb:10.5 BENCH=1 SKIP_LEAK=1
6361
- node_js: "12"
64-
env: DB=mariadb:10.4 MAXSCALE_VERSION=2.2.9 TEST_PORT=4007 TEST_USER=bob TEXT_DATABASE=test2 SKIP_LEAK=1
62+
env: DB=mariadb:10.5 MAXSCALE_VERSION=2.5.4 MAXSCALE_TEST_DISABLE=true SKIP_LEAK=1
6563
- node_js: "12"
6664
env: DB=mariadb:10.1 SKIP_LEAK=1
6765
- node_js: "12"
6866
env: DB=mariadb:10.2 SKIP_LEAK=1
6967
- node_js: "12"
7068
env: DB=mariadb:10.3 SKIP_LEAK=1
7169
- node_js: "12"
72-
env: DB=mysql:5.6 SKIP_LEAK=1
70+
env: DB=mariadb:10.4 SKIP_LEAK=1
7371
- node_js: "12"
7472
env: DB=mysql:5.7 SKIP_LEAK=1
7573
- node_js: "12"

.travis/docker-compose.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '2.1'
22
services:
33
db:
44
image: $DB
@@ -7,11 +7,14 @@ services:
77
- 3305:3306
88
volumes:
99
- $SSLCERT:/etc/sslcert
10-
- $ENTRYPOINT:/pam
10+
- $ENTRYPOINT:/docker-entrypoint-initdb.d
1111
environment:
1212
MYSQL_DATABASE: testn
1313
MYSQL_ALLOW_EMPTY_PASSWORD: 1
14-
MYSQL_ROOT_PASSWORD:
15-
14+
healthcheck:
15+
test: ["CMD", "mysql", "--protocol=tcp", "-ubob", "-h127.0.0.1"]
16+
timeout: 50s
17+
retries: 10
18+
interval: 5s
1619

1720

.travis/entrypoint/dbinit.sql

Lines changed: 0 additions & 11 deletions
This file was deleted.

.travis/maxscale-compose.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
version: '2.1'
22
services:
3-
maxscale:
4-
depends_on:
5-
- db
6-
ports:
7-
- 4006:4006
8-
- 4007:4007
9-
- 4008:4008
10-
build:
11-
context: .
12-
dockerfile: maxscale/Dockerfile
13-
args:
14-
MAXSCALE_VERSION: $MAXSCALE_VERSION
153
db:
164
image: $DB
17-
command: --max-connections=500 --max-allowed-packet=40m --innodb-log-file-size=400m --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --ssl-ca=/etc/sslcert/ca.crt --ssl-cert=/etc/sslcert/server.crt --ssl-key=/etc/sslcert/server.key --bind-address=0.0.0.0
5+
command: --innodb-log-file-size=400m --max-allowed-packet=40m --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --ssl-ca=/etc/sslcert/ca.crt --ssl-cert=/etc/sslcert/server.crt --ssl-key=/etc/sslcert/server.key --bind-address=0.0.0.0 $ADDITIONAL_CONF
186
ports:
197
- 3305:3306
208
volumes:
@@ -23,3 +11,26 @@ services:
2311
environment:
2412
MYSQL_DATABASE: testn
2513
MYSQL_ALLOW_EMPTY_PASSWORD: 1
14+
healthcheck:
15+
test: ["CMD", "mysql", "--protocol=tcp", "-ubob", "-h127.0.0.1"]
16+
timeout: 50s
17+
retries: 10
18+
interval: 5s
19+
20+
maxscale:
21+
depends_on:
22+
db:
23+
condition: service_healthy
24+
links:
25+
- "db:database"
26+
ports:
27+
- 4006:4006
28+
- 4008:4008
29+
- 4009:4009
30+
volumes:
31+
- $SSLCERT:/etc/sslcert
32+
build:
33+
context: .
34+
dockerfile: maxscale/Dockerfile
35+
args:
36+
MAXSCALE_VERSION: $MAXSCALE_VERSION

.travis/maxscale/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
FROM centos:7
22

33
ARG MAXSCALE_VERSION
4-
ENV MAXSCALE_VERSION ${MAXSCALE_VERSION:-2.2.9}
4+
ENV MAXSCALE_VERSION ${MAXSCALE_VERSION:-2.5.4}
55

66
COPY maxscale/mariadb.repo /etc/yum.repos.d/
7-
87
RUN rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB \
9-
&& yum -y install https://downloads.mariadb.com/MaxScale/${MAXSCALE_VERSION}/centos/7/x86_64/maxscale-${MAXSCALE_VERSION}-1.centos.7.x86_64.rpm \
8+
&& yum -y install https://downloads.mariadb.com/MaxScale/${MAXSCALE_VERSION}/centos/7/x86_64/maxscale-${MAXSCALE_VERSION}-1.rhel.7.x86_64.rpm \
109
&& yum -y update
1110

1211
RUN yum -y install maxscale-${MAXSCALE_VERSION} MariaDB-client \
1312
&& yum clean all \
1413
&& rm -rf /tmp/*
1514

1615
COPY maxscale/docker-entrypoint.sh /
17-
RUN chmod 777 /etc/maxscale.cnf
1816
COPY maxscale/maxscale.cnf /etc/
17+
RUN chmod 777 /etc/maxscale.cnf
1918
RUN chmod 777 /docker-entrypoint.sh
2019

2120

.travis/maxscale/maxscale.cnf

Lines changed: 60 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,59 @@
1-
# MaxScale documentation on GitHub:
2-
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Documentation-Contents.md
1+
# MaxScale documentation:
2+
# https://mariadb.com/kb/en/mariadb-maxscale-24/
33

44
# Global parameters
55
#
66
# Complete list of configuration options:
7-
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Getting-Started/Configuration-Guide.md
8-
7+
# https://mariadb.com/kb/en/mariadb-maxscale-24-mariadb-maxscale-configuration-guide/
98

109
[maxscale]
11-
threads=2
12-
log_messages=1
13-
log_trace=1
14-
log_debug=1
10+
threads=auto
1511

1612
# Server definitions
1713
#
1814
# Set the address of the server to the network
19-
# address of a MySQL server.
15+
# address of a MariaDB server.
2016
#
2117

18+
[server2]
19+
type=server
20+
address=database
21+
port=3306
22+
protocol=MariaDBBackend
23+
ssl=true
24+
ssl_ca_cert=/etc/sslcert/server.crt
25+
ssl_cert=/etc/sslcert/client.crt
26+
ssl_key=/etc/sslcert/client.key
27+
28+
2229
[server1]
2330
type=server
2431
address=db
2532
port=3306
2633
protocol=MariaDBBackend
27-
authenticator_options=skip_authentication=true
28-
router_options=master
34+
2935

3036
# Monitor for the servers
3137
#
3238
# This will keep MaxScale aware of the state of the servers.
33-
# MySQL Monitor documentation:
34-
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Monitors/MySQL-Monitor.md
39+
# MariaDB Monitor documentation:
40+
# https://mariadb.com/kb/en/mariadb-maxscale-24-mariadb-monitor/
3541

36-
[MySQLMonitor]
42+
[MariaDB-Monitor]
3743
type=monitor
3844
module=mariadbmon
3945
servers=server1
4046
user=boby
41-
passwd=heyPassw0@rd
42-
monitor_interval=10000
47+
password=heyPassw0@rd
48+
monitor_interval=2000
49+
50+
[MariaDB-Monitor2]
51+
type=monitor
52+
module=mariadbmon
53+
servers=server2
54+
user=boby
55+
password=heyPassw0@rd
56+
monitor_interval=2000
4357

4458
# Service definitions
4559
#
@@ -48,78 +62,61 @@ monitor_interval=10000
4862
#
4963

5064
# ReadConnRoute documentation:
51-
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Routers/ReadConnRoute.md
65+
# https://mariadb.com/kb/en/mariadb-maxscale-24-readconnroute/
5266

53-
[Read-OnlyService]
54-
enable_root_user=1
55-
version_string=10.4.99-MariaDB-maxScale
67+
[Read-Only-Service]
5668
type=service
57-
router=readconnroute
58-
servers=server1
69+
router=readwritesplit
70+
version_string=10.5.99-MariaDB-maxScale
71+
servers=server2
5972
user=boby
60-
passwd=heyPassw0@rd
73+
password=heyPassw0@rd
6174
router_options=slave
62-
localhost_match_wildcard_host=1
6375

64-
[Read-WriteService]
65-
enable_root_user=1
66-
version_string=10.4.99-MariaDB-maxScale
76+
# ReadWriteSplit documentation:
77+
# https://mariadb.com/kb/en/mariadb-maxscale-24-readwritesplit/
78+
79+
[Read-Write-Service]
6780
type=service
6881
router=readwritesplit
6982
servers=server1
83+
version_string=10.5.99-MariaDB-maxScale
7084
user=boby
71-
passwd=heyPassw0@rd
72-
localhost_match_wildcard_host=1
85+
password=heyPassw0@rd
7386

74-
[WriteService]
87+
[Read-Write-Service2]
7588
type=service
76-
router=readconnroute
77-
servers=server1
89+
router=readwritesplit
90+
version_string=10.5.99-MariaDB-maxScale
91+
servers=server2
7892
user=boby
79-
passwd=heyPassw0@rd
80-
router_options=master
81-
localhost_match_wildcard_host=1
82-
version_string=10.4.99-MariaDB-maxScale
83-
84-
85-
# This service enables the use of the MaxAdmin interface
86-
# MaxScale administration guide:
87-
# https://github.com/mariadb-corporation/MaxScale/blob/2.1/Documentation/Reference/MaxAdmin.mda
88-
89-
[MaxAdminService]
90-
enable_root_user=1
91-
version_string=10.4.99-MariaDB-maxScale
92-
type=service
93-
router=cli
93+
password=heyPassw0@rd
9494

9595
# Listener definitions for the services
9696
#
9797
# These listeners represent the ports the
9898
# services will listen on.
9999
#
100-
[WriteListener]
101-
type=listener
102-
service=WriteService
103-
protocol=MariaDBClient
104-
port=4007
105-
#socket=/var/lib/maxscale/writeconn.sock
106100

107-
[Read-OnlyListener]
101+
[Read-Only-Listener]
108102
type=listener
109-
service=Read-OnlyService
103+
service=Read-Only-Service
110104
protocol=MariaDBClient
111105
port=4008
112-
#socket=/var/lib/maxscale/readconn.sock
113106

114-
[Read-WriteListener]
107+
[Read-Write-Listener]
115108
type=listener
116-
service=Read-WriteService
109+
service=Read-Write-Service
117110
protocol=MariaDBClient
118111
port=4006
119-
#socket=/var/lib/maxscale/rwsplit.sock
120112

121-
[MaxAdminListener]
113+
114+
[Read-Write-Listener2]
122115
type=listener
123-
service=MaxAdminService
124-
protocol=maxscaled
125-
socket=/tmp/maxadmin.sock
116+
service=Read-Write-Service2
117+
protocol=MariaDBClient
118+
port=4009
119+
ssl=true
120+
ssl_ca_cert=/etc/sslcert/ca.crt
121+
ssl_cert=/etc/sslcert/server.crt
122+
ssl_key=/etc/sslcert/server.key

0 commit comments

Comments
 (0)