From 957892a0bc478a9b8ee4d28b02551347ee3eb8a4 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 27 Sep 2023 14:33:37 +0200 Subject: [PATCH] Update healtchcheck --- proxysql/base/proxysql-configmap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxysql/base/proxysql-configmap.yml b/proxysql/base/proxysql-configmap.yml index 4ed6d4a..a9c25f6 100644 --- a/proxysql/base/proxysql-configmap.yml +++ b/proxysql/base/proxysql-configmap.yml @@ -408,7 +408,7 @@ data: ) healthcheck.sh: | #!/bin/bash - num_servers=$(mysql -NB -u admin -h 127.0.0.1 -P 6032 -e "select count(*) from main.mysql_servers") + num_servers=$(mysql -NB -u admin -h 127.0.0.1 -P 6032 -e "select count(*) from main.mysql_servers where hostgroup_id = 10") if [[ ${num_servers} -lt 1 ]]; then exit 1 fi