unity-game-enginecloudunity-cloud-build

Unity Game server hosting and scaling


Yesterday I faced an issue with Server Hosting and it showed me that I’m not really understanding how scaling is working on unity cloud, I will explain the architecture of my project and problem, so if you notice anything wrong at any level please explain it to me, as I’m newbie with the cloud.

Project

so it’s a card game that has to be played by 4 players and they play turn by turn, so I designed the project as follow :

Problem

Yesterday, I got lot of players using my game, and all the 100 servers were allocated, so many players couldn’t join a server to play

how can I handle this ?


Solution

  • I figured it out ! the scaler is doing it’s job ! I just didn’t give him enough time to create new servers, and as I set minimum required servers on the fleet to 1 which means I told the scaler to wait until the machine is 99% full then you create new servers which is not good, it’s recommended to always keep 30% of needed resources available 1. so for my use-case I had to set the minimum available servers to 30 or something like this