The processes of redirection over HDR enviroment work this way:
- If the primary server is down, the client will lost the connection and the current transaction will abort, the program must be prepared to handle with this situation. When it try reconnect to server again will be automatic redirect to secondary server...
To work this way you must set your SQLHOSTS (server and client) some like this:
Code:
ids_master group - - c=0
ids_primary onsoctcp hostA portX
ids_secondary onsoctcp hostB portX
On client environment:
- You must set the INFORMIXSERVER = ids_master
- Set INFORMIXCONTIME and INFORMIXCONRETRY proper (this variables config the timeout and how many time try to connect).
When your client try to conect , will follow the order of the servers, if the first is off line, it just jump to next...
The parameter c=0 is not necessary because is the default option.... but i like to specify...
If you have more instances listed on the same SQLHOSTS, add the options e= or g= .