summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYichen Wang <yicwang@cisco.com>2019-08-23 10:52:39 -0700
committerYichen Wang <yicwang@cisco.com>2019-08-23 15:50:11 -0700
commitbb9e4f7b68fdb0121cf1f37e04e3b3a9635ae8a4 (patch)
tree8fec9d5cde30a3e6221e0b5dfad049ae8ffa2de1
parent832fb868c46232e1001e59c3a82aaa35f0b02cb4 (diff)
[NFVBENCH-148] Increase the waiting time based on # of instances
Change-Id: Ia89641948698b2939a6b47e3164dc1a4f1659d68 Signed-off-by: Yichen Wang <yicwang@cisco.com>
-rw-r--r--nfvbench/chaining.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfvbench/chaining.py b/nfvbench/chaining.py
index a0c8860..49d23b7 100644
--- a/nfvbench/chaining.py
+++ b/nfvbench/chaining.py
@@ -1184,7 +1184,8 @@ class ChainManager(object):
for chain in self.chains:
instances.extend(chain.get_instances())
initial_instance_count = len(instances)
- max_retries = (self.config.check_traffic_time_sec +
+ # Give additional 10 seconds per VM
+ max_retries = (self.config.check_traffic_time_sec + (initial_instance_count - 1) * 10 +
self.config.generic_poll_sec - 1) / self.config.generic_poll_sec
retry = 0
while instances: