From bb9e4f7b68fdb0121cf1f37e04e3b3a9635ae8a4 Mon Sep 17 00:00:00 2001 From: Yichen Wang Date: Fri, 23 Aug 2019 10:52:39 -0700 Subject: [NFVBENCH-148] Increase the waiting time based on # of instances Change-Id: Ia89641948698b2939a6b47e3164dc1a4f1659d68 Signed-off-by: Yichen Wang --- nfvbench/chaining.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit 1.2.3-korg