Adding Cache Server(s) in EKS at Runtime
NCache allows you to add cache servers at runtime in your Elastic Kubernetes Cluster for scalability. You can add more servers either through NCache management tools or NCache deployment inside the EKS cluster.
Adding cache server(s) to deployment
First step of adding cache servers is to update the replica count in the deployment. This can be done through the following ways:
Execute the following command in AWS command line interface to increase the number of cache replicas in your deployment.
kubectl scale --replicas=number_of_total_pods deployment ncachedeployment.yaml
You can also increase replica count manually by modifying ncachedeployment.yaml file. Do the following:
Open ncachedeployment.yaml file and update
replicasnumber under the
spectag according to your requirement.
After the YAML file has been modified, run the following command in AWS command line tool to apply the changes made to the deployment.
kubectl apply -f [dir]/ncachedeployment.yaml
Adding cache server(s) to NCache cluster
You can add cache servers to your NCache cluster through the following ways:
Follow the provided steps to add cache servers through NCache Web Manager.
- Access NCache Web Manager as showed earlier.
- Follow the steps in Add Server Nodes once you have successfully accessed the manager.
To add cache servers through NCache PowerShell tool, follow the steps provided in Adding Cache Servers through PowerShell.
After you have added the required server nodes to the cache cluster, you can view these changes from the NCache Web Manager. You can also monitor the cluster and check its stats. See Monitor NCache Cluster and Clients for more details.