Scaling Azure Database for MySQL flexible server

Vishesh 40 Reputation points
2025-04-21T11:41:46.4366667+00:00

Hi,

We are in the process of upscaling our MySQL Flexible Servers. Currently, we have a master and a replica setup. I had a few queries regarding the upgrade process:

  1. Will the replica be automatically upgraded when we upscale the master server? If not, what is the correct way to upgrade the replica?
  2. What kind of downtime can we expect when upgrading the compute size of the master server?
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
961 questions
0 comments No comments
{count} votes

Accepted answer
  1. Obinna Ejidike 815 Reputation points
    2025-04-21T12:03:56.6166667+00:00

    Hi Vishesh

    Thanks for using the Q&A platform.

    Regarding your first question, the answer is NO, replicas are not automatically scaled when you upscale the primary server. You will need to manually scale the replica to match the compute configuration of the primary server.

    On your second question, scaling compute (vCores/memory) for Flexible Server is a resizing operation, and yes, it involves a short downtime. What happens is that Azure will restart the MySQL instance during compute scaling. The duration usually depends on the size of the server, active connections, and data volume.

    Kindly find documentation for more insight: https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-maintenance?utm_source=chatgpt.com#near-zero-downtime-maintenance-preview

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Obinna.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Saraswathi Devadula 2,740 Reputation points Microsoft External Staff Moderator
    2025-04-21T12:19:11.7833333+00:00

    Hello Vishesh

    I understood that you want to know more about the MySQL flexible server and its replica.

    Kindly please refer the below information,

    Will the replica be automatically upgraded when we upscale the master server? If not, what is the correct way to upgrade the replica?

    Replicas don't automatically scale alongside the primary server during an upscaling process. You'll need to manually adjust the replica's compute configuration. It is recommended that the replica server's configuration should be kept at equal or greater values than the source to ensure the replica can keep up with the source.

    Please refer the below document for better understanding,
    https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-read-replicas-portal

    What kind of downtime can we expect when upgrading the compute size of the master server?

    Yes, there will be a minimal downtime, as the Azure will restart the server during the scaling process. Server downtime can vary depending on factors like the size, connections which are active and the complexity of the schema.

    Please refer the below document for better understanding,
    https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-maintenance?utm_source=chatgpt.com#maintenance-windows

    I hope this has been helpful!

    Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    If this answers your query, do click Accept Answer and Upvote for was this answer helpful.

    0 comments No comments

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.