Docker Daemon Resource Check
After upgrading docker under OSX the resource limits are reset. Not sure how it works on Linux.
However, the limits are way too low to run k3d, which leads to unpredictable behavior (cluster not responding).
Would be great the cli could do a quick lookup, on how much resources (RAM/Cores) are available.
@SteinRobert How would you implement this check? Does docker have commands which can be used?
I found docker stats, but I guess that`s not the right command or?
I believe docker info would be a good start. However, it says nothing about space on device / available persistent memory.
What should be the outcome of this issue? Shall we perform the resource check e.g when a new project is created and define minimum resources which should be available, and if not we display a warning?
We could use Caboto here as well https://github.com/Schille/caboto/blob/6cd70b052566ccf37b6bd5ea6e4f7c5d093415ca/caboto/api.py#L225-L256 to get an indication of how resource demanding a Deck is. The return value of these functions on a current project (yaml manifests) for memory is:
$> python caboto -m operations -r sum_memory_requests
2432.00M
For CPU requests it is:
$> python caboto -m operations -r sum_cpu_requests
4.5
That is: ~2.5 GB of RAM and 4.5 virtual CPUs to run this Deck. These values can be compared to the host's resources and prompt the user accordingly.