#Question about PlayFab Multiplayer Server container lifecycle

7 messages · Page 1 of 1 (latest)

ornate remnant
#

Howdy, everyone! I was wondering if any of you have experience hosting game servers on PlayFab Multiplayer Servers.

My Unity game server is architected in a way that allows a single server process to host multiple game sessions at the same time. What I understand about PlayFab Multiplayer Servers, at the moment, is that PlayFab will spin up one container (i.e., one process) that is dedicated to a single game session. Is my understanding correct?

ornate remnant
#

Question about PlayFab Multiplayer Server process execution model

gentle stirrup
#

Yeah, in PlayFab MPS, one process/container is 1 session and it is allocated in that manner.

ornate remnant
#

Thank you, Rakesh!

Have others asked whether there is a workaround to this allocation mechanic? I really would like a single game server process to host multiple game sessions.

The reason is the resource utilization of my game server process is such that I can't run that many processes on a given machine.

Facts about my game server process
(collected from an AWS EC2 t2.small instance, 1 vCPU core, 2 GB RAM)

Resource utilization of game server process at idle (i.e. not hosting any games)

267 MB resident memory
8% utilization of a single CPU core

If this box was a PlayFab Multiplayer server, I would only be able to run maybe 6 or 7 processes due to the 2 GB RAM ceiling. Since my game is a two-player turn-based card game, that would mean the server could host, at maximum, 12 to 14 players concurrently.

Do I have the right read?

#

@gentle stirrup ^

#

I'm sure there are plenty of 1v1 games hosted on PlayFab Multiplayer servers. How did those game companies solve this problem?

ornate remnant
#

Question about PlayFab Multiplayer Server container lifecycle