Azure Redis Cache Configure Data Persistence

 Introduction

In one of our previous articles, Azure Redis Cache – Introduction, we learned the basics of Azure Redis Cache along with its features.

Azure provides the three tiers for Redis Cache, mentioned below.

  1. Basic
  2. Standard
  3. Premium

In both Basic and Standard tier, the data is stored in memory of VM instance, where the Service is provisioned. In case of infrastructure or datacenter failures, we cannot recover the data for these two tiers.

Another point to note is that the Standard tier provides 99.9% SLA, which is SLA only for the Azure Redis Cache End Point. Azure makes sure that we will be able to access Azure Redis Cache almost all the time (99.9%). However, this SLA is not application for the data.

In order to have the data persistent even after unexpected hard failure issues in the data center, it is recommended to go for Premium tier and enable the Data Persistence feature of Azure Redis Cache, which is available only in Premium tier.

You can enable the Data Persistence for a new Redis Cache Service or to an existing Redis Cache Service.

Configure Data Persistence for a Redis Cache Service

Prerequisites

You need to create a Premium Storage account for configuring the Data Persistence. Premium storage account must be located in the same subscription and the location of the Azure Redis Cache Service.

Once you create Premium Storage account, navigate to the following blade and select the Premium Tier, as shown below.



As shown in the above screenshot, provide the details given below in Redis data persistence blade.

  • By default, the RDB (Redis Database) option is disabled. Click Enabled button to enable the backup policy.

  • Select the required option in the Backup Frequency dropdown, which is based on your requirement. As of now, the available frequency options are given below.

    • 15 minutes
    • 30 minutes
    • 60 minutes
    • 6 hours
    • 12 hours
    • 24 hours

  • Choose the Storage account, where you would like to store all these backups. Please note that the storage type should be Premium and the storage account must be located in the same region and subscription of Redis Cache Service, which you are creating now.

  • Select the Storage Key. Redis Cache will internally use this key to store and connect to save the backups to the persistent mediums.

Once you provide all the necessary data, click OK in Redis Data Persistence and then click Create in the New Redis Cache blade.

Clicking on Create button will create the Redis Cache, as shown below.



As shown below, you can check and click on the Redis Cache to review the details of the backups.



If you would like to change any of the Data Persistence settings, you can navigate to the Settings blade of Redis Cache and click Data Persistence, as shown below and change the settings that you would like to.



Summary

We learned the things mentioned below in this article:

  • What is Data Persistence and why it is useful? We have also learned that this feature is only available in a Premium Tier of Azure Redis Cache.
  • How to configure Data Persistence while creating Azure Redis Cache.
  • How to make changes to Date Persistence settings.

Hope, you enjoyed reading the article. Your feedback is appreciated. You can read the original article here.


Similar Articles