Apply 5 second backoff when loading global config up on start (#922)

It doesn't make much sense to hammer DCS when we just starting up.
Fixes https://github.com/zalando/patroni/issues/919
This commit is contained in:
Alexander Kukushkin
2019-01-14 14:55:56 +01:00
committed by GitHub
parent 994863c18d
commit 1e2d89fa58
+1
View File
@@ -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()