Auto Start Cache on Boot
Auto Start Cache on Boot is an NCache reliability feature that automatically initializes the specified clusters or local caches each time the NCache Service (Windows Service or Linux Daemon) is started. This saves efforts of manually checking the clusters. This option is set to false by default and allows the manual check of the clusters. You can enable/disable this option in the ways defined below.
Important
Enabling NCache security disables Auto Start for all caches on the server. To auto-start secured caches, enable Auto Start again and provide valid credentials.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251.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.

Note
If you are logged in to the NCache Management Center and enable Auto Start Cache on Service Startup, the logged-in credentials are saved to the NCache service configuration. These credentials are used to start secured caches automatically when the NCache Service starts.
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.
Using PowerShell
You can enable or disable Auto Start for one or more caches using PowerShell. For secured caches, you can also provide credentials, which are stored in encrypted form in the NCache service configuration and used when the cache starts automatically with the NCache Service.
Enable Auto-Start
The following commands enable auto-start on the specified cache(s).
- This command enables Auto Start for the cache named demoCache on the local server. The cache starts automatically whenever the machine hosting the NCache Service is started.
Enable-AutoStartCache -CacheName demoCache
- This command enables Auto Start for demoCache and ClusteredCache by specifying both cache names as a comma-separated value.
Enable-AutoStartCache -CacheName "ClusteredCache,demoCache"
- This command enables auto-start for the cache named demoCache on the remote server 20.200.20.11 using the specified credentials for authentication. It stores the provided credentials in an encrypted form within the service configuration. These stored credentials will be used to facilitate the auto-startup of configured caches with the associated credentials.
Enable-AutoStartCache -CacheName demoCache -Server 20.200.20.11 -Credentials (Get-Credential john_smith)
Disable Auto-Start
The following commands disable auto-start on the specified cache(s).
- This command disables auto-start for the cache named demoCache on the local server. The cache will no longer auto-start when the machine hosting the cache service is started.
Disable-AutoStartCache -CacheName demoCache
- This command disables Auto Start for demoCache and ClusteredCache by specifying both cache names as a comma-separated value.
Disable-AutoStartCache -CacheName "ClusteredCache,demoCache"
- This command disables auto-start startup for the cache named demoCache on the remote server 20.200.20.11 using the specified credentials for auto-start.
Disable-AutoStartCache -CacheName demoCache -Server 20.200.20.11 -Credentials (Get-Credential john_smith)
Manually Editing NCache Configuration
You can manually edit the NCache configuration file as explained below:
Important
Ensure that the cache is stopped 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>
Note
Repeat this step for all server nodes.
- Once the changes are made, restart the NCache Service and cache process.
See Also
Heartbeat
Bind Cluster and Client/Server IP with Multiple NICs
Communication Reliability
Nagle's Algorithm