fabric8io / fabric8

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
http://fabric8.io/
1.76k stars 504 forks source link

Increasing failover backoff time in example-mq-consumer causes confusion (1.x) #1215

Open geertschuring opened 10 years ago

geertschuring commented 10 years ago

The failover connection config uses increasing back-off time, which results in long waiting times when a broker comes back online after a while. If for instance a broker has been down for 30 minutes, the clients have increased their reconnect period to 5 minutes, which means that after the broker comes back online, the clients don't reconnect in seconds, but wait several minutes before trying to reconnect, increasing the total downtime from 30 to 35 minutes.

davsclaus commented 10 years ago

Just to be sure you are using the 6.1 GA release right?

davsclaus commented 10 years ago

And what is the problem for you? If you use backoff then that will over time increase the timeout value. Isn't there a max option so you can limit the backoff to at most 60 seconds etc. We do have such option in Camel. And I think maybe there is one in ActiveMQ JMS too?

geertschuring commented 10 years ago

Sorry, my description could have been more clear.

I'm using Fuse 6.1 GA and the MQ examples that come with it. I've created a 3 broker replicated cluster, and use the example-producer and example-consumer profiles to demonstrate the behaviour of the replicated brokers to our client. I've deployed the mq-client profile that's generated after I created the profile for the replicated brokers.

The example consumer and producer take a long time to reconnect if the broker has been offline for a couple of minutes, which makes it a confusing example because for several minutes it appears to be broken. The brokers are back online, but the producer and consumer don't work for a while.

geertschuring commented 10 years ago

I've changed the title of this issue to better reflect the situation.

paphillon commented 10 years ago

Hi Claus, You mentioned about the Max backoff period, can you provide some documentation link as to where and how this can be set in Camel and ActiveMQ clients?