Auto Start Cache on Boot
This feature is only available in NCache Enterprise and Professional.
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 following ways:
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251on 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.
This opens 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 to enable the auto-startup option.
Click on 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
Ensure the cache stops before making any configuration changes.
- To enable cache auto start, set the
auto-starttag 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>
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 184.108.40.206 which has administrator john_smith.
Enable-NCacheSecurity -Server 220.127.116.11 -AdminCredentials(Get-Credential john_smith)
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.