Configuring the interfaces file on the client side

Client connections can be either high availability connections or non-high-availability connections. In either case, client connections require:


non-high-availability connections

non-high-availability connections do not include neither the hafailover entry in the interfaces file nor the CS_HAFAILOVER property set in the client connection. When non-high-availability connections are lost, clients must reconnect to the Adaptive Server after failure. To reestablish the connections, clients must retry enough times, or wait long enough between retries, until fail over 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

High-availability connections

High availability 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 fail over. That is, they must set the same server name as the hafailover server in the interfaces file because the same Adaptive Server is restarted 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 A, “Open Client Functionality in a Failover Configuration.”