• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Removing Cache Server(s) in EKS at Runtime

In case you need to remove a cache server from the cache cluster at runtime, you can do so by using NCache management tools and NCache deployment in EKS cluster.

Important

Stop cache on the node(s) that needs to be removed. You can stop cache on any node through NCache Web Manager or NCache PowerShell Tool.

There are two ways through which you can remove cache servers at runtime. They are:

Removing cache server(s) from NCache cluster

Cache servers can be removed from an NCache cluster through the following ways:

  1. Follow these steps to remove cache servers through NCache Web Manager.

    • Access NCache Web Manager from the ingress URL as shown before.
    • Go to Remove Server Nodes through Web Manager and follow the steps mentioned there to remove cache servers from the cluster.
  2. To remove cache servers through PowerShell, follow the steps mentioned in Remove Server Nodes through PowerShell.

Removing cache server(s) from deployment

After you have removed the required node(s) from the cluster, you need to decrease the replica count in the NCache deployment pod so that the changes made are in sync with each other.

Follow these steps to decrease replica count in the deployment file.

  • Manual Deployment
  • Operator Deployment
  1. Execute this command in the command line interface to decrease the number of replicas in the deployment.

    kubectl scale --replicas=number_of_remaining_server_nodes deployment ncachedeployment.yaml
    
  2. The number of replicas can also be decreased from the created YAML file ncachedeployment.yaml.

    • Open ncachedeployment.yaml and update replicas count under the spec tag according to your requirement.
    • After the YAML file has been modified, run the following command in command line tool to apply the changes made to the deployment.
      batchfile kubectl apply -f [dir]/ncachedeployment.yaml
  1. Execute the following command on cloud shell to decrease the number of cache replicas in your deployment.

    kubectl scale --clusterSize=number_of_remaining_servers ncache/ncache
    
  2. Replica count can also be decreased manually by modifying ncache_custom_resource.yaml file.
    • Access ncache_custom_resource.yaml file by executing the following command: bathcfile kubectl edit ncache ncache
    • Modify clusterSize under the spec tag according to your requirement.

After removing the required cache servers from the cluster, you can verify these changes from the NCache Web Manager. You can also monitor the cluster and checks its stats. See Monitor NCache Cluster and Clients for more details.

See Also

Create Cache Cluster in EKS
Monitor NCache Cluster and Clients in EKS
Adding Cache Servers in EKS at Runtime

Back to top Copyright © 2017 Alachisoft