Merge "[API replay] Do not collect Octavia stats in API replay mode"
This commit is contained in:
commit
11fafef7cb
|
@ -744,6 +744,9 @@ class NSXOctaviaStatisticsCollector(object):
|
|||
LOG.info("NSXOctaviaStatisticsCollector thread_runner is running")
|
||||
while True:
|
||||
time.sleep(interval)
|
||||
if cfg.CONF.api_replay_mode:
|
||||
LOG.debug("Not collecting Octavia stats in API replay mode")
|
||||
continue
|
||||
try:
|
||||
self.collect()
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue