-
Notifications
You must be signed in to change notification settings - Fork 883
Conversation
It looks to be a useful feature to have. Some comments:
https://www.kernel.org/doc/Documentation/cgroups/freezer-subsystem.txt
https://github.com/coreos/rocket/blob/master/Documentation/stage1-implementors-guide.md
|
+1 on calling this pause. Can someone describe the use case? |
There are some use cases for container checkpoint restart: |
+1 on supporting pause and eventually checkpoint restore. As for my use-case: I'm working on a project that uses containers (currently docker, hoping to move to rocket soon) to host PHP applications and unfortunately the preferred php opcode cache does not support persisting to disk. This can have a huge impact on startup time for first request. My use case involves oversubscribing host machines and shutting down idle services - currently using pause for some amount of time to ensure the processes are blocked and not using any cpu resources and then eventually stopping them completely. They're then restarted when a new request is received by the reverse proxy (somewhat similar to systemd socket activation). The ability to pause helps, the ability to do checkpoint restore would be amazing as it could save over a minute of php parsing time on some large applications on that first request after hibernation. |
Any reason not to instead have a general |
@vcaputo the freezer subsystem does something different - it let's you block a process while keeping it in memory. As I said before this functionality is helping me personally on a docker powered project right now and it's a prerequisite for layering checkpoint/restore on top after the fact. Unless I'm misunderstanding? |
@tizzo my comment is regarding the actual commit in the PR, @alban is clearly referring to something more elaborate like 👎 on the PR though; not fond of having a subcommand implementing just |
Ah sorry, misread - thanks. On Tue, Feb 17, 2015 at 3:06 PM, Vito Caputo notifications@github.com
|
chiming in with $2e-2: I agree with vcaputo/alban, the particular implementation in this PR is not quite the direction we should go but the more elaborate |
@enten Ping to #532 (comment) |
The standard scenario : when a user explicitly wants to stop all apps from a container. |
@enten sorry for the delay but I am going to close this out. I think #532 (comment) and #532 (comment) nailed some of the issues with this particular approach, but we would definitely be receptive to a more comprehensive freeze/thaw (probably via #543). |
code adjustment to add stop command