MySQL Forums
Forum List  »  Router & Proxy

Re: Inquiry: Expected Behaviour of DB Connections During MySQL Router Failover
Posted by: Herrick Peterson
Date: November 04, 2026 08:21AM

Yes, this is generally expected. A MySQL Router failover doesn't automatically terminate existing database sessions. Connections that were already established may remain open on the database until they are closed by the client or expire based on wait_timeout or interactive_timeout.
I'd recommend reviewing the application's connection pool settings, especially idle connection timeout and connection lifetime. You can also reduce wait_timeout on the MySQL servers, but make sure it doesn't interfere with legitimate long-running connections.
The application should also detect broken connections and establish new ones through the active Router after failover. This helps prevent stale sessions from accumulating and consuming the connection limit.
Herrick, DevOps Engineer @accuweb.cloud

Options: Reply• Quote


Subject
Views
Written By
Posted
Re: Inquiry: Expected Behaviour of DB Connections During MySQL Router Failover
9
November 04, 2026 08:21AM


Sorry, only registered users may post in this forum.

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.