openebs / lvm-localpv

Dynamically provision Stateful Persistent Node-Local Volumes & Filesystems for Kubernetes that is integrated with a backend LVM2 data storage stack.
Apache License 2.0
245 stars 92 forks source link

test(bdd): adding scheduler logic bdd #323

Closed abhilashshetty04 closed 1 month ago

abhilashshetty04 commented 1 month ago

Can you please explain what is the difference between SpaceWeighted and CapacityWeighted?

In SpaceWeighted, scheduler picks node which has vg with larger free space, Whereas in CapacityWeighted it picks node with vg that has least allocated capacity.

In VolumeWeighted scheduler will pick a node with vg having less number of lv.

abhilashshetty04 commented 1 month ago

Instead of referring nodes like pvc-1 node or pvc-2 node etc, better define node names node1 node2 and node3 and use them as reference.

We dont know where the initial provisioning will happen. But we can predict which volume a new volume could follow. So i thought of validating with pvc-x volume node.

It could be confusing if we specify node name.