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": "2023-04-01",
  "name": "[parameters('name')]",
  "location": "[parameters('location')]",
  "properties": {
    "minimumTlsVersion": "1.2",
    "redisVersion": "latest",
    "sku": {
      "name": "Premium",
      "family": "P",
      "capacity": 1
    },
    "redisConfiguration": {
      "maxmemory-reserved": "615"
    },
    "enableNonSslPort": false
  },
  "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@2023-04-01' = {
  name: name
  location: location
  properties: {
    minimumTlsVersion: '1.2'
    redisVersion: 'latest'
    sku: {
      name: 'Premium'
      family: 'P'
      capacity: 1
    }
    redisConfiguration: {
      'maxmemory-reserved': '615'
    }
    enableNonSslPort: false
  }
  zones: [
    '1'
    '2'
    '3'
  ]
}

Comments