<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fhosting%2Flinode</id>
	<title>Unity.Multiplayer/articles/hosting/linode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fhosting%2Flinode"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/linode&amp;action=history"/>
	<updated>2026-12-05T10:00:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/linode&amp;diff=923&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/linode&amp;diff=923&amp;oldid=prev"/>
		<updated>2026-11-29T20:36:58Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Hosting on Linode (Akamai Cloud Computing) =&lt;br /&gt;
&lt;br /&gt;
A UM-T26 plain-VPS cloud profile: &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; creates the instance itself through Linode&amp;#039;s REST API (&amp;lt;code&amp;gt;https&amp;amp;#58;//api.linode.com/v4&amp;lt;/code&amp;gt;) from an Ubuntu image, with cloud-init (Linode&amp;#039;s Metadata service) bootstrapping the container plus rendezvous on first boot -- unlike GenericVps, there&amp;#039;s no box to rent by hand first.&lt;br /&gt;
&lt;br /&gt;
== What &amp;lt;code&amp;gt;mp-host deploy&amp;lt;/code&amp;gt; does here ==&lt;br /&gt;
&lt;br /&gt;
# Builds (or reads an already-built) server package and its Docker image, then pushes the image to GHCR.&lt;br /&gt;
# Creates an instance (&amp;lt;code&amp;gt;POST /linode/instances&amp;lt;/code&amp;gt;) from &amp;lt;code&amp;gt;linode/ubuntu24.04&amp;lt;/code&amp;gt; with your SSH public key embedded directly as an &amp;lt;code&amp;gt;authorized_keys&amp;lt;/code&amp;gt; entry -- unlike the other UM-T26 providers, Linode has no separate &amp;quot;register a key&amp;quot; resource for instance creation, so &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; skips that round trip -- and a &amp;lt;code&amp;gt;#cloud-config&amp;lt;/code&amp;gt; user-data document (base64-encoded into the instance&amp;#039;s metadata, which requires an image with Metadata service support; Ubuntu 24.04 has it): the same &amp;lt;code&amp;gt;docker-compose.yml&amp;lt;/code&amp;gt; and bootstrap script &amp;lt;code&amp;gt;GenericVpsProvisioner&amp;lt;/code&amp;gt; uploads over SSH, but run automatically by cloud-init on first boot.&lt;br /&gt;
# Creates a Linode Cloud Firewall with one inbound rule per declared port (your game port, at its own protocol) plus the rendezvous service&amp;#039;s TCP port, attached to the new instance (inbound policy &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; otherwise) -- a hard requirement here, since mp-host created the instance&amp;#039;s firewall itself, unlike a bring-your-own GenericVps box.&lt;br /&gt;
# Polls the instance until Linode assigns it a public IPv4 address, then probes &amp;lt;code&amp;gt;GET http&amp;amp;#58;//127.0.0.1:&amp;amp;lt;healthPort&amp;gt;/healthz&amp;lt;/code&amp;gt; over SSH, the same way GenericVps does.&lt;br /&gt;
# Watches &amp;lt;code&amp;gt;docker compose logs game&amp;lt;/code&amp;gt; over SSH for the self-registration line (&amp;lt;code&amp;gt;[MindAttic.Multiplayer] Join code: ABC-DEF-GHJ&amp;lt;/code&amp;gt;) and prints it.&lt;br /&gt;
&lt;br /&gt;
== Before you deploy ==&lt;br /&gt;
&lt;br /&gt;
Create a Linode personal access token (My Profile &amp;gt; API Tokens, with Linodes and Firewalls read/write scopes) and generate a disposable SSH keypair for mp-host&amp;#039;s &amp;lt;code&amp;gt;authorized_keys&amp;lt;/code&amp;gt; entry and its status/logs/update calls. Store both, plus your GHCR token, in the vault -- never in the repo, never on a shared command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host credentials set-linode --token &amp;amp;lt;Linode personal access token&amp;gt; \&lt;br /&gt;
  --ssh-user root --ssh-key C:\Users\me\.ssh\mp-host-linode --ssh-public-key C:\Users\me\.ssh\mp-host-linode.pub&lt;br /&gt;
mp-host credentials set-ghcr --username &amp;amp;lt;github-username&amp;gt; --token &amp;amp;lt;PAT with write:packages&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then deploy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host deploy --profile Linode --name prod-linode --package ./build/GenericVps \&lt;br /&gt;
  --image myorg/mygame --tag v1 \&lt;br /&gt;
  --rendezvous-url http&amp;amp;#58;//&amp;amp;lt;assigned-ip&amp;gt;:8080 \&lt;br /&gt;
  --public-address &amp;amp;lt;assigned-ip&amp;gt; --region us-east --size g6-nanode-1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--public-address&amp;lt;/code&amp;gt; has to be filled in after the first deploy prints the assigned IP (or scripted around it); &amp;lt;code&amp;gt;--region&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;--size&amp;lt;/code&amp;gt; default to Newark, NJ (&amp;lt;code&amp;gt;us-east&amp;lt;/code&amp;gt;)/&amp;lt;code&amp;gt;g6-nanode-1&amp;lt;/code&amp;gt; when omitted. Add &amp;lt;code&amp;gt;--dry-run&amp;lt;/code&amp;gt; first to see every Linode API call mp-host would make, without creating anything or spending money.&lt;br /&gt;
&lt;br /&gt;
== Open ports ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Port&lt;br /&gt;
! Protocol&lt;br /&gt;
! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| your game port&lt;br /&gt;
| UDP (or TCP for WebSocket)&lt;br /&gt;
| Players connect here; opened in the Linode Cloud Firewall mp-host creates.&lt;br /&gt;
|-&lt;br /&gt;
| 8080&lt;br /&gt;
| TCP&lt;br /&gt;
| The rendezvous service: players resolve join codes here; also opened in that firewall.&lt;br /&gt;
|-&lt;br /&gt;
| health port&lt;br /&gt;
| TCP, bound to 127.0.0.1&lt;br /&gt;
| &amp;lt;code&amp;gt;GET /healthz&amp;lt;/code&amp;gt;; not reachable from the internet, and not part of the firewall rule set.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Updating and tearing down ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mp-host update --profile Linode --name prod-linode --server-id &amp;amp;lt;id&amp;gt; --image myorg/mygame --tag v2 ...&amp;lt;/code&amp;gt; resolves the instance&amp;#039;s current IP from Linode&amp;#039;s API, then re-renders the compose file and runs &amp;lt;code&amp;gt;docker compose up -d&amp;lt;/code&amp;gt; over SSH in place -- an in-place rolling restart, the same mechanism GenericVps uses once a box exists. &amp;lt;code&amp;gt;mp-host destroy ... --yes&amp;lt;/code&amp;gt; deletes the instance outright (&amp;lt;code&amp;gt;DELETE /linode/instances/{id}&amp;lt;/code&amp;gt;) -- unlike GenericVps, there&amp;#039;s no box left over to keep or cancel.&lt;br /&gt;
&lt;br /&gt;
== Cost and sizing notes ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;g6-nanode-1&amp;lt;/code&amp;gt; (1 shared vCPU, 1 GB RAM) is Linode&amp;#039;s cheapest Shared CPU plan and suitable for a small-lobby real-time game server; a &amp;lt;code&amp;gt;g6-standard-1&amp;lt;/code&amp;gt; (2 GB RAM) is the next step up if your game needs more headroom. Newark, NJ (&amp;lt;code&amp;gt;us-east&amp;lt;/code&amp;gt;) is one of Linode&amp;#039;s cheapest/most-central US regions; pick whichever region is closest to your players. Linode (now Akamai Cloud Computing) bundles a transfer-pool allowance shared across your account&amp;#039;s instances rather than a per-instance cap, which is worth knowing if you run more than one server -- verify current plan ids, pricing and transfer pools against Linode&amp;#039;s live pricing page before committing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[Unity.Multiplayer]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/Unity.Multiplayer/blob/main/docs/articles/hosting/linode.md Unity.Multiplayer/docs/articles/hosting/linode.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Unity.Multiplayer]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>