• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Removing Cache Severs in EKS at Runtime
Show / Hide Table of Contents
  • Deploying NCache in Elastic Kubernetes Service
  • Create Elastic Kubernetes Cluster
  • Deploy NCache Resources in EKS
    • Manually Deploy NCache in EKS
      • Create NCache Deployment in EKS
      • Create Discovery Service in EKS
      • Create Access for NCache Management in EKS
    • Deploy NCache in EKS Through Operator
      • Create Service Account in EKS
      • Create Role Definition in EKS
      • Create Role Binding in EKS
      • Create NCache Operator in EKS
      • Create Custom Resources in EKS
  • Create NCache Client in EKS
  • Create NCache Client Deployment in EKS
  • Create Cache Cluster in EKS
  • Monitor NCache Cluster and Clients in EKS
  • Adding Cache Servers in EKS at Runtime
  • Removing Cache Severs in EKS at Runtime

Removing Cache Server(s) in Amazon 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 Amazon EKS cluster.

Important

Stop cache on the node(s) that needs to be removed. You can stop cache on any node through NCache Management Center 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 in Amazon EKS

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

  1. Follow these steps to remove cache servers through NCache Management Center.

    • Access NCache Management Center from the ingress URL as shown before.
    • Go to Remove Server Nodes through NCache Management Center 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 Management Center. 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 Amazon EKS
Monitor NCache Cluster and Clients in Amazon EKS
Adding Cache Servers in Amazon EKS at Runtime

In This Article
  • Removing cache server(s) from NCache cluster in Amazon EKS
  • Removing cache server(s) from deployment
  • See Also

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top