Skip to content

Commit

Permalink
core: add new configuration for volume chunk size
Browse files Browse the repository at this point in the history
Adding new configuration for volume chunk size.
This duplicates VDSM "irs:volume_utilization_chunk_mb" configuration.
https://github.com/oVirt/vdsm/blob/master/lib/vdsm/common/config.py.in#L325

Duplicating the configration is bad. But until the configuration
is totally moved to engine, we have no other way to use the right
size for creating new volumes.

Signed-off-by: Pavel Bar <pbar@redhat.com>
Bug-Url: https://bugzilla.redhat.com/1958032
  • Loading branch information
barpavel committed May 18, 2022
1 parent dd8fb46 commit 1fe6d32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1584,6 +1584,9 @@ public enum ConfigValues {
@TypeConverterAttribute(Integer.class)
LiveSnapshotFreezeTimeout,

@TypeConverterAttribute(Integer.class)
VolumeUtilizationChunkInMB,

@TypeConverterAttribute(Boolean.class)
IsIncrementalBackupSupported,

Expand Down
1 change: 1 addition & 0 deletions packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,7 @@ select fn_db_add_config_value_for_versions_up_to('BiosTypeSupported', 'true', '4
select fn_db_add_config_value('LiveSnapshotTimeoutInMinutes', '30', 'general');
select fn_db_add_config_value('LiveSnapshotAllowInconsistent', 'true', 'general');
select fn_db_add_config_value('LiveSnapshotFreezeTimeout', '8', 'general');
select fn_db_add_config_value('VolumeUtilizationChunkInMB', '2560', 'general');

-- VirtIO-Win drivers path
select fn_db_add_config_value('VirtioWinIsoPath','/usr/share/virtio-win','general');
Expand Down
3 changes: 3 additions & 0 deletions packaging/etc/engine-config/engine-config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,9 @@ LiveSnapshotPerformFreezeInEngine.type=Boolean
LiveSnapshotFreezeTimeout.description=The live snapshot command without memory timeout in minutes
LiveSnapshotFreezeTimeout.type=Integer
LiveSnapshotFreezeTimeout.validValues=1..3000
VolumeUtilizationChunkInMB.description="Size of extension chunk in megabytes. Use higher values to extend in bigger chunks."
VolumeUtilizationChunkInMB.type=Integer
VolumeUtilizationChunkInMB.validValues=1024..4096
# Incremental backup
IsIncrementalBackupSupported.description=Enable incremental backup operations for a VM.
IsIncrementalBackupSupported.type=Boolean
Expand Down

0 comments on commit 1fe6d32

Please sign in to comment.