• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Auto Start Cache on Boot

Note

This feature is only available in NCache Enterprise Edition and Professional Edition .

NCache provides the ease of automatically starting specified cache(s) on system startup.

By default, Auto-start cache option is off. You can enable/disable this option through the following ways:

Using NCache Web Manager

  • Launch NCache Web Manager 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 Web

  • This opens up a new page containing the detailed configurations of the cache. In the Overview page click on the Edit Overview Web 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 for enabling auto-startup option.

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

Whenever NCache service will be restarted, all caches which are set to auto start will automatically start after specified delay time interval.

Manually Editing NCache Configuration

Important

Make sure the cache is stopped before making any configuration changes.

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

Repeat this step for all server nodes.

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

Add Security Against Cache Auto Start

To add security against the cache auto start at service startup, run the following command in PowerShell. This command adds a new user david_watson to the admin list on node 20.200.20.11 which has administrator john_smith.

Add-NodeSecurity -AddUser -AdminUserID john_smith -AdminPassword mypassword -NewUser david_watson -NewUserPassword userpassword -NewUserDN "CN=David Watson,OU=admin,DC=yourdomain,DC=org" -DomainController yourdomain.org -DomainControllerPort 389 -NodeName 20.200.20.11 -WriteToServiceConfig
Note

For secured caches, you need to write the user credentials in Cache Server config file Alachisoft.NCache.Service.exe.config file (Alachisoft.NCache.Daemon.dll.config for .NET Core Linux installation) using the Add-NodeSecurity 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 Add-NodeSecurity 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

Back to top Copyright © 2017 Alachisoft