Pause watcher during performance QA
[ganeti-github.git] / qa / ganeti-qa.py
index 9cbbd43..77ad23d 100755 (executable)
@@ -903,6 +903,10 @@ def RunPerformanceTests():
     ReportTestSkip("performance related tests", "performance")
     return
 
+  # For reproducable performance, run performance tests with the watcher
+  # paused.
+  qa_utils.AssertCommand(["gnt-cluster", "watcher", "pause", "4h"])
+
   if qa_config.TestEnabled("jobqueue-performance"):
     RunTest(qa_performance.TestParallelMaxInstanceCreationPerformance)
     RunTest(qa_performance.TestParallelNodeCountInstanceCreationPerformance)
@@ -938,6 +942,8 @@ def RunPerformanceTests():
     finally:
       qa_config.ReleaseManyNodes(inodes)
 
+  qa_utils.AssertCommand(["gnt-cluster", "watcher", "continue"])
+
 
 def RunQa():
   """Main QA body.