Configure Bridge Settings - Geo Replication
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 Geo Replication, follow the steps below.
Configuring Bridge Queue Settings for Geo Replication
Bridge stores the received data/objects in cache queues. You can modify (increase or decrease) these queues’ size.
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, increase or decrease the Queue Size.
- Once the changes are made, click on Save Changes.
Configuring Bridge Connection Settings for Geo Replication
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.
Enable Queue Optimization
NCache provides the optimized queue to eliminate the redundant operation replication to the Bridge and other caches.
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.
- From the detailed view, select the Enable Queue Optimization checkbox under the Bridge Queue section.
- Once the changes are made, click on Save Changes.
Configuring Bulk Size for Operation Replications
Replication can be controlled or throttled according to the underlying network performance to boost the Bridge replication performance.
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.
- 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
Note
This is for Windows environment only.
NCache provides and publishes multiple Performance Counters for Bridge caches. You can enable or disable the Performance Counters according to your requirements.
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.
- You can choose to select the Enable performance counters checkbox (under the Performance Counters) or not on the 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