mirror of https://github.com/sysown/proxysql
This scheduerl script will only start in CI if there is a cluster of 10 proxysql nodes (including the tested one)pull/3305/head
parent
f8ce41305d
commit
8dd33577f6
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
TABLES=(mysql_servers mysql_users mysql_query_rules mysql_query_rules_fast_routing global_variables proxysql_servers mysql_galera_hostgroups mysql_group_replication_hostgroups mysql_replication_hostgroups)
|
||||
|
||||
ALL_TABLES=()
|
||||
|
||||
for i in ${!TABLES[@]} ; do
|
||||
ALL_TABLES+=(${TABLES[$i]})
|
||||
ALL_TABLES+=("runtime_"${TABLES[$i]})
|
||||
done
|
||||
|
||||
for i in ${!ALL_TABLES[@]} ; do
|
||||
echo "SELECT * FROM ${ALL_TABLES[$i]};"
|
||||
done
|
||||
|
||||
|
||||
for i in ${!ALL_TABLES[@]} ; do
|
||||
for p in 6032 `seq 26001 26009` ; do
|
||||
mysql -u admin -padmin -h 127.0.0.1 -P$p -e "SELECT * FROM ${ALL_TABLES[$i]}" > /dev/null 2> /dev/null &
|
||||
done
|
||||
done
|
||||
@ -0,0 +1,4 @@
|
||||
#/bin/bash
|
||||
cp -f check_all_nodes.bash /tmp/check_all_nodes.bash
|
||||
chmod +x /tmp/check_all_nodes.bash
|
||||
mysql -u admin -padmin -h 127.0.0.1 -P6032 -e "INSERT INTO scheduler (interval_ms, filename) VALUES (7000, '/tmp/check_all_nodes.bash'); LOAD SCHEDULER TO RUNTIME; SAVE SCHEDULER TO DISK;"
|
||||
Loading…
Reference in new issue