diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2019-05-13 10:37:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-13 10:37:43 +0000 |
commit | a661234e77ca4c42eae85abf36d6876b246b1347 (patch) | |
tree | d6012c53fa9ac3eabd094525a7712746098f0375 /kubernetes/readiness/docker/init/ready.py | |
parent | 3790a7acab344b65ce0133f3dd7f0a85cd43201d (diff) | |
parent | 0c588d5a5e55dbe77d06e6a9e188ac60fccee632 (diff) |
Merge "Add deviation in readiness check sleep time"
Diffstat (limited to 'kubernetes/readiness/docker/init/ready.py')
-rw-r--r-- | kubernetes/readiness/docker/init/ready.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kubernetes/readiness/docker/init/ready.py b/kubernetes/readiness/docker/init/ready.py index 20872f9897..0e133eab01 100644 --- a/kubernetes/readiness/docker/init/ready.py +++ b/kubernetes/readiness/docker/init/ready.py @@ -4,6 +4,7 @@ import logging import os import sys import time +import random from kubernetes import client @@ -154,7 +155,8 @@ def main(argv): log.warning("timed out waiting for '" + container_name + "' to be ready") exit(1) else: - time.sleep(5) + # spread in time potentially parallel execution in multiple containers + time.sleep(random.randint(5, 11)) if __name__ == "__main__": main(sys.argv[1:]) |