summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorTianTian Gao <gtt116@126.com>2012-09-04 12:01:41 +0800
committerTianTian Gao <gtt116@126.com>2012-09-05 13:00:58 +0800
commitbe72921c6f38b8b71ffc474ceae58e67241dac22 (patch)
treea954dd2812a8b24940eae4159a04d7e34d852883 /nova/openstack
parent51f5b8c28e37af4ab7c86e5b4ed8a3be0460fe32 (diff)
downloadnova-be72921c6f38b8b71ffc474ceae58e67241dac22.tar.gz
nova-be72921c6f38b8b71ffc474ceae58e67241dac22.tar.xz
nova-be72921c6f38b8b71ffc474ceae58e67241dac22.zip
Yield to another greenthread when some time-consuming task finished.
Partially addresses bug #1045152 On a heavily loaded compute node, it can be observed that periodic tasks take so long to run that the report_state() looping call can be blocked from running long enough that the scheduler thinks the host is dead. Reduce the chance of this happening by yielding to another greenthread after each periodic task has completed and each loop in some methods that has linear relationship with the number of instances. Change-Id: If2b125708da8298b20497e2e08e52280c102f1e1
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions