game-common / pragma.fleet / FleetPlugin / selectServerPool /

selectServerPool #

abstract suspend fun selectServerPool(gameServerVersion: <ERROR CLASS>, gameServerZone: <ERROR CLASS>, extHostRequest: ExtHostRequest): ServerPool

Determine what server pool should be used when allocating game servers for the given game allocation request details. The ServerPool.serverPoolId is used to differentiate the queues of capacity allocation requests.

Used by

  • FleetService: Executed when processing a game allocation request from the GameInstanceService.

Parameters #

gameServerVersion

The requested game server version for the game allocation.

gameServerZone

The requested game server zone for the game allocation.

extHostRequest

A custom data payload for the game allocation.