Apply 5 second backoff when loading global config up on start
It doesn't make much sense to hammer DCS when we just starting up.
Fixes
@@ -50,6 +50,7 @@ class Patroni(object):
break
except DCSError:
logger.warning('Can not get cluster from dcs')
+ time.sleep(5)
def get_tags(self):
return {tag: value for tag, value in self.config.get('tags', {}).items()
