Auto Start Cache on Boot
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>: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 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, 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 126.96.36.199 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 188.8.131.52 -WriteToServiceConfig
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.
Bind Cluster and Client/Server IP with Multiple NICs