Improve eventlet concurrency when uploading/downloading.
When uploading/downloading multiple images using the
same glance-api worker process some of its eventlet
threads can become starved. Inserting statements to
trigger cooperative yields, ie sleep(0), allows fairer
scheduling of the other eventlet threads.
Reviewed: https:/ /review. openstack. org/9330 github. com/openstack/ glance/ commit/ 70e9690830653ed 92d15c4a696cae8 778c635206
Committed: http://
Submitter: Jenkins
Branch: master
commit 70e9690830653ed 92d15c4a696cae8 778c635206
Author: Stuart McLaren <email address hidden>
Date: Wed Jul 4 16:38:07 2012 +0000
Improve eventlet concurrency when uploading/ downloading.
When uploading/ downloading multiple images using the
same glance-api worker process some of its eventlet
threads can become starved. Inserting statements to
trigger cooperative yields, ie sleep(0), allows fairer
scheduling of the other eventlet threads.
Fixes LP Bug #1021002.
Change-Id: I5a8f255e9507d1 8813d07d418e6ac efa10d9f6bb