Client Node level Configurations
Mentioned below are the cache level configurations available in client.ncconf.
<configuration> <ncache-server connection-retries="5" retry-connection-delay="0" retry-interval="1" client-request-timeout="90" connection-timeout="5" port="9800" local-server-ip="18.104.22.168"/> </configuration>
Following topics cover the detailed explanation of the configuration tags present in client.ncconf.
Client Request TimeOut
client-request-timeout is the time interval for which client API waits for a server response for a command. After this time runs out, an "OperationFailedException" is thrown. The value of this request timeout is 90 seconds by default. This time period is configurable where the minimum value should not be lower than 60 seconds. Time span specified less than the minimum value will automatically be reset to minimum value i.e. 60 seconds.
connection-retries are the number of retries a client makes on the entire list of servers specified in the client.ncconf at the time of connection establishment. The number of connection retries is the same for connection break scenario.
The client tries to reconnect with a server if the connection between them breaks down. The
retry-interval flag is the delay between each retry. This flag is specified in seconds.
connection-timeout is the time for threads to wait before throwing
OperationFailedException during connection-break while a thread tries to reconnect to the cache server. If the connection is established without any errors then, all the remaining threads will complete their respective operations. Otherwise, they will throw
Retry Connection Delay
retry-connection-delay is the time interval specified for a client API to wait before initializing another iteration of
connection-retries. This connection delay is specified in seconds.
Local Server IP
local-server-ip specifies the ip address of your local server machine.
port is the TCP port on which the client sends the connection request to the cache server.