Azure Service Fabric - Adding Cache Servers
As NCache is extremely fast and linearly scalable you can always scale your cache cluster by adding new cache servers to it. In Azure Service Fabric, you can scale your cluster using the Service Fabric explorer as well as Windows PowerShell.
Using Azure Service Fabric Explorer
From the Service Fabric explorer, go to the NCache Discovery Service from the services section.
Click on the Actions button from the top left of the discovery service page and click on Scale Cluster.
Enter the total number of services required (after adding the new services). For example if you want to scale your cluster from 5 nodes to 6, then enter 6 as the number of services.
Using Windows PowerShell
Make sure that you have installed Azure PowerShell.
Open your PowerShell window and run the following command. Make sure that the instance count is the total number of nodes in your Service Fabric cluster.
Update-ServiceFabricService -Stateless -ServiceName NCacheDiscoveryService -InstanceCount 6
Add Server Nodes to the Cache
Scaling your Azure Service Fabric cluster however, does not add cache servers automatically. In order to add server nodes to the cache cluster:
Go to the NCache Management Center by following the clustered DNS along with the port 8251.
Select the cache and follow the steps in Add Server Nodes to add server nodes to the cache.
Tip
In order to get the IP address of the newly added service, go to the Azure Service Fabric explorer and access the NCache discovery file. It contains the IP addresses of all the server nodes.
- Verify the successful addition of server nodes using NCache Management Center or NCache Monitor.
See Also
Create Service Fabric Cluster
Create NCache Cluster service
Monitor NCache Cluster and Clients
Removing Cache Servers at Runtime