[API replay] Do not collect Octavia stats in API replay mode
Skip the operation as the RPC server may not be available and during API replay mode Neutron does not need to perform this operation. Change-Id: Icf848acccfddb760a85b4b182d5050bbd45f3871
This commit is contained in:
parent
8347bd12bd
commit
2ef3b45c7b
@ -744,6 +744,9 @@ class NSXOctaviaStatisticsCollector(object):
|
|||||||
LOG.info("NSXOctaviaStatisticsCollector thread_runner is running")
|
LOG.info("NSXOctaviaStatisticsCollector thread_runner is running")
|
||||||
while True:
|
while True:
|
||||||
time.sleep(interval)
|
time.sleep(interval)
|
||||||
|
if cfg.CONF.api_replay_mode:
|
||||||
|
LOG.debug("Not collecting Octavia stats in API replay mode")
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
self.collect()
|
self.collect()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user