Configuring the interfaces file on the client side

Client connections can be either HA connections or non-HA connections. Regardless, client connections require that:

NoteThe version of ctlib that is shipped with Adaptive Server version 12.5.0.3 or later contains a corrected implementation of the retry and timeout features. Re-link your applications to take advantage of the retry and timeout features.


Non-HA connections

Non-HA connections are regular connections that do not include either the hafailover entry in the interfaces file or the CS_HAFAILOVER property set in the client connection. When these connections are lost, clients must be able to reconnect to the Adaptive Server after failure. To re-establish the connections, clients must retry enough times, or wait long enough between retries, until failover completes and Adaptive Server is running on the secondary node.

To reconnect to the server, clients can use the retry and timeout options in the interfaces file or the corresponding connection properties. In the following interfaces file example, the retry count is 10 and the timeout delay between each retry is 20 seconds:

MONEY    10    20
    master tcp ether loghost 4010
    query tcp ether loghost 4010

HA connections

HA connections are made with:

In an active-passive configuration, clients must self-reference the hafailover entry because they reconnect to the same Adaptive Server after failover. That is, they must set the same server name as the hafailover server in the interfaces file because the same Adaptive Server is rebooted on the secondary node.

For example, the Adaptive Server entry in the example above can be self- referenced as:

MONEY    10    20
    master tli tcp loghost 4010
    query tli tcp loghost 4010
    hafailover MONEY

For more information about configuring client connections with the failover property, see Appendix C, “Open Client Functionality in a Failover Configuration.”.