Skip to content
Snippets Groups Projects
Commit b0261e81 authored by Sebastian Rieger's avatar Sebastian Rieger
Browse files

added global timeout to detect otherwise endless running checks, when nodes...

added global timeout to detect otherwise endless running checks, when nodes crash or resources are depleted
parent 2e978098
No related branches found
No related tags found
No related merge requests found
......@@ -147,6 +147,9 @@ for run in range(1, NUMBER_OF_BENCHMARK_RUNS + 1):
# print(os.popen("top -b -n 1 | head -20 >> gns3bench-perf.log"))
time_globalTimeout = time.time()
print("(check duration: {:d} sec, timeout: {:d} sec)".format(int((time_globalTimeout - time_active)),
int(GLOBAL_TIMEOUT)))
# if usability of nodes is checked longer than global timeout, exit
# this can happen if nodes get stuck, e.g., due to high load, missing resources etc.
if time_globalTimeout - time_active > GLOBAL_TIMEOUT:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment