Skip to content

Use at least Standard C1 cache instances#

Performance Efficiency · Azure Cache for Redis · Rule · 2020_12 · Important

Use Azure Cache for Redis instances of at least Standard C1.

Description#

Azure Cache for Redis supports a range of different scale options. Basic tier or Standard C0 caches are not suitable for production workloads.

  • Basic tier is a single node system with no data replication and no SLA.
  • Standard C0 caches used shared resources and subject to noisy neighbor issues.

Recommendation#

Consider using a minimum of a Standard C1 instance for production workloads.

Examples#

Configure with Azure template#

To deploy caches that pass this rule:

  • Set the properties.sku.name property to Premium or Standard.
  • Set the properties.sku.family property to P or C.
  • Set the properties.sku.capacity property to a capacity valid for the SKU 1 or higher.

For example:

Azure Template snippet
{
  "type": "Microsoft.Cache/redis",
  "apiVersion": "2024-03-01",
  "name": "[parameters('name')]",
  "location": "[parameters('location')]",
  "properties": {
    "redisVersion": "6",
    "sku": {
      "name": "Premium",
      "family": "P",
      "capacity": 1
    },
    "redisConfiguration": {
      "aad-enabled": "True",
      "maxmemory-reserved": "615"
    },
    "enableNonSslPort": false,
    "publicNetworkAccess": "Disabled"
  },
  "zones": [
    "1",
    "2",
    "3"
  ]
}

Configure with Bicep#

To deploy caches that pass this rule:

  • Set the properties.sku.name property to Premium or Standard.
  • Set the properties.sku.family property to P or C.
  • Set the properties.sku.capacity property to a capacity valid for the SKU 1 or higher.

For example:

Azure Bicep snippet
resource cache 'Microsoft.Cache/redis@2024-03-01' = {
  name: name
  location: location
  properties: {
    redisVersion: '6'
    sku: {
      name: 'Premium'
      family: 'P'
      capacity: 1
    }
    redisConfiguration: {
      'aad-enabled': 'True'
      'maxmemory-reserved': '615'
    }
    enableNonSslPort: false
    publicNetworkAccess: 'Disabled'
  }
  zones: [
    '1'
    '2'
    '3'
  ]
}

Configure with Azure Verified Modules

A pre-validated module supported by Microsoft is available from the Azure Bicep public registry. To reference the module, please use the following syntax:

br/public:avm/res/cache/redis:<version>

To use the latest version:

br/public:avm/res/cache/redis:0.7.2

Comments