WAL files are not being cleaned up, leading to storage growth very rapidly in Azure database for postgres flexible server

Manikanteswar Punnam 40 Reputation points
2025-04-16T15:19:33.5133333+00:00

For the last 6 days since 10th April 2025, i have been noticing the storage growth for production database (azure database for postgres flexible server) is growing very rapidly which is very unusual for our company. I am suspecting the incident which happened on this 10th April when i deleted the Read replica of our primary server, i am not sure whether that deletion happened successfully, however it is not appearing in portal. So with suspicion, i queried the WAL size and actual data size. Here are the results,

User's image

so almost half of the disk usage is WAL only currently.

This size is growing insane affecting our main storage, it will become a very big problem soon, so we need to fix this before it hit us worse. currently because of this our storage percentage reached 33% within 6 days from 34%, i.e. 32% increase in just 6 days. Current Storage capacity is 256 GB, it means it has grown close to 82 GB which is insane...

Kindly requesting you to help me solve this issue

Azure Database for PostgreSQL
{count} votes

Accepted answer
  1. Saraswathi Devadula 3,155 Reputation points Microsoft External Staff Moderator
    2025-04-16T17:39:12.1933333+00:00

    Hello Manikanteswar Punnam

    Issue : Initially, you were unable to create the read replica and suspecting that due to this only the storage is increased.

    Cause: VM agent is in unhealthy state due to which you are unable to create the read replica, and the storage was increased.

     

    Solution: In further investigation, we tried to restart the server, and we request you to retry the read replica and check the storage.

    later your confirmed that you are able to create the read replica and the issue is resolved.

    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.

    User's image

    1 person found this answer helpful.
    0 comments No comments

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.