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.
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
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.
Enable-NCacheSecurity -Server 20.200.20.39 -AdminCredentials(Get-Credential john_smith)
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