diff options
Diffstat (limited to 'nfvbench')
-rwxr-xr-x | nfvbench/cfg.default.yaml | 3 | ||||
-rw-r--r-- | nfvbench/nfvbench.py | 1 | ||||
-rwxr-xr-x | nfvbench/traffic_client.py | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/nfvbench/cfg.default.yaml b/nfvbench/cfg.default.yaml index da68571..2af6d63 100755 --- a/nfvbench/cfg.default.yaml +++ b/nfvbench/cfg.default.yaml @@ -359,6 +359,9 @@ duration_sec: 60 # Can be overridden by --interval interval_sec: 10 +# Default pause between iterations of a binary search (NDR/PDR) +pause_sec: 2 + # NDR / PDR configuration measurement: # Drop rates represent the ratio of dropped packet to the total number of packets sent. diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py index 1f80390..e0b5786 100644 --- a/nfvbench/nfvbench.py +++ b/nfvbench/nfvbench.py @@ -177,6 +177,7 @@ class NFVBench(object): self.config.duration_sec = float(self.config.duration_sec) self.config.interval_sec = float(self.config.interval_sec) + self.config.pause_sec = float(self.config.pause_sec) # Get traffic generator profile config if not self.config.generator_profile: diff --git a/nfvbench/traffic_client.py b/nfvbench/traffic_client.py index 188e076..ef68fe5 100755 --- a/nfvbench/traffic_client.py +++ b/nfvbench/traffic_client.py @@ -754,6 +754,7 @@ class TrafficClient(object): time_elapsed_ratio = self.runner.time_elapsed() / self.run_config['duration_sec'] if time_elapsed_ratio >= 1: self.cancel_traffic() + time.sleep(self.config.pause_sec) self.interval_collector.reset() # get stats from the run |