summaryrefslogtreecommitdiff
path: root/ironic_python_agent
diff options
context:
space:
mode:
authorFedor Tarasenko <feodor.tarasenko@gmail.com>2020-05-25 22:18:17 +0300
committerFedor Tarasenko <feodor.tarasenko@gmail.com>2020-05-25 22:18:17 +0300
commit952489020ea36aced3737079fa17eff2e37b4da7 (patch)
tree12e550b95da36f91211a52c1c49f956cb740c7b8 /ironic_python_agent
parentf108b7a2d0dcbe107935f979f1d2a73fba90577d (diff)
downloadironic-python-agent-952489020ea36aced3737079fa17eff2e37b4da7.tar.gz
Fix an issue with high cpu usage caused by ironic-python-agent
Currently running of ipa-centos8-stable-ussuri image causes 100% cpu usage while cleaning. Proposed change fixes this behavior and significantly speeds up cleaning. Change-Id: I2ba9a69f22b11830d8ff1bc346b17bf1a52f25b0 Story: #2007696 Task: #39809
Diffstat (limited to 'ironic_python_agent')
-rw-r--r--ironic_python_agent/agent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic_python_agent/agent.py b/ironic_python_agent/agent.py
index 7b1b3e8e..5eb1e28d 100644
--- a/ironic_python_agent/agent.py
+++ b/ironic_python_agent/agent.py
@@ -381,7 +381,7 @@ class IronicPythonAgent(base.ExecuteCommandMixin):
self.heartbeater.start()
try:
while self.serve_api:
- eventlet.sleep(0)
+ eventlet.sleep(0.1)
except KeyboardInterrupt:
LOG.info('Caught keyboard interrupt, exiting')
self.api.stop()