Unexpected Cost Increase in Azure MySQL Flexible Server

Even Johansen 0 Reputation points
2025-02-25T07:54:39.22+00:00

Hello,

We operate an Azure Database for MySQL Flexible Server running MySQL 5.7. Around November/December 2024, we observed a significant increase in our database costs. Our 500 MB database has accumulated up to 4 TB of backup data, primarily due to extensive binary logs. This aligns with our workload, which involves frequent updates to one of the tables.

However, we haven't made any significant changes to our configuration or workload, and the load has remained consistent throughout the year. We're seeking insights into why our costs escalated during this period without any modifications on our end.

Thank you for your assistance.

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
919 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 118.9K Reputation points MVP
    2025-02-25T08:02:15.0333333+00:00

    Hi @Even Johansen ,

    did you try the Cost analysis already to figure out what is causing the costs?

    Using the View section in Cost analysis might help to track the costs down by service.

    User's image


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten


  2. Andreas Baumgarten 118.9K Reputation points MVP
    2025-02-25T12:25:28.3133333+00:00

    Hi @Even Johansen ,

    If I understand correctly, reducing the retention period would shorten the time available to detect potential issues. For example, if we set it to one day but don’t realize there's a problem until several days later, the restore point from when everything was working would no longer be available.

    Yes. That's the tradeoff you will get: low retention time = less data but less days the backup might be available.----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    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.