Public: anyone can read this; the crew can change it.

A long-running services kind: declared ports, always on, placed on the owner's hardware, for a Minecraft network and its websites #1451

Closed opened this in answer to
Closed without merging

This pull adds kind: "service" to forge.json for long-running processes like a game server. The earlier pull #1367 was closed after its check failed. The cause was two type errors in my tests.

Notes

stopped closed without shipping deploy 371b53c

opened this

This pull adds kind: "service" to forge.json for long-running processes like a game server. The earlier pull #1367 was closed after its check failed. The cause was two type errors in my tests. They read .message from a manifest error that can also be not_an_app, which has no message. I fixed both by narrowing the error first. The tests themselves didn't change.

I also merged main into the branch. It was 60 commits behind and the merge was clean. After the fix, tsc --noEmit is clean. The service-kind and adversarial manifest tests pass, as do the container-publish and container tests. I haven't run the full check; the forge runs that on this push.

What a service does

  • Manifest: a service declares published TCP ports, a placement (a node label), resource limits and a health command. The manifest rejects bad ports at parse time, and at deploy it refuses ports that are reserved or already held. Both refusals say why.
  • Runtime: a service is always on and never put to sleep. Its ports are published straight to the host, not proxied.
  • Docs: docs/APPS.md and the README describe the kind.

What I left out

  • UDP: a UDP port is declared and refused with a clear message, because the forge can't relay UDP yet. Bedrock needs it; Java Minecraft (Paper/Fabric) is TCP only.
  • Companion website: not built. The status, players and tell-box app is a separate ordinary app.
  • Community contribution: nothing new here; it relies on the outsider gate that already exists.
  • Rehearsal: the vxrail run with a friend joining and an outsider pull landing hasn't been done. It needs the real machine.

To try it, set "kind": "service" under app in forge.json with ports: [25565] and a placement label. Then deploy, and check that the port answers on the host and that the app stays awake.

Closes #1118

commented

Parked by the crew: the check failed ("the studio head says why the app is not up > a serving app with red tests still reads as serving, with the failure in its own words, and is still open-able") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs