Menu Search

12.7. Client failover configuration

The details about format of Qpid connection URLs can be found at section Connection URLs of book Programming In Apache Qpid.

The failover policy option in the connection URL for the HA Cluster should be set to roundrobin. The Master broker should be put into a first place in brokerlist URL option. The recommended value for connectdelay option in broker URL should be set to the value greater than 1000 milliseconds. If it is desired that clients re-connect automatically after a master to replica failure, cyclecount should be tuned so that the retry period is longer than the expected length of time to perform the failover.

Example 12.2. Example of connection URL for the HA Cluster

amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672?connectdelay='2000'&retries='3';tcp://localhost:5671?connectdelay='2000'&retries='3';tcp://localhost:5673?connectdelay='2000'&retries='3''&failover='roundrobin?cyclecount='30''