Live Upgrade NCache Version
NCache allows Live Upgrading of NCache with negligible data loss. Live Upgrade significantly reduces the delay in your services caused by a manual upgrade. Using Live Upgrade, you can replicate the data of your currently running cache to the latest NCache cache using a Bridge in between, while the caches continue to run.
The previous version cache is considered as the source cache, and the latest NCache cache is considered as the target cache.
Since the data replication is asynchronous, all clients connected to the source cache get an impression that the operations are being performed on the source cache while a complete copy is being made to the target cache seamlessly. Meanwhile, the source cache configuration remains fully functional and unaffected by the upgrade.
Steps to Live Upgrade NCache Your NCache Version
In order to upgrade your cache:
Create a target cache with the same name and configuration as of the source cache. Please refer to the Creating Caches section for step-by-step illustration of the process.
From the NCache Management Center, click on the Bridges icon from the top left. It opens the Bridges page. Click on the New button to create a new Bridge. The rest of the process for creating a Bridge is the same as explained in Creating Clustered Bridge for WAN Replication.
To this Bridge, you need to add running source cache as an active cache. Note that only one cache should be added.
On the Bridge node, manually add target cache in bridge.ncconf under the
<bridge-config>...<cache>
tags as shown:
<configuration>
<bridge-config … >
<cache cache-id="demoCache.WestCoast" status="active" servers-list="20.200.20.38" bulk-operation-size="500" enable-compression="False" connection-retry-interval="3" heart-beat-enabled="True" replicator-virtual-queue-size="2048MB" is-connected="True" is-master="False"/>
<cache cache-id="demoCache.EastCoast" status="active" servers-list="20.200.20.39" bulk-operation-size="500" enable-compression="False" connection-retry-interval="3" heart-beat-enabled="True" replicator-virtual-queue-size="2048MB" is-connected="True" is-master="False"/>
</bridge-config>
</configuration>
Restart the Bridge service after modifying the bridge.ncconf.
Start the Bridge using the Start-Bridge PowerShell cmdlet.
Important
Make sure the source and target caches are in a running state before proceeding with this step.
- Initiate state transfer using the Start-BridgeStateTransfer by providing source cache and target cache as parameters.
Start-BridgeStateTransfer -Name demoBridge -Server 20.200.20.39 -SourceCache demoCache.WestCoast -TargetCache demoCache.EastCoast
You can monitor the Performance Counters for state transfer.
When the state transfer counter is no longer published, it marks the end of the whole process and any connected clients should be stopped otherwise replication is continued.
In client.ncconf of each client node, change the IP address of the source cache server(s) to the IP addresses of the target cache server(s).
Start the clients. By doing so, you are effectively rerouting your clients to the target cache. All future operations by the clients will now be performed on the latest NCache version.
Warning
There might still be negligible pending activity of the source cache taking place which was requested during the state transfer, like fetch operations. It is advisable to let these remaining operations replicate to the target cache completely so that data loss is avoided.
- Check the counters for the Bridge. Once the Bridge has no data left in the queue or when the operations have been fully replicated, it is safe to:
You have seamlessly live upgraded to the latest NCache version without stopping the cache.
See Also
Upgrade NCache Version Offline
Apply Windows Patches on NCache Server
Monitor Caches
Configure Security`