Try Playground
Show / Hide Table of Contents

Auto Start Cache on Boot

NCache provides the ease of automatically starting specified cache(s) on system startup. By default, the auto-start cache option is off. You can enable/disable this option in the ways defined below.

Note

This feature is also available in NCache Professional.

Using the NCache Management Center

  • Launch the NCache Management Center by browsing to http://localhost:8251 or <server-ip>:8251 on Windows and Linux.

  • In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to configure.

  • Against the cache name, click on View Details.

View Details Heartbeat

  • This opens a new page containing the detailed configurations of the cache. In the Overview page click on the Edit Overview button.

  • Check the Auto Start Cache on Service Startup checkbox.

Edit Auto start cache on boot

  • Select this option for each cache you want to automatically start at NCache Service startup. This is the recommended way to enable the auto-startup option.

  • Click on Save Auto Start Cache on boot to save the cache configuration.

Whenever the NCache service restarts, all caches that are set to auto-start will automatically start after a specified delay time interval.

Manually Editing NCache Configuration

Important

Ensure the cache stops before making any configuration changes.

  • To enable cache auto start, set the auto-start tag to true within the <cache-settings> tag in config.ncconf of EACH of your cache servers:
<cache-config ...>
    <cache-settings auto-start="True" ...>
</cache-config>
Note

Repeat this step for all server nodes.

  • Once the changes are made, restart the NCache Service and cache process.

Add Security Against Cache Auto Start

To add security against the cache auto-starting at service startup, run the following command in the command line tool of your choice. This command adds a new user david_watson to the admin list on node 20.200.20.39 which has administrator john_smith.

  • Windows
  • Linux
Enable-NCacheSecurity -Server 20.200.20.39 -AdminCredentials(Get-Credential john_smith)
enable-ncachesecurity -server 20.200.20.39 -adminuserid john_smith -adminpassword pass12345
Note

For secured caches, you need to write the user credentials in the Cache Server config file Alachisoft.NCache.Service.exe.config file (Alachisoft.NCache.Daemon.dll.config for .NET Core Linux installation) using the Enable NCache Security tool cmdlet. This is to ensure that the credentials are fetched from the file automatically during cache startup, without any user intervention to login.

Refer to Enable NCache Security to understand more about adding security against a node.

See Also

Heartbeat
Bind Cluster and Client/Server IP with Multiple NICs
Communication Reliability
Nagle's Algorithm

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