mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 13:52:06 +08:00
Optimal number of Ubiblk vring worker threads depends on the workload. E.g. postgres VMs perform better when this is 1 than the default vcpus/2 we used before. Adding this value as a column adds the flexibility to set number of vring worker threads based on the VM's purpose.
9 lines
161 B
Ruby
9 lines
161 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
change do
|
|
alter_table(:vm_storage_volume) do
|
|
add_column :vring_workers, Integer
|
|
end
|
|
end
|
|
end
|