Skip to content

Commit fb8a94a

Browse files
fix: DPE-7356 mitigate instance blocking (#439)
## Issue See issue #438 ## Solution Change defaults for quarantining instances to avoid upstream bug. Fix #438 ## Test Available build in branch `8.0/edge/dns` | rev744 (_for amd64 only_): ```sh juju deploy mysql-router-k8s --trust --channel 8.0/edge/dns ``` --------- Co-authored-by: Carl Csaposs <[email protected]>
1 parent 6aba7a0 commit fb8a94a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

spread.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ backends:
7979
PermitEmptyPasswords yes
8080
EOF
8181
82+
sudo passwd --delete "$USER"
83+
8284
ADDRESS localhost
8385
# HACK: spread does not pass environment variables set on runner
8486
# Manually pass specific environment variables

src/workload.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ def _get_bootstrap_command(
252252
"--conf-set-option",
253253
f"http_auth_backend:default_auth_backend.filename={self._container.rest_api_credentials_file.relative_to_container}",
254254
"--conf-use-gr-notifications",
255+
# destination_status added to workaround MySQL Router bug
256+
# https://bugs.mysql.com/bug.php?id=118059
257+
# TODO: Remove once fixed on upstream
258+
"--conf-set-option",
259+
"destination_status.error_quarantine_threshold=3",
260+
"--conf-set-option",
261+
"destination_status.error_quarantine_interval=5",
255262
]
256263

257264
def _bootstrap_router(self, *, event, tls: bool) -> None:

0 commit comments

Comments
 (0)