Try Playground
Show / Hide Table of Contents

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

Follow the steps provided below to remove cache servers in your Azure Kubernetes cluster at runtime.

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.

Removing cache server(s) from NCache cluster in Azure AKS

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 [gatewayIPAddress]:8251
    • 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 the following command in the Azure Cloud Shell to decrease the number of replicas in the deployment.
kubectl scale --replicas=number_of_remaining_server_nodes deployment/ncache
  1. You can also decrease the number of replicas from the created YAML file ncache.yaml.
    • Open ncache.yaml in a Notepad and update replicas count under the spec tag 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
  1. Execute the following command on the Azure Cloud Shell to decrease the number of cache replicas in your deployment.
kubectl scale --clusterSize=number_of_remaining_servers ncache/ncache
  1. 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:
kubectl edit ncache ncache
  • Modify clusterSize under the spec tag according to your requirement.

After required cache servers have been removed from the cache cluster, you can view these changes from the NCache Management Center. You can also monitor the cluster and checks its stats. See Monitor NCache Cluster and Clients

See Also

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

In This Article
  • Removing cache server(s) from NCache cluster in Azure AKS
  • 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