Skip to content

Commit

Permalink
Set writer and reader hostgroups to old values
Browse files Browse the repository at this point in the history
  • Loading branch information
tplavcic committed Oct 17, 2022
1 parent 7e8b6d3 commit c4b5aec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proxysql/dockerdir/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if [ -n ${PROXYSQL_SERVICE} ]; then
CLUSTER_PORT='33062'
if [ "${SCHEDULER}" == "percona" ]; then
sed "s/^writerIsAlsoReader.*=.*$/writerIsAlsoReader = 1/" ${PROXY_SCHEDULER_CFG} | \
sed "s/^hgW.*=.*$/hgW = 11/" | \
sed "s/^hgR.*=.*$/hgR = 10/" | \
sed "s/^clustered.*=.*false$/clustered = true/" > ${temp_proxy_scheduler_cfg}
cp ${temp_proxy_scheduler_cfg} ${PROXY_SCHEDULER_CFG}
else
Expand Down

0 comments on commit c4b5aec

Please sign in to comment.