tjcsl / director

Director (web3)
https://director.tjhsst.edu
MIT License
11 stars 5 forks source link

Add resource limits for virtual machines #7

Open ezwang opened 7 years ago

ezwang commented 7 years ago

Virtual machines currently have no resource limits, which may impact performance if a particular virtual machine is taking up too many resources. This could be implemented with Linux cgroups.

pefoley2 commented 7 years ago

insert shameless kubernetes plug here

an-empty-string commented 7 years ago

LXC has this functionality built in -- in the container configuration:

lxc.cgroup.memory.limit_in_bytes = 512M
lxc.cgroup.memory.memsw.limit_in_bytes = 1G

but I'm not sure if the conductor agent supports setting arbitrary config keys.

WilliamOConnell commented 7 years ago

Is there a limit to the number of VMs that can be created? That should probably be added as well.