Bug #115452 No High-Availability Support in MySQL Router Docker Image

Submitted: 28 Jun 2024 7:43 Modified: 28 Jun 2024 15:52
Reporter: Johnathan Smithons Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Router: Docker Image Severity:S2 (Serious)
Version: OS:Any
Assigned to: CPU Architecture:Any

[28 Jun 2024 7:43] Johnathan Smithons
Description:
The docker image will wait until MYSQL_HOST is up and then perform a bootstrap.

This means that when the cluster is running fine, but with MYSQL_HOST in maintenance, the router will never come up.

How to repeat:
Run docker image

Suggested fix:
Proposed solution, allow mounting of a persistent directory into /tmp/mysqlrouter and check if that directory exists on startup. 

If it exists, skip right to mysqlrouter --config /tmp/mysqlrouter/mysqlrouter.conf, otherwise run bootstrap

So basically just add "if [ -d /tmp/mysqlrouter ]; then" to /run.sh
[28 Jun 2024 15:52] MySQL Verification Team
Thanks for the report.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.