Add support for configurable redis server ready timeout

https://bugs.launchpad.net/kloudbuster/+bug/1766373

Change-Id: Icc367ec52e7d61e5729220eee3a8753b228f4a09
Signed-off-by: ahothan <ahothan@cisco.com>
This commit is contained in:
ahothan 2018-06-13 13:08:12 -07:00
parent 8c52aa0e06
commit cae5f726df
2 changed files with 9 additions and 5 deletions

View File

@ -85,6 +85,9 @@ tsdb:
# TSDB server port # TSDB server port
server_port: 9090 server_port: 9090
# Maximum time allowed for the Proxy Redis server to get ready in seconds
proxy_timeout_sec: 120
# ================================================== # ==================================================
# SERVER SIDE CONFIG OPTIONS (HTTP SERVER SIDE ONLY) # SERVER SIDE CONFIG OPTIONS (HTTP SERVER SIDE ONLY)
# ================================================== # ==================================================

View File

@ -615,7 +615,8 @@ class KloudBuster(object):
self.kb_runner = KBRunner_HTTP(client_list, self.client_cfg, self.kb_runner = KBRunner_HTTP(client_list, self.client_cfg,
self.single_cloud) self.single_cloud)
self.kb_runner.setup_redis(self.kb_proxy.fip_ip or self.kb_proxy.fixed_ip) self.kb_runner.setup_redis(self.kb_proxy.fip_ip or self.kb_proxy.fixed_ip,
timeout=self.client_cfg.proxy_timeout_sec)
if self.client_cfg.progression['enabled'] and not self.multicast_mode: if self.client_cfg.progression['enabled'] and not self.multicast_mode:
log_info = "Progression run is enabled, KloudBuster will schedule " \ log_info = "Progression run is enabled, KloudBuster will schedule " \
"multiple runs as listed:" "multiple runs as listed:"