LabOrchestrator / LabOrchestratorLib

Library that contains the core of the lab orchestrator.
Mozilla Public License 2.0
2 stars 0 forks source link

Resources from labs should be configurable #10

Open Bergiu opened 2 years ago

Bergiu commented 2 years ago

the VirtualMachineInstanceController.create method adds hardcoded valued to the vmi template. this includes the amount of cpus and the amount of RAM:

https://github.com/LabOrchestrator/LabOrchestratorLib/blob/main/src/lab_orchestrator_lib/controller/controller.py#L232

this values should be configurable.

I think the best way to implement this is to add "amount of cpu" and "amount of memory" to lab_docker_image. then an admin can create a lab and specify the resources for each vm.

in addition to this, the docker_image should have attributes for "minimum amount of memory" and "minimum amount of cpus". This may be used as default values when creating new lab docker images, or at least a hint for the admin that adds this vm to the lab.