ubicloud/migrate/20250905_add_storage_volume_vring_workers.rb
Hadi Moshayedi a5bc3e8db0 Migration to add VmStorageVolume.vring_workers.
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.
2025-09-09 11:58:45 -07:00

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