]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
I/O rate limit for volume copy with dd
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Wed, 7 May 2014 20:52:20 +0000 (16:52 -0400)
committerTomoki Sekiyama <tomoki.sekiyama@hds.com>
Tue, 17 Jun 2014 17:33:25 +0000 (13:33 -0400)
commitce401853f3e0f952bf6b1f9e327c53b8c34a5e1b
tree2bc680ef4138fda7edc790a94df29965307761b2
parent2355c7935054b6f6fbc7e641d289a0efd52a8c63
I/O rate limit for volume copy with dd

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, 'dd' is put in a blkio cgroup for throttling,
when CONF.volume_copy_bps_limit is set to non-zero.

Change-Id: I32347d2e28842725207a1b3afac7fe137a3fd3b4
Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Implements: blueprint limit-volume-copy-bandwidth
cinder/tests/test_utils.py
cinder/tests/test_volume_utils.py
cinder/utils.py
cinder/volume/driver.py
cinder/volume/utils.py
etc/cinder/cinder.conf.sample