
[Feature request] Pause vms when nobody is online
CrispyPin opened this issue · 13 comments
It would be nice to have the option to pause all vms when nobody is online since they do have some overhead
Personally, I feel like only pausing the OC2 VM itself might pose... problems as far as gameplay goes. Especially if said VM was running programs controlling something that can go boom (read: draconic reactors held at barely stable levels, for example).
Wouldn't it be better to just limit chunkloading instead of having something potentially critical stop working when you log off?
draconic reactors held at barely stable levels
mfw power is more important than safety
draconic reactors held at barely stable levels
mfw power is more important than safety
Pfft. It's perfectly safe. As long as the control programs are running.
Do you guys even use failsafe for reactors?
Yes. Of course. One can never have too many failsafes in that scenario. But I would rather not have to test those.
And we're kind of derailing the issue discussion...
I share that concern, and am wondering if the more consistent approach wouldn't be to pause the server entirely, when nobody is online? At the very least, this option would default to disabled.
I share that concern, and am wondering if the more consistent approach wouldn't be to pause the server entirely, when nobody is online? At the very least, this option would default to disabled.
There could be a broadcast to every VM when no one's online ?
So each VM can handle the action differently (one could shutdown, another one could delete some files and reboot, etc), that would allow up for proper "shutting down" for unnecessary VMs.
I don't think programs that involve timing & clock stuff would take to pausing VMs very kindly.
Well, the primary RPC uses real-world time, so the machines would just see a sudden skip in reality. But should survive that just fine.
There could be a broadcast to every VM when no one's online ?
I don't quite grasp the full scenario yet. Is this to throttle/stop machines for "untrusted" players, or a convenience thing for trusted players/self-hosters? What speaks against keeping computers in chunks that just unload when there's no player nearby?
Pausing VMs is not uncommon, is it?
Sure. It's not that much of a technical difficulty. I'm just worried about the unexpected side-effects, when just a subset of block entities suddenly start updating, as opposed to all others. Pausing them would make it unreliable to use computers to control other systems (e.g. some reactor where a computer avoids it from overheating/blowing up).
I don't quite grasp the full scenario yet. Is this to throttle/stop machines for "untrusted" players, or a convenience thing for trusted players/self-hosters? What speaks against keeping computers in chunks that just unload when there's no player nearby?
just a convenience thing for trusted players/self-hosters really