cinder.volume.throttling module

Volume copy throttling helpers.

class BlkioCgroup(bps_limit, cgroup_name)

Bases: Throttle

Throttle disk I/O bandwidth using blkio cgroups.

subcommand(srcpath, dstpath)

Sub-command that reads from srcpath and writes to dstpath.

Throttle disk I/O bandwidth used by a sub-command, such as ‘dd’, that reads from srcpath and writes to dstpath. The sub-command must be executed with the generated prefix command.

class Throttle(prefix=None)

Bases: object

Base class for throttling disk I/O bandwidth

DEFAULT = None
static get_default()
static set_default(throttle)
subcommand(srcpath, dstpath)

Sub-command that reads from srcpath and writes to dstpath.

Throttle disk I/O bandwidth used by a sub-command, such as ‘dd’, that reads from srcpath and writes to dstpath. The sub-command must be executed with the generated prefix command.