Configure Bridge Settings
The NCache Management Center provides the ability to change the configuration of Bridges like queue settings or the Bridge connection. To change the configuration of a Bridge for WAN Replication, follow the steps below.
Important
Please ensure your bridge is stopped.
Using the NCache Management Center
Every Bridge cache opens a unique port for communication with other Bridge nodes.
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 Bridge. It will open up a list of pre-existing Bridges. From the list, select the Bridge Name and go to View Details.
- A detailed view of the Bridge settings will open up. From the opened list, configure the Bridge Port settings under the Bridge Identification settings.
- Once the changes are made, click on Save Changes present at the bottom of the page.
Configuring Bridge Queue Settings
NCache provides the optimized queue to eliminate the redundant operation replication to the Bridge and other caches.
- On the Bridge settings page, you can increase or decrease the Queue Size and also enable Queue Optimization
- Once the changes are made, click on Save Changes.
Configuring Bulk Size for Operation Replication
Replication can be controlled or throttled according to the underlying network performance to boost the Bridge replication performance.
- On the Bridge settings page, you can increase or decrease the Bulk Operation Size or Connection Retry Interval under the Bulk Operations and Retry Interval section.
- Once the changes are made, click on Save Changes.
Performance Counters
NCache provides and publishes multiple Performance Counters for Bridge caches. You can enable or disable the Performance Counters according to your requirements.
Note
This is for Windows environment only.
- You can choose to select the Enable Performance Counters checkbox (under the Performance Counters) or not on the Bridge details page.
- Once the changes are made, click on Save Changes.
Cache Service Settings for Bridge
You can configure Bridge settings for WAN Replication from the NCache Service configuration files. You will find these files in the following locations:
- .NET: Alachisoft.NCache.Service.exe.config located in
%NCHOME%\bin\service
. - .NET Core: Alachisoft.NCache.Service.dll.config located in
%NCHOME%\bin\service
. - Linux: Alachisoft.NCache.Daemon.dll.config located in
/opt/ncache/bin/service
.
Following are the settings that can be configured:
Operation Failure Retries: Operation Failure Retries is the number of operation retries from the cache to the Bridge in case of operation failure. Its default value is 3. You can change this number of retries as per your requirement, by editing the value of the following tag in the Service configuration file:
<add key="NCacheServer.BridgeOperationFailureRetries" value="3"/>
Replication Interval: Replication Interval is the intermediate delay interval in milliseconds between two consecutive replications. Its default value is set at 3000 milliseconds (3 seconds). You can change this interval as per your requirement by adjusting the value of the following tag in the Service configuration file:
<add key="NCacheServer.BridgeReplicationInterval" value="3000"/>
Bulk Threshold Size: The cache sends operations to the Bridge in the bulk of the provided threshold size. The default size is 500 KB. You can configure this size by changing the value of the following tag:
<add key="NCacheServer.BridgeBulkOperationSize" value="500"/>
Note
After making changes to the NCache Service config, restart the NCache Service.
You can further configure your Bridge for WAN Replication through the Bridge Server Service config file.
See Also
Create Bridge
Configure Conflict Resolver
Change Cache Synchronization Modes
Remove Cache from Bridge