From ceebda3cd7b705a34a72d5563b7a2f48ad96df9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 19 Apr 2021 22:16:27 +0200 Subject: [PATCH] Configure cluster test for up to 9 nodes 3 core nodes 6 satellite nodes --- test/cluster/confs/proxysql04.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/confs/proxysql05.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/confs/proxysql06.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/confs/proxysql07.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/confs/proxysql08.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/confs/proxysql09.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/start.sh | 6 ++++++ 7 files changed, 222 insertions(+) create mode 100644 test/cluster/confs/proxysql04.cfg create mode 100644 test/cluster/confs/proxysql05.cfg create mode 100644 test/cluster/confs/proxysql06.cfg create mode 100644 test/cluster/confs/proxysql07.cfg create mode 100644 test/cluster/confs/proxysql08.cfg create mode 100644 test/cluster/confs/proxysql09.cfg diff --git a/test/cluster/confs/proxysql04.cfg b/test/cluster/confs/proxysql04.cfg new file mode 100644 index 000000000..37eb66274 --- /dev/null +++ b/test/cluster/confs/proxysql04.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26004" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36004" +} + +proxysql_servers = +( + { + hostname="127.0.0.1" + port=26001 + weight=0 + comment="proxysql01" + }, + { + hostname="127.0.0.1" + port=26002 + weight=0 + comment="proxysql02" + }, + { + hostname="127.0.0.1" + port=26003 + weight=0 + comment="proxysql03" + } +) diff --git a/test/cluster/confs/proxysql05.cfg b/test/cluster/confs/proxysql05.cfg new file mode 100644 index 000000000..6a48b085e --- /dev/null +++ b/test/cluster/confs/proxysql05.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26005" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36005" +} + +proxysql_servers = +( + { + hostname="127.0.0.1" + port=26001 + weight=0 + comment="proxysql01" + }, + { + hostname="127.0.0.1" + port=26002 + weight=0 + comment="proxysql02" + }, + { + hostname="127.0.0.1" + port=26003 + weight=0 + comment="proxysql03" + } +) diff --git a/test/cluster/confs/proxysql06.cfg b/test/cluster/confs/proxysql06.cfg new file mode 100644 index 000000000..70728f0df --- /dev/null +++ b/test/cluster/confs/proxysql06.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26006" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36006" +} + +proxysql_servers = +( + { + hostname="127.0.0.1" + port=26001 + weight=0 + comment="proxysql01" + }, + { + hostname="127.0.0.1" + port=26002 + weight=0 + comment="proxysql02" + }, + { + hostname="127.0.0.1" + port=26003 + weight=0 + comment="proxysql03" + } +) diff --git a/test/cluster/confs/proxysql07.cfg b/test/cluster/confs/proxysql07.cfg new file mode 100644 index 000000000..d6f16179a --- /dev/null +++ b/test/cluster/confs/proxysql07.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26007" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36007" +} + +proxysql_servers = +( + { + hostname="127.0.0.1" + port=26001 + weight=0 + comment="proxysql01" + }, + { + hostname="127.0.0.1" + port=26002 + weight=0 + comment="proxysql02" + }, + { + hostname="127.0.0.1" + port=26003 + weight=0 + comment="proxysql03" + } +) diff --git a/test/cluster/confs/proxysql08.cfg b/test/cluster/confs/proxysql08.cfg new file mode 100644 index 000000000..17d0fecb4 --- /dev/null +++ b/test/cluster/confs/proxysql08.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26008" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36008" +} + +proxysql_servers = +( + { + hostname="127.0.0.1" + port=26001 + weight=0 + comment="proxysql01" + }, + { + hostname="127.0.0.1" + port=26002 + weight=0 + comment="proxysql02" + }, + { + hostname="127.0.0.1" + port=26003 + weight=0 + comment="proxysql03" + } +) diff --git a/test/cluster/confs/proxysql09.cfg b/test/cluster/confs/proxysql09.cfg new file mode 100644 index 000000000..cca81da81 --- /dev/null +++ b/test/cluster/confs/proxysql09.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26009" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36009" +} + +proxysql_servers = +( + { + hostname="127.0.0.1" + port=26001 + weight=0 + comment="proxysql01" + }, + { + hostname="127.0.0.1" + port=26002 + weight=0 + comment="proxysql02" + }, + { + hostname="127.0.0.1" + port=26003 + weight=0 + comment="proxysql03" + } +) diff --git a/test/cluster/start.sh b/test/cluster/start.sh index 0c730db5e..846879316 100755 --- a/test/cluster/start.sh +++ b/test/cluster/start.sh @@ -1,4 +1,10 @@ #/bin/bash +echo "Starting the core nodes" ../../src/proxysql -M -D $PWD/node01 -c confs/proxysql01.cfg ../../src/proxysql -M -D $PWD/node02 -c confs/proxysql02.cfg ../../src/proxysql -M -D $PWD/node03 -c confs/proxysql03.cfg + +echo "Starting the satellite nodes" +for i in `seq 4 9` ; do + ../../src/proxysql -M -D $PWD/node0$i -c confs/proxysql0$i.cfg +done