Ubisoft and Google Cloud have announced an open source dedicated multiplayer game server called Agones. Agones uses Kubernetes to host and scale dedicated game servers.
You can view the technical breakdown of how it works down below….
Here’s an example of a typical dedicated game server setup:
Players connect to some kind of matchmaker service, which groups them (often by skill level) to play a match.
Once players are matched for a game session, the matchmaker tells a game server manager to provide a dedicated game server process on a cluster of machines.
The game server manager creates a new instance of a dedicated game server process that runs on one of the machines in the cluster.
The game server manager determines the IP address and the port that the dedicated game server process is running on, and passes that back to the matchmaker service.
The matchmaker service passes the IP and port back to the players’ clients.
The players connect directly to the dedicated game server process and play the multiplayer game against one another.
Building Agones on Kubernetes and open-source
Agones replaces the bespoke cluster management and game server scaling solution we discussed above, with a Kubernetes cluster that includes a custom Kubernetes Controller and matching GameServer Custom Resource Definitions,
With Agones, Kubernetes gets native abilities to create, run, manage and scale dedicated game server processes within Kubernetes clusters using standard Kubernetes tooling and APIs. This model also allows any matchmaker to interact directly with Agones via the Kubernetes API to provision a dedicated a game server.
Building Agones on top of Kubernetes has lots of other advantages too: it allows you to run your game workloads wherever it makes the most sense, for example, on game developers’ machines via platforms like minikube, in-studio clusters for group development, on-premises machines and on hybrid-cloud or full-cloud environments including Google Kubernetes Engine.
Kubernetes also simplifies operations. Multiplayer games are never just dedicated game servers—there are always supporting services, account management, inventory, marketplaces etc. Having Kubernetes as a single platform that can run both your supporting services as well as your dedicated game servers drastically reduces the required operational knowledge and complexity for the supporting development team.
Finally, the people behind Agones aren’t just one group of people building a game server platform in isolation. Agones, and the developers that use it, leverages the work of hundreds of Kubernetes contributors and the diverse ecosystem of tools that have been built around the Kubernetes platform.
Founding contributor to the Agones project, Ubisoft brought their deep knowledge and expertise in running top-tier, AAA multiplayer games for a global audience.