title | description | services | documentationcenter | author | manager | editor | ms.assetid | ms.service | ms.devlang | ms.topic | ms.tgt_pltfrm | ms.workload | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
How to administer Azure Cache for Redis | Microsoft Docs |
Learn how to perform administration tasks such as reboot and schedule updates for Azure Cache for Redis |
azure-cache-for-redis |
na |
wesmc7777 |
cfowler |
tysonn |
8c915ae6-5322-4046-9938-8f7832403000 |
cache |
na |
article |
azure-cache-for-redis |
tbd |
07/05/2017 |
wesmc |
This topic describes how to perform administration tasks such as rebooting and scheduling updates for your Azure Cache for Redis instances.
The Reboot blade allows you to reboot one or more nodes of your cache. This reboot capability enables you to test your application for resiliency if there is a failure of a cache node.
Select the nodes to reboot and click Reboot.
If you have a premium cache with clustering enabled, you can select which shards of the cache to reboot.
To reboot one or more nodes of your cache, select the desired nodes and click Reboot. If you have a premium cache with clustering enabled, select the desired shards to reboot and then click Reboot. After a few minutes, the selected nodes reboot, and are back online a few minutes later.
The impact on client applications varies depending on which nodes that you reboot.
- Master - When the master node is rebooted, Azure Cache for Redis fails over to the replica node and promotes it to master. During this failover, there may be a short interval in which connections may fail to the cache.
- Slave - When the slave node is rebooted, there is typically no impact to cache clients.
- Both master and slave - When both cache nodes are rebooted, all data is lost in the cache and connections to the cache fail until the primary node comes back online. If you have configured data persistence, the most recent backup is restored when the cache comes back online, but any cache writes that occurred after the most recent backup are lost.
- Nodes of a premium cache with clustering enabled - When you reboot one or more nodes of a premium cache with clustering enabled, the behavior for the selected nodes is the same as when you reboot the corresponding node or nodes of a non-clustered cache.
Important
Reboot is now available for all pricing tiers.
- Which node should I reboot to test my application?
- Can I reboot the cache to clear client connections?
- Will I lose data from my cache if I do a reboot?
- Can I reboot my cache using PowerShell, CLI, or other management tools?
- What pricing tiers can use the reboot functionality?
To test the resiliency of your application against failure of the primary node of your cache, reboot the Master node. To test the resiliency of your application against failure of the secondary node, reboot the Slave node. To test the resiliency of your application against total failure of the cache, reboot Both nodes.
Yes, if you reboot the cache all client connections are cleared. Rebooting can be useful in the case where all client connections are used up due to a logic error or a bug in the client application. Each pricing tier has different client connection limits for the various sizes, and once these limits are reached, no more client connections are accepted. Rebooting the cache provides a way to clear all client connections.
Important
If you reboot your cache to clear client connections, StackExchange.Redis automatically reconnects once the Redis node is back online. If the underlying issue is not resolved, the client connections may continue to be used up.
If you reboot both the Master and Slave nodes, all data in the cache (or in that shard if you are using a premium cache with clustering enabled) is lost. If you have configured data persistence, the most recent backup will be restored when the cache comes back online, but any cache writes that have occurred after the backup was made are lost.
If you reboot just one of the nodes, data is not typically lost, but it still may be. For example if the master node is rebooted and a cache write is in progress, the data from the cache write is lost. Another scenario for data loss would be if you reboot one node and the other node happens to go down due to a failure at the same time. For more information about possible causes for data loss, see What happened to my data in Redis?
Yes, for PowerShell instructions see To reboot an Azure Cache for Redis.
Reboot is available for all pricing tiers.
The Schedule updates blade allows you to designate a maintenance window for your Premium tier cache. When the maintenance window is specified, any Redis server updates are made during this window.
Note
The maintenance window applies only to Redis server updates, and not to any Azure updates or updates to the operating system of the VMs that host the cache.
To specify a maintenance window, check the desired days and specify the maintenance window start hour for each day, and click OK. Note that the maintenance window time is in UTC.
The default, and minimum, maintenance window for updates is five hours. This value is not configurable from the Azure portal, but you can configure it in PowerShell using the MaintenanceWindow
parameter of the New-AzureRmRedisCacheScheduleEntry cmdlet. For more information, see Can I manage scheduled updates using PowerShell, CLI, or other management tools?
- When do updates occur if I don't use the schedule updates feature?
- What type of updates are made during the scheduled maintenance window?
- Can I manage scheduled updates using PowerShell, CLI, or other management tools?
- What pricing tiers can use the schedule updates functionality?
If you don't specify a maintenance window, updates can be made at any time.
Only Redis server updates are made during the scheduled maintenance window. The maintenance window does not apply to Azure updates or updates to the VM operating system.
Yes, you can manage your scheduled updates using the following PowerShell cmdlets:
- Get-AzureRmRedisCachePatchSchedule
- New-AzureRmRedisCachePatchSchedule
- New-AzureRmRedisCacheScheduleEntry
- Remove-AzureRmRedisCachePatchSchedule
The Schedule updates feature is only available in the premium pricing tier.
- Explore more Azure Cache for Redis premium tier features.