canonical / prometheus-openstack-exporter

OpenStack exporter for the prometheus monitoring system
GNU General Public License v3.0
128 stars 113 forks source link

Fix eventlet patch that was not working right #116

Closed drencrom closed 2 years ago

drencrom commented 2 years ago

Pull request #115 was not right as the helper thread run only once. As eventlet threads are scheduled on userspace the web server has to yield the cpu to allow the other thread to run or otherwise it would not run at all. A sleep and a timeout were added to the web server loop to allow the other thread to run as expected. Also some sleeps where added during the helper thread execution loop to avoid blocking web server requests for a long time.