Bridge Server Settings
This section explains various Bridge server configurations needed to configure Bridge for WAN replication. The Bridge Service file hosts all Bridge related configurations. For any change in the Bridge configuration, you can manually edit this file:
- .NET: Alachisoft.NCache.BridgeService.exe.config placed at
%NCHOME%\bin\service
. - .NET Core Windows: Alachisoft.NCache.BridgeService.dll.config placed at
%NCHOME%\bin\service
. - .NET Linux: Alachisoft.NCache.BridgeDaemon.dll.config placed at
/opt/ncache/bin/service
.
This Bridge Service config file consists of the following configurable tags:
Bridge Server: Bind to Multiple NICs
To specify the IP Address of the client to bind with the Bridge server, see the tag below:
<add key="NBridgeServer.BindToIP" value="20.200.20.40"/>`
Configure Server Ports
You can configure the NCache server ports as follows:
Client/Server TCP Port
The Client/Server TCP Port in the Bridge Service file specifies the port on which the Bridge Service will listen for incoming connection requests.
<add key="NBridgeServer.Port" value="9900"/>`
Management Port
The Management Port in the Bridge Service config specifies the port on which the Bridge Management Server listens for incoming connection requests.
<add key="NBridgeServer.ManagementPort" value="8260"/>`
Configure Memory Settings
You can configure the NCache memory settings as follows:
Buffer Size
The Buffer Size of the client socket can be specified in the Bridge Service config. The SendBufferSize
specifies the send buffer size of the connected client socket in bytes.
<add key="NBridgeServer.SendBufferSize" value="131072"/>
The ReceiveBufferSize
specifies the receive buffer size of the connected client socket in bytes.
<add key="NBridgeServer.ReceiveBufferSize" value="131072"/>
Configure Windows Event Logging
In case the size of the Bridge is reached, a warning message is logged into the system event log. The BridgeSizeThreshold
specifies the minimum threashold size of the Bridge queue in MBs to continue receving operations from the Bridge cache if Bridge queue gets full and replication from caches are stopped.
<add key="NBridgeServer.BridgeSizeThreshold" value="20"/>
You can comment this tag if you do not want to log any warning messages.
State Transfer Timeout
The user can configure the Bridge cache State Transfer Timeout interval through the following tag:
<add key="NBridgeServer.BridgeCacheStateTransferTimeout" value="20"/>
This tag defines the timeout interval (in seconds) to reset the Bridge during a State Transfer, in case the previous transfer could not be completed due to the unavailability of the source cache. The default value is 20 seconds, with a minimum of 3 seconds and a maximum of 60 seconds.
Note
Restart the Bridge Service after making any changes to the Bridge Service file.
See Also
Cache Server Settings
Cache Client Settings
Client Cache Settings