Hello subhash-DBA,
Thank you for posting your question in the Microsoft Q&A forum.
The behavior you're observing, where the Azure PostgreSQL Flexible Server instance status changes from "Ready" to "Updating" during an on-demand backup, is expected and occurs due to the underlying architecture and process of how backups are handled in Azure PostgreSQL Flexible Server.
Azure PostgreSQL Flexible Server uses a snapshot-based backup mechanism for on-demand backups. This involves creating a point-in-time snapshot of the storage volume associated with the database. To ensure data consistency during the backup process, the database instance may need to temporarily pause certain operations or enter a state where it is not fully accessible.
Few insights on why status changes to “Updating”:
- Storage-Level Snapshot: When you initiate an on-demand backup, Azure triggers a storage-level snapshot. This requires the database to briefly pause write operations to ensure the snapshot is consistent.
- Instance State: During this process, the instance status changes to "Updating" to reflect that the database is in a transitional state while the backup is being taken.
- Temporary Impact: While the backup is in progress, the database may experience a brief period of reduced availability or performance, depending on the workload and the size of the database.
Some recommended best practices as below:
- Schedule Backups During Off-Peak Hours: If you are concerned about the impact of on-demand backups, consider scheduling automated backups during periods of low activity.
- Monitor Backup Duration: Keep an eye on how long the backup process takes. If the "Updating" state persists for an unusually long time, investigate potential issues with the database or storage.
- Use Read Replicas: If high availability is critical, consider using read replicas to offload read traffic during backup operations.
The status change to "Updating" during an on-demand backup is a normal part of the backup process for Azure PostgreSQL Flexible Server. It ensures data consistency and is typically short-lived. If the behavior persists or causes significant downtime, you may want to review your database configuration.
If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated.