Why is storage usage increasing consistently and overloading our Azure Postgresql server?

Khan, Sifat Shahriar 5 Reputation points
2025-06-16T20:40:59.9533333+00:00

Storage usage has been consistently increasing in our Postgresql server since May 28th until yesterday, when it got overloaded. The effective size of the database is around 20GB, while the database storage used has reached 120+ GB. Why is it happening?
Please note that the database size, meaning all our tables combined, is around 20 GB. Per day, we ingest around 200MB of data.
We switched from Burstable Compute to General Compute on May 28th, where we ran into some issue, where our server had crashed and needed to be restarted from the backend with the help of Azure-tech-support.

User's image

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Khan, Sifat Shahriar 5 Reputation points
    2025-06-17T21:03:47.0233333+00:00

    Quick Update on the Database Issue ( Resolved) 

     

    One of my team members connected with Microsoft Technical Support and successfully resolved the problem.

     

    What Happened:

     

    When we switched the database tier from Burstable to General Purpose on May 28th, the database was under heavy load (CPU usage at 100%). Because of that, the SAAS token — an internal authentication token used by Microsoft for PostgreSQL — wasn’t refreshed properly.

     

    Since the token wasn’t refreshed, the system started saving WAL (Write-Ahead Logging) files in the background. These files are usually managed automatically, but the failure in token refresh prevented that process. As a result, around 100GB of WAL files accumulated between May 19th and June 15th.

     

    Solution:

     

    Microsoft’s support team:

     

    1.  Cleared all the accumulated WAL files
    2.  Manually refreshed the SAAS token

    This is not something we have access to manage on our side — only Microsoft’s authorized personnel can perform these actions.

     

    Current Status:

    The database is now stable and performing well. Everything looks good on the backend too. 

     


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.