Auto Start Cache on Boot
NCache provides the ease of automatically starting specified cache(s) on system startup.
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-CacheSecurity tool cmdlet. This is to ensure that the credentials are fetched from the file automatically during cache startup, without any user intervention to login.
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 (Windows) or
<server-ip>:8251(Windows + 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.
This opens up a new page containing the detailed configurations of the cache. In the Overview page click on the button.
Check the Auto Start Cache on Service Startup checkbox.
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 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
Make sure the cache is stopped before making any configuration changes.
- To enable auto start of cache, set the
auto-starttag to true within the
<cache-settings>tag in config.ncconf of EACH your cache server:
<cache-config ...> <cache-settings auto-start="True" ...> </cache-config>
Repeat this step for all server nodes.
- Once changes are made, start the cache and restart NCache service.