soomo/soomo-mbus — pull request #11 by matthewbennink (2013-10-16 12:58:43+00:00)
Title: [IO/Config] Retry up to 3 times on init.

This gem needs some serious refactoring. But, until then, I'm hoping these few changes will help out at Core. In terms of the Redis config, it has 3 tries to get the config with a linear delay of 1 and 2 seconds before the 2nd and 3rd attempts. For the broker connection, it gets 3 tries after the first one, so one extra try. It also has a linear delay of 1, 2 and 3 seconds.

Obviously, as the apps start up, if they all started at the exact same time, then it's possible that the delays will be in sync and won't help matters. But, generally speaking, the apps tend to be staggered just a little bit, hopefully enough to avoid too much contention.