From 6a3d66d977472f7997e43104a8f71d5f61fdffaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 19 Apr 2021 22:08:35 +0200 Subject: [PATCH] Preparing the skeleton for cluster testing --- test/cluster/confs/proxysql01.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/confs/proxysql02.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/confs/proxysql03.cfg | 36 +++++++++++++++++++++++++++++++ test/cluster/start.sh | 4 ++++ 4 files changed, 112 insertions(+) create mode 100644 test/cluster/confs/proxysql01.cfg create mode 100644 test/cluster/confs/proxysql02.cfg create mode 100644 test/cluster/confs/proxysql03.cfg create mode 100755 test/cluster/start.sh diff --git a/test/cluster/confs/proxysql01.cfg b/test/cluster/confs/proxysql01.cfg new file mode 100644 index 000000000..aa3bc8c2b --- /dev/null +++ b/test/cluster/confs/proxysql01.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26001" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36001" +} + +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/proxysql02.cfg b/test/cluster/confs/proxysql02.cfg new file mode 100644 index 000000000..85beb06bc --- /dev/null +++ b/test/cluster/confs/proxysql02.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26002" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36002" +} + +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/proxysql03.cfg b/test/cluster/confs/proxysql03.cfg new file mode 100644 index 000000000..4bec8f9a4 --- /dev/null +++ b/test/cluster/confs/proxysql03.cfg @@ -0,0 +1,36 @@ +cluster_sync_interfaces=false + +admin_variables= +{ + admin_credentials="admin:admin;cluster1:secret1pass" + mysql_ifaces="0.0.0.0:26003" + cluster_username="cluster1" + cluster_password="secret1pass" +} + +mysql_variables= +{ + interfaces="0.0.0.0:36003" +} + +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 new file mode 100755 index 000000000..0c730db5e --- /dev/null +++ b/test/cluster/start.sh @@ -0,0 +1,4 @@ +#/bin/bash +../../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