After a forced failover of Azure Mysql Flexible, why is the instance read-only?

EJ Marmonti 146 Reputation points
2022-02-17T17:36:04.733+00:00

Hello,

I have an Azure MySql Flexible instance running at foo.mysql.database.azure.com with zone redundant HA enabled. I attempted a forced failover per https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-high-availability. After the failover, my app was throwing errors that the database instance was read-only. After about 10 minutes, I did another forced failover and then the app started to respond correctly (no more read-only errors).

It looks like the database failed over, but perhaps my app remained connected to the same instance, which by that point was a read-only standby, since the one in the other zone became the new primary? However, the article linked above claims that the DNS record should update and point to the new primary location, which is now in a different zone.

What is missing here? Was the 10 minutes not long enough for DNS to propagate completely? Usually Azure DNS changes are lightning fast, so I'm not convinced that was the problem.

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
829 questions
0 comments No comments
{count} votes

Accepted answer
  1. Oury Ba-MSFT 19,181 Reputation points Microsoft Employee
    2022-02-18T20:17:40.737+00:00

    Hi @EJ Marmonti Thank you for posting your Question on Microsoft Q&A.
    This is a known issue that the connections are still redirected to the old primary instance after failover. I am working closely with our product team to get more details about this issue and any plan fix.

    Regards,
    Oury


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.