Adding Cache Server(s) in AKS at Runtime
To add cache servers at runtime in your Azure Kubernetes cluster, you need to add nodes in NCache deployment and then manually add servers using NCache management tools.
Adding cache server(s) to deployment
You can add cache servers at runtime through the following ways.
Execute the following command on the Azure Cloud Shell to increase the number of cache replicas in your deployment.
kubectl scale --replicas=number_of_total_pods deployment/ncache
Replica count can also be increased manually by modifying ncache.yaml file.
Access ncache.yaml file in a notepad and modify the
replicasnumber under the
spectag according to your requirement.
After the YAML file has been modified, run the following command in Azure Cloud Shell to apply the changes made to the deployment.
kubectl apply -f [dir]/ncache.yaml
Adding cache server(s) to the NCache cluster
Cache servers can be added to an NCache cluster through the following ways:
Follow these steps to add cache servers through NCache Management Center.
- Access NCache Management Center from [gatewayIPAddress]:8251
- Follow the steps provided in Add Server Nodes once you have accessed the manager.
To add cache servers through PowerShell, follow the steps mentioned in Adding Cache Servers through PowerShell.
After the required cache servers have been added to the cache cluster, you can view these changes from the NCache Management Center. You can also monitor the cluster and check its stats. See Monitor NCache Cluster and Clients