refinery-platform / django_docker_engine

Django app that manages the creation of, and proxies requests to, Docker containers.
MIT License
6 stars 2 forks source link

Instead of purge-after-n-minutes, purge-to-free-enough-memory-for-next tool #177

Closed mccalluc closed 6 years ago

mccalluc commented 6 years ago

Instead of blocking the launch of new tools, we want to kill old tools to free up enough memory for the requested tool. From the outside, explicit periodic purges would no longer be necessary. On the inside, there would be a private method to isolate the functionality.

(Might include expected memory usage of tools as part of def, or might get it from containers live.)

mccalluc commented 6 years ago

Fixed by #186