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

Auto Start Cache on Boot

Auto Start Cache on Boot is an NCache reliability feature that automatically initializes the specified clusters or local caches each time the NCache Service (Windows Service or Linux Daemon) is started. This saves efforts of manually checking the clusters. This option is set to false by default and allows the manual check of the clusters. You can enable/disable this option in the ways defined below.

Important

Enabling NCache security disables Auto Start for all caches on the server. To auto-start secured caches, enable Auto Start again and provide valid credentials.

Using the NCache Management Center

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

  • 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

Note

If you are logged in to the NCache Management Center and enable Auto Start Cache on Service Startup, the logged-in credentials are saved to the NCache service configuration. These credentials are used to start secured caches automatically when the NCache Service starts.

  • 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.

Using PowerShell

You can enable or disable Auto Start for one or more caches using PowerShell. For secured caches, you can also provide credentials, which are stored in encrypted form in the NCache service configuration and used when the cache starts automatically with the NCache Service.

Enable Auto-Start

The following commands enable auto-start on the specified cache(s).

  • This command enables Auto Start for the cache named demoCache on the local server. The cache starts automatically whenever the machine hosting the NCache Service is started.
Enable-AutoStartCache -CacheName demoCache
  • This command enables Auto Start for demoCache and ClusteredCache by specifying both cache names as a comma-separated value.
Enable-AutoStartCache -CacheName "ClusteredCache,demoCache"
  • This command enables auto-start for the cache named demoCache on the remote server 20.200.20.11 using the specified credentials for authentication. It stores the provided credentials in an encrypted form within the service configuration. These stored credentials will be used to facilitate the auto-startup of configured caches with the associated credentials.
Enable-AutoStartCache -CacheName demoCache -Server 20.200.20.11 -Credentials (Get-Credential john_smith)

Disable Auto-Start

The following commands disable auto-start on the specified cache(s).

  • This command disables auto-start for the cache named demoCache on the local server. The cache will no longer auto-start when the machine hosting the cache service is started.
Disable-AutoStartCache -CacheName demoCache
  • This command disables Auto Start for demoCache and ClusteredCache by specifying both cache names as a comma-separated value.
Disable-AutoStartCache -CacheName "ClusteredCache,demoCache"
  • This command disables auto-start startup for the cache named demoCache on the remote server 20.200.20.11 using the specified credentials for auto-start.
Disable-AutoStartCache -CacheName demoCache -Server 20.200.20.11 -Credentials (Get-Credential john_smith)

Manually Editing NCache Configuration

You can manually edit the NCache configuration file as explained below:

Important

Ensure that the cache is stopped 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.

See Also

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

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • 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