Skip to content

Commit

Permalink
Set failBack=true for proxysql-scheduler-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
tplavcic committed Nov 9, 2022
1 parent 9bb1b8d commit e409180
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxysql/dockerdir/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e409180

Please sign in to comment.