Azure SQL Database is a fully managed cloud-based database service, with built-in AI-based tuning, high availability, multi-layered security, and data protection. Azure SQL Database offers a wide range of data protection options, including backup and recovery.
In this post, we’ll examine Azure SQL Database backup and recovery options, including point in time restore (PITR), Azure SQL Database Managed Instance, and more. We’ll also explain how the database recovery process works in Azure SQL Database, and show how NetApp Cloud Volumes ONTAP can help address Azure database challenges.
In this article, you will learn:
When you need to recover your database from backups, there are several restoration options you can choose from, including:
Azure SQL Database is built on a high-availability architecture with a service level agreement (SLA) guaranteeing 99.99% uptime. Azure is responsible for all servicing tasks, including patches, upgrades, maintaining hardware, responding to incidents, and SQL backups. Any downtime created by maintenance or the need for failovers is invisible as long as you enable retry logic in your applications.
As part of the Azure high-availability guarantee, Azure works to ensure that none of your data is lost, even in the case of hardware failures. Additionally, maintenance is performed around your workloads, ensuring your operations remain uninterrupted. This includes continuous upgrades performed to keep your database running on the latest stable version of the Azure SQL Server engine.
Additionally, when using SQL Database, there are two architectural models you can choose from:
When using Azure SQL Database, it is important to understand how backups consume storage. This ensures that you are not caught off-guard by storage costs and helps you optimize your storage budgets.
Storage for the various deployment types are calculated as follows:
All deployment options are granted free backup storage equal to the data storage in use. After that, backup storage is charged depending on the workload and size of your databases in GB per month.
Within your backup storage, full backup copies are deleted when the timestamp exceeds the retention period. Differential and log backups are deleted weekly according to when the supporting full backup is deleted. These processes continue even after a database has been dropped or recreated.
When you need to use your backups for recovery, it helps to understand how traditional recovery processes work. With the standard SQL Server recovery process, the ARIES model is used. In this model, there are three phases:
The recovery time for your database is based directly on the above processes. Timing depends specifically on the longest active transaction and the number of active transactions at the time of database failure. In short, this means that the shorter your transaction times and the fewer active transactions you have at once, the faster your recovery.
To help speed up the recovery process without sacrificing long-running transactions, like bulk inserts, Azure offers the Accelerated Database Recovery (ADR) feature. This feature is built-in to the SQL Server engine. It is available for all deployment types of SQL Database and is in preview for Azure SQL Data Warehouse.
Using this feature during recovery can provide the following benefits:
ADR works by redesigning the recovery process into four recovery components. These include:
When the ADR components are applied, the same phases as the traditional recovery process are used. The difference is in the way these phases are performed. By limiting the amount of data that must be processed to perform phases, ADR can significantly speed recovery times. It accomplishes this without sacrificing consistency or reliability.
These improvements are possible because ADR versions all database modifications and only undoes logical operations. Rather than processing active transactions at the time of database failure, these transactions are treated as aborted and ignored.
NetApp Cloud Volumes ONTAP, the leading enterprise-grade storage management solution, delivers secure, proven storage management services on AWS, Azure and Google Cloud. Cloud Volumes ONTAP supports up to a capacity of 368TB, and supports various use cases such as file services, databases, DevOps or any other enterprise workload, with a strong set of features including high availability, data protection, storage efficiencies, Kubernetes integration, and more.
In particular, Cloud Volumes ONTAP can help you solve the storage component of a high availability strategy on Azure, and achieve storage efficiencies on Azure for SQL Database and other workloads.