From e40918091e84d813d81106ea0aa3079d4c66dc7c Mon Sep 17 00:00:00 2001 From: Tomislav Plavcic Date: Wed, 9 Nov 2022 17:45:32 +0100 Subject: [PATCH] Set failBack=true for proxysql-scheduler-admin --- proxysql/dockerdir/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxysql/dockerdir/entrypoint.sh b/proxysql/dockerdir/entrypoint.sh index acdf82ec..729db131 100755 --- a/proxysql/dockerdir/entrypoint.sh +++ b/proxysql/dockerdir/entrypoint.sh @@ -16,7 +16,8 @@ if [ -n ${PROXYSQL_SERVICE} ]; then sed "s/^writerIsAlsoReader.*=.*$/writerIsAlsoReader = 1/" ${PERCONA_SCHEDULER_CFG} | \ sed "s/^hgW.*=.*$/hgW = 11/" | \ sed "s/^hgR.*=.*$/hgR = 10/" | \ - sed "s/^clustered.*=.*false$/clustered = true/" > ${TEMP_PROXY_SCHEDULER_CFG} + sed "s/^clustered.*=.*false$/clustered = true/" | \ + sed "s/^failBack.*=.*false$/failBack = true/" > ${TEMP_PROXY_SCHEDULER_CFG} cp -f ${TEMP_PROXY_SCHEDULER_CFG} ${PERCONA_SCHEDULER_CFG} # proxysql-admin scheduler sed "s/#export WRITERS_ARE_READERS=.*$/export WRITERS_ARE_READERS='yes'/g" ${PROXY_SCHEDULER_CFG} 1<> ${PROXY_SCHEDULER_CFG}