]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
I/O rate limit for volume copy with qemu-img convert
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Fri, 13 Jun 2014 22:49:24 +0000 (18:49 -0400)
committerTomoki Sekiyama <tomoki.sekiyama@hds.com>
Tue, 17 Jun 2014 19:09:37 +0000 (15:09 -0400)
commit12548cc311d43d704d25c25a31478941ede27a6b
treeac363bba6b58f626a97cbe2df925249bc9108f17
parentce401853f3e0f952bf6b1f9e327c53b8c34a5e1b
I/O rate limit for volume copy with qemu-img convert

Currently, volume copy operations consumes disk I/O bandwidth heavily and
may slow down the other guest instances. This patch limits bandwidth for
volume copy to mitigate interference to other instance performance.

In this implementation, 'qemu-img' is put in a blkio cgroup for throttling,
when CONF.volume_copy_bps_limit is set to non-zero.

Change-Id: I8403d4bcafc4279654034da97aa9b6c097f9e649
Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Implements: blueprint limit-volume-copy-bandwidth
cinder/image/image_utils.py
cinder/tests/test_image_utils.py