Replies: 3 comments 4 replies
|
I think I was reading docker has or it will have a feature to suspend a container with its memory state to disk. It would be nice to have mc-router invoke an API on docker to manage that. |
0 replies
|
Found this docker command: https://docs.docker.com/reference/cli/docker/checkpoint which will save the memory to disk and load back from there on startup. Although it is an experimental feature for now, but maybe worth a shot. |
0 replies
|
Would it be possible to shut down the server completely and restart it when someone tries to connect? Perhaps showing them a message that the server is currently starting? Maybe even a server MOTD that the server is currently hibernating? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all.
I have a small home server with a couple minecraft worlds playing with my family. Most of the time they are just sitting there auto-paused, consuming 2G memory each. Wondering if it is technically possible to hibernate the server process as such windows hibernate its whole system, writing out the memory content to a file and read back when the server is waking up.
I know (if it would be possible) there would be a much greater startup delay, but would be more resource friendly (at least in my case).
Another way would be to automatically shut down / restart the container.
In my case I use mc_router as well and maybe that or a similar container could monitor each instance (and client connections) and start/stop the containers accordingly.
All reactions