mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-10 00:58:17 +03:00
feature #2530: add defaults for io throttling
This commit is contained in:
parent
2de10612d3
commit
311d21f312
@ -421,6 +421,36 @@ int LibVirtDriver::deployment_description_kvm(
|
||||
read_iops_sec = disk->vector_value("READ_IOPS_SEC");
|
||||
write_iops_sec = disk->vector_value("WRITE_IOPS_SEC");
|
||||
|
||||
if ( total_bytes_sec.empty() )
|
||||
{
|
||||
get_default("DISK", "TOTAL_BYTES_SEC", total_bytes_sec);
|
||||
}
|
||||
|
||||
if ( read_bytes_sec.empty() )
|
||||
{
|
||||
get_default("DISK", "READ_BYTES_SEC", read_bytes_sec);
|
||||
}
|
||||
|
||||
if ( write_bytes_sec.empty() )
|
||||
{
|
||||
get_default("DISK", "WRITE_BYTES_SEC", write_bytes_sec);
|
||||
}
|
||||
|
||||
if ( total_iops_sec.empty() )
|
||||
{
|
||||
get_default("DISK", "TOTAL_IOPS_SEC", total_iops_sec);
|
||||
}
|
||||
|
||||
if ( read_iops_sec.empty() )
|
||||
{
|
||||
get_default("DISK", "READ_IOPS_SEC", read_iops_sec);
|
||||
}
|
||||
|
||||
if ( write_iops_sec.empty() )
|
||||
{
|
||||
get_default("DISK", "WRITE_IOPS_SEC", write_iops_sec);
|
||||
}
|
||||
|
||||
disk->vector_value_str("DISK_ID", disk_id);
|
||||
|
||||
if (target.empty())
|
||||
|
@ -21,7 +21,7 @@
|
||||
# - os [kernel,initrd,boot,root,kernel_cmd,arch,machine]
|
||||
# - vcpu
|
||||
# - features [acpi, pae, apic, hyperv, localtime]
|
||||
# - disk [driver, cache, io]
|
||||
# - disk [driver, cache, io, total_bytes_sec, total_iops_sec, read_bytes_sec, write_bytes_sec, read_iops_sec, write_iops_sec]
|
||||
# - nic [filter, model]
|
||||
# - raw
|
||||
# - hyperv_options: options used for FEATURES = [ HYPERV = yes ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user