samba-in-kubernetes / sit-environment

SIT (Samba Integration Testing) Framework
GNU General Public License v3.0
1 stars 7 forks source link

Dynamically adjust the amount of memory and CPUs assigned to each VM #63

Closed xhernandez closed 10 months ago

xhernandez commented 10 months ago

This patch provides a way to automatically assign a portion of the memory and CPUs to the sit-environment and proportionally distribute it among the VMs that will be created based on a per-VM weight defined in the environment configuration.

Two new extra vars have been defined that can override how many resources are assigned to sit-environment:

memory: Percentage of the free memory assigned to sit-environment (default: 50) cpu: Percentage of the available cores assigned to sit-environment (default: 100)

anoopcs9 commented 10 months ago

Can we have the change rebased to latest HEAD?

anoopcs9 commented 10 months ago

Changes from CentOS CI are as follows:

CephFS setup0 storage0 storage1 storage2 client0
CPU 2 8 -> 19 8 -> 19 8 -> 19 4 -> 10
Memory 1024 8192 -> 26624 8192 -> 26624 8192 -> 26624 4096 -> 13312
GlusterFS setup0 storage0 storage1 storage2 client0
CPU 2 8 -> 27 8 -> 27 4 -> 14
Memory 1024 8192 -> 36864 8192 -> 36864 4096 -> 18432
XFS setup0 storage0 storage1 storage2 client0
CPU 2 4 -> 35 4 -> 35
Memory 1024 4096 -> 46080 4096 -> 46080