Aquila
Running a game

Agones SDK

Run a game built against one of Agones' SDKs, including Unity, Unreal and C++.

A fleet with sdkProtocol: SDK_PROTOCOL_AGONES speaks the Agones SDK protocol. Each server gets a sidecar on the ports Agones' SDKs expect, gRPC on localhost:9357 and REST on localhost:9358, so a game built against any of Agones' SDKs runs with no Aquila code in it.

That covers the engines Agones supports:

  • Unity, through Agones' C# SDK
  • Unreal Engine, through Agones' Unreal plugin
  • C++, Go, Node.js, Rust and C#
  • Any language through the REST API

Fleet template

{
  "image": "registry.example.com/my-game:1.4.0",
  "ports": [
    { "name": "game", "containerPort": 7777, "protocol": "PORT_PROTOCOL_UDP" }
  ],
  "cpuMillicores": 1000,
  "memoryMib": 1024,
  "sdkProtocol": "SDK_PROTOCOL_AGONES"
}

The sidecar takes 32 MiB of memory and 0.01 vCPU out of each server's allowance, so give the template at least 64 MiB.

What maps to what

AgonesAquila
ReadyReady
AllocateAllocate
ReserveReserve
ShutdownShutdown
HealthHealth
GameServerGameServer
WatchGameServerWatch
SetLabelSetLabel
SetAnnotationSetAnnotation
Alpha().SetPlayerCapacity, PlayerConnectSetPlayers(count, capacity)

Counters and Lists are not supported.

Reserve lasts at most 1 hour. A duration of 0, which Agones treats as no limit, also reserves for 1 hour.

Labels and annotations read back under agones.dev/sdk-, the way Agones stores them. An allocation's label mode shows up to the game as agones.dev/sdk-mode.

Moving between Agones and Aquila

The game image stays the same in both directions. What changes is the side that talks to the control plane: Fleet manifests become fleets.v1 calls, and your matchmaker allocates through allocation.v1 in place of Agones' allocator service.

On this page