Checking connection status to PXC nodes can stall proxysql_galera_checker script

Description

Based on failover tests, when PXC connection tests connect to the MySQL node shutting down, it can cause mysql command to stall:

Because of the stall, it takes 30 seconds to failover to other nodes. I would suggest to add "timeout" to mysql connection to speed up connection check:

 

With this additional setting, failover time takes 10 seconds.

Environment

None

AFFECTED CS IDs

235271

Smart Checklist

Activity

Show:
Done

Assignee

Reporter

Fix versions

Affects versions

Priority

Created September 2, 2018 at 11:04 AM
Updated March 6, 2024 at 5:46 PM
Resolved September 14, 2018 at 3:54 AM