mirror of https://github.com/sysown/proxysql
parent
6a3d66d977
commit
ceebda3cd7
@ -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"
|
||||
}
|
||||
)
|
||||
@ -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"
|
||||
}
|
||||
)
|
||||
@ -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"
|
||||
}
|
||||
)
|
||||
@ -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"
|
||||
}
|
||||
)
|
||||
@ -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"
|
||||
}
|
||||
)
|
||||
@ -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"
|
||||
}
|
||||
)
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in new issue