Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
RedisAvailabilityZones (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejhenry authored Oct 3, 2023
1 parent 0a49904 commit 5136015
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
50 changes: 50 additions & 0 deletions docs/content/services/database/redis-cache/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
+++
title = "Redis Cache"
description = "Best practices and resiliency recommendations for Redis Cache and associated resources and settings."
date = "10/2/23"
author = "ejhenry"
msAuthor = "ejhenry"
draft = false
+++

The presented resiliency recommendations in this guidance include Redis Cache and associated resources and settings.

## Summary of Recommendations

{{< table style="table-striped" >}}
| Recommendation | Category | Impact | State | ARG Query Available |
| :------------------------------------------------ | :---------------------------------------------------------------------: | :------: | :------: | :-----------------: |
| [REDIS-1 - Enable zone redundancy for Azure Cache for Redis](#redis-1---enable-zone-redundancy-for-azure-cache-for-redis) | High Availability | High | Preview | Yes |
{{< /table >}}

{{< alert style="info" >}}

Definitions of states can be found [here]({{< ref "../../../_index.md#definitions-of-terms-used-in-aprl">}})

{{< /alert >}}

## Recommendations Details

### REDIS-1 - Enable zone redundancy for Azure Cache for Redis

**Category: Availability**

**Impact: High**

**Recommendation/Guidance**

Azure Cache for Redis supports zone redundancy in its Premium and Enterprise tiers. A zone-redundant cache runs on VMs spread across multiple Availability Zones. Zone redundancy provides higher resilience and availability.

**Resources**

- [Enable zone redundancy for Azure Cache for Redis](https://learn.microsoft.com/azure/azure-cache-for-redis/cache-how-to-zone-redundancy)

**Resource Graph Query/Scripts**

{{< collapse title="Show/Hide Query/Script" >}}

{{< code lang="sql" file="code/redis-1/redis-1.kql" >}} {{< /code >}}

{{< /collapse >}}

<br><br>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:: under-development
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Azure Resource Graph Query
// Find Cache for Redis instances with one or no Zones selected
resources
| where type == "microsoft.cache/redis"
| where array_length(zones) <= 1 or isnull(zones)
| project recommendationId = "redis-1", name, id, param1 = "AvailabilityZones: Single Zone"
| order by id asc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# under-development

0 comments on commit 5136015

Please sign in to comment.