Repository navigation
Cloud boxes: power a VM on for a teleport, off when idle - #167
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A box is a relay node on a cloud VM (Scaleway, via the logged-in
scwCLI) that this machine powers on and off. Its disk stays while off, so what a teleport installed there stays for the next one.live box add|ls|start|stop(writes take--yes), registry in<live dir>/boxes.json.live teleportto a stopped box powers it on and re-asks the probe while the box boots (up to 4 x 60 s).box.Keeperreads the relay's sessions every minute and powers a box off after 30 min with no busy session (ONE_CONV_BOX_IDLE_MINUTES, 0 never). The stop runs in a thread so the bridge loop never blocks.mcpb.json), README and SKILL.md.Measured on a real DEV1-M: power-off 26 s, power-on 26 s, files and the bridge service survive; the bridge reconnects by itself.