Add hafailover line to interfaces file

Clients with the failover property automatically reconnect to the secondary companion when the primary companion crashes or when you issue shutdown or shutdown with nowait, triggering failover. To give a client the failover property, you must add a line labeled “hafailover” to the interfaces file to provide the information necessary for the client to connect to the secondary companion. You can add this line using a file editor.

The following interfaces file entry is for an asymmetric configuration between the primary companion “PERSONNEL1” and its secondary companion “MONEY1.” It includes an hafailover entry that enables clients connected to” PERSONNEL1” to reconnect to “MONEY1” during failover:

PERSONNEL1
   master tcp ether huey 5000
   query tcp ether huey 5000
   hafailover MONEY1

NoteClient applications must resend any queries that were interrupted by failover. Other information specific to the connection, such as cursor declarations, will also need to be restored.