summaryrefslogtreecommitdiff
path: root/etc/nova
diff options
context:
space:
mode:
authorKevin_Zheng <zhengzhenyu@huawei.com>2018-04-23 15:41:21 +0800
committerMatt Riedemann <mriedem.os@gmail.com>2018-07-16 13:57:09 -0400
commit79dac41fee178dabb547f4d7bc10609630767131 (patch)
tree5d877e273d064d0dc845b617a8770f6fc5493b29 /etc/nova
parentb2dafb1ee8c125cbeca92871e9478ac412084292 (diff)
downloadnova-79dac41fee178dabb547f4d7bc10609630767131.tar.gz
Use ThreadPoolExecutor for max_concurrent_live_migrations
This changes the max_concurrent_live_migrations handling to use a ThreadPoolExecutor so that we can control a bounded pool of Futures in order to cancel queued live migrations later in this series. There is a slight functional difference in the unlimited case since starting in python 3.5, ThreadPoolExecutor will default to ncpu * 5 concurrently running threads. However, max_concurrent_live_migrations defaults to 1 and assuming compute hosts run with 32 physical CPUs on average, you'd be looking at a maximum of 160 concurrently running live migrations, which is probably way above what anyone would consider sane. Co-Authored-By: Matt Riedemann <mriedem.os@gmail.com> Part of blueprint abort-live-migration-in-queued-status Change-Id: Ia9ea1e164fb3b4a386405538eed58d94ad115172
Diffstat (limited to 'etc/nova')
0 files changed, 0 insertions, 0 deletions