Connecting to a Server through Multiple Properties File
To set up connection to multiple servers, user needs to configure multiple properties files in addition to the global properties file. These properties files are referred to as the local properties files i.e. local to a server.
How it Works
The following steps describe what happens when the client attempts to connect to the server for the first time.
The client creates a session. To create a session, If the client wants to use a server other than the one mentioned in global properties file, the client must enter the path of the local properties file to be considered.
The client requests a connection from the load balancer. Since this is the first connection request, the load balancer creates a connection. (When the client makes future requests, the load balancer searches the connection pool for existing connections before creating a new one.)
The client waits for a server response for the duration specified in Connection_Timeout. If the server does not respond within the timeout period, or refuses the connection, the connection fails and the client ignores the server for the duration specified in Connection_Retry_Interval. If the server responds in time, the connection is successful.
The client obtains the connection.
The client uses the connection to send a request to the server.
The server sends the response.
The client receives the response. If persistent connections are enabled, then the load balancer keeps the connection in the pool; otherwise, it closes the connection.
The client requests another connection. If persistent connections are enabled, the load balancer searches the connection pool for an existing connection.
Related Parameters
The connection to an individual server uses the following parameters in the properties file:
NAE_IP
NAE_Port
KMIP_IP
Protocol
Connection_Timeout
Connection_Retry_Interval
Refer to Network Configuration Parameters and Connection Configuration Parameters to know more about the network and connection configuration related properties.
Note
All SSL related parameters are set from the local properties file. In case of SSL, there is no fallback mechanism for CA_File
, Cert_File
, Key_File
, Passphrase
, and Passphrase_Encrypted
parameters. The Microsoft_Cert_Store
or EToken
is not supported by local properties file.