Closed sleepymole closed 1 month ago
hello, Can I work on it
Hi @SHIKHER09, sure, you can work on it. Please let me know if you need any help. You can join our slack channel #openebs-dev in K8s workspace and ask the questions there.
Hi @sleepymole , Support has already been added to incorporate volumeWeighted
and capacityWeighted
algorithm. However, by default we run spaceWeighted if not specified.
These algorithms are used to select a lvmnode to place a lvmVolume CR. After that lvmvolume controller picks the CR and chooses a VG within it for lvcreate.
So if you want to have more control on lv placement in terms of vg selection. Id suggest you use vgpattern
.
@abhilashshetty04 Awesome work!
Describe the problem/challenge you have
When there are multiple volume groups on a node, the lvm-driver always creates volume on the first volume group if possible.It seems this is expected as the
getVgPriorityList
says: https://github.com/openebs/lvm-localpv/blob/e41d25a0cd22d1deef2058fb99fae003bfd9f584/pkg/mgmt/volume/volume.go#L140-L143However, we'd like to create volumes on different volume groups in our scenario, so that all underlying disks can be utilized for better performance.
Describe the solution you'd like [A clear and concise description of what you want to happen.]
Support custom volume group priority algorithm like the node schedule algorithm
VolumeWeighted
andCapacityWeighted
.Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
kubectl version
):/etc/os-release
):