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 toPremium
orStandard
. - Set the
properties.sku.family
property toP
orC
. - Set the
properties.sku.capacity
property to a capacity valid for the SKU1
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 toPremium
orStandard
. - Set the
properties.sku.family
property toP
orC
. - Set the
properties.sku.capacity
property to a capacity valid for the SKU1
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:
To use the latest version:
Links#
- PE:03 Selecting services
- Choosing the right tier
- Scaling and memory
- Memory management
- SKU sizes
- Azure deployment reference