Aquila
Running a game

Without an SDK

Run a server that reports nothing, with Ready from a probe and the session ending on exit.

A fleet with withoutSdk: true runs servers that never call Aquila. Use it for an image you cannot change, or a server that is one process per session.

Ready

With a readiness probe, the server is Ready once the probe passes. Without one, it is Ready as soon as the container runs.

{
  "image": "registry.example.com/my-game:1.4.0",
  "ports": [
    { "name": "game", "containerPort": 7777, "protocol": "PORT_PROTOCOL_UDP" }
  ],
  "cpuMillicores": 1000,
  "memoryMib": 1024,
  "withoutSdk": true,
  "readiness": {
    "tcp": { "port": 7778 },
    "periodSeconds": 2
  }
}

A probe checks the game container the way Kubernetes probes do. It is one of:

  • http: passes on a 2xx or 3xx answer from a path and port.
  • tcp: passes once a port accepts a connection.
  • exec: passes when a command run inside the container exits 0.

Kubernetes TCP probes cannot check a UDP port, so a UDP-only server needs an HTTP or TCP port of its own for the probe, or an exec command.

Ending the session

The process exiting cleanly after Ready ends the session, and the fleet replaces the server. A crash before Ready restarts the container. Repeated crashes show as Crashing, and the fleet replaces the server if it has not recovered within 2 minutes.

A liveness probe restarts a stuck container. After Ready, that restart ends the server too.

Players

Without the SDK the server cannot report players directly. Serve a Prometheus endpoint on a port of its own, and name the gauges that hold the count and capacity:

{
  "metrics": { "port": 9100, "path": "/metrics" },
  "players": { "count": "players_online", "capacity": "players_max" }
}

The zone scrapes the endpoint every 30 seconds. The port is never public.

On this page