Concepts
The pieces of Aquila and how they fit together.
Organizations
An organization is your studio on Aquila. It holds members, API keys, fleets, matchmaking queues and an audit log. Members sign in to the console and have a role: owner, admin, developer or billing.
A new organization starts as pending. It can invite members and create keys, but it runs no servers until Aquila approves it. An approved organization runs on nodes of its own, which no other organization's servers share.
API keys
Scripts, backends and matchmakers authenticate with an organization API key. Each key carries scopes:
| Scope | Allows |
|---|---|
fleets:read | Listing fleets, their servers, logs and metrics |
fleets:write | Creating, updating, scaling and deleting fleets |
allocate | Allocating servers through allocation.v1 |
matchmaking | Creating and watching matchmaking tickets |
The secret is shown once, when the key is created. Every call a key makes lands in the audit log under its name.
Keep keys in your backend. A key acts on the whole organization, so one shipped in a game server image or a game client lets anyone who extracts it do whatever its scopes allow, on every fleet you have. Game servers never need a key, since the SDK token covers what they do.
Fleets
A fleet is a set of identical game servers in one zone, all started from the same template:
- The image, its command, arguments and environment.
- Up to four ports, each UDP, TCP or both.
- CPU and memory per server.
- Labels, which allocation can select on.
- How the server reports its state: through the Aquila SDK, an Agones SDK, or no SDK.
A fleet has either a fixed number of replicas or an autoscaler. The autoscaler keeps a buffer of Ready servers on top of the allocated ones, as a count or a percentage, between a minimum and a maximum.
Changing the template replaces the idle servers. Allocated servers keep the old template until their match ends.
Game servers
A game server is one running copy of your image with its own public address and ports. It moves through a set of states, from Starting through Ready and Allocated to Shutdown. The lifecycle page covers each one.
A server runs one match, or one session, and then shuts down. The fleet starts a fresh one in its place, so no state carries over between matches.
Allocation
Allocation hands a Ready server to a match. Your matchmaker calls allocation.v1.Allocate with the fleet name, and gets back the server's address and ports in the same call. The server moves to Allocated, which keeps it out of scale-down until it shuts down.
An allocation can select servers by label and set labels and annotations on the server it picks. The game reads them through the SDK, which is how it learns who is in the match.
Allocation never waits. With no Ready server it fails at once with RESOURCE_EXHAUSTED, and your matchmaker retries. See Allocating from your own matchmaker.
Zones
A zone is one Aquila cluster in one region. A fleet lives in exactly one zone, and each zone serves its own allocation endpoint at allocate-<zone>.aquilahosting.com, so allocation keeps working in a zone while another is down.
eu is live today. To run in several regions, create a fleet of the same name in each zone.
Matchmaking
Aquila can run the matchmaker for you. You create a queue in the console with its rules: how many teams, how many players per team, which attributes must be equal, and which numbers, such as skill, must sit within a range that widens while players wait.
Your game backend creates a ticket per player or party in that queue and watches it. When the queue forms a match, Aquila allocates a server for it and the ticket comes back with the address. The server reads the match, its teams and player ids from an annotation.
Managed matchmaking is optional. A studio with its own matchmaker calls allocation.v1 directly. See Matchmaking for queues, tickets and the match the server reads.