• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Suspend/Resume Data Persistence

A Distributed Cache with Persistence allows data to be stored persistently, and NCache provides Command Line Tools to Suspend or Resume persisting data to your persistence store when using such a store type. These cmdlets allow you to stop writing data to the backend store while you are performing actions on the backend store, for example taking a backup or moving the store to a new location. However, there are some precautions you should consider.

  • Firstly, you should only use these cmdlets when the volume of traffic is low on your cache. As, when you suspend data persistence on the persistence store, the cache remains functional. During this time, operations can still be performed on the cache in memory. This means that all pending operations on the persistence store will be placed in the persistence queue. Now, if the volume of operations is high on the cache, the persistence queue will fill up quickly. This will cause memory issues, which in turn will hamper the overall performance of your cache.

  • Secondly, you need to ensure that while your data persistence to the persistence store has been suspended, no configuration change takes place (node add/remove/join/leave) that might trigger state transfer on the cache. This will cause some complications.

  • Thirdly, you need to ensure that the persistence store is running on at least one node before you suspend and later on resume data persistence.

You can suspend and resume persisting data to your persistence store through the following PowerShell cmdlets:

Suspend NCache Data Persistence

The Suspend NCache Data Persistence cmdlet suspends or halts the action of data being sent or persisted on the persistence store. As stated above, you should use this cmdlet whenever you want to make a backup & restore of your persistence store.

The following command suspends data persistence on the persistence store for the cache demoCache.

  • Windows
  • Linux
Suspend-NCacheDataPersistence -CacheName demoCache
suspend-ncachedatapersistence -cachename demoCache

Resume NCache Data Persistence

The Resume NCache Data Persistence cmdlet resumes or restarts the action of data being sent or persisted on the persistence store. You should use this cmdlet when you want to restart or resume persisting data on your persistence store.

The following command resumes data persistence on the persistence store for the cache demoCache.

  • Windows
  • Linux
Resume-NCacheDataPersistence -CacheName demoCache
resume-ncachedatapersistence -cachename demoCache

See Also

Create Distributed Cache with Persistence
Distributed Cache with Persistence Settings

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • 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 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top