Removing Cache Servers
You can also remove cache servers from the cache as well as the Service Fabric cluster. In order to do that remove the cache servers from the cache first and then from the Service Fabric cluster.
Remove Server Nodes from the Cache
Go to the NCache web manager by following the clustered DNS followed by the port 8251.
Remove the cache server nodes by following the steps in Remove Server Nodes.
On successful removal, please verify through NCache Web Manager and monitor.
After removing from the cache cluster, remove the nodes from the Service Fabric cluster using either the Solution explorer or Windows PowerShell.
Remove from Service Fabric Cluster using Explorer
Access the Service Fabric Explorer and from the Services section, go to NCache Discovery Service.
Click on Actions from the top right corner of the page and select Scale Cluster.
Enter the total number of nodes to which the server nodes need to be reduced. For example if you want to reduce from 5 server nodes to 3, enter the server node number to be 3.
Remove Using Windows PowerShell
Make sure you have Azure PowerShell installed on your machine.
Run the following command in Windows PowerShell with the instance count as the total number of services after reducing the count.
Update-ServiceFabricService -Stateless -ServiceName NCacheDiscoveryService -InstanceCount 2
See Also
Create Service Fabric Cluster
Create NCache Cluster service
Monitor NCache Cluster and Clients
Adding Cache Servers at Runtime