-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to more thoroughly kill child Docker processes
During a recent outage, the Docker service reported 161 running `docker` processes, while the playground was only aware of 27. Each `docker` processes (and their children) use about 30 MiB of RAM. That would total 4.7 GiB of memory, while the instance only has 4GiB. My hypothesis is that we are starting containers, then encountering an error and bubbling it up to the caller. Along the way, we skip the call to shutdown the container. This change tries to shutdown the container when the value is dropped. This should allow it to be handled in error cases as well. It's possible that this might also help with some of the zombie processes we see from time-to-time!
- Loading branch information
1 parent
ca5d2ca
commit d28aa3e
Showing
1 changed file
with
72 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters