Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Multiplay scaling queries

Discussion in 'Game Server Hosting' started by FlyingSquirrels, Sep 1, 2023.

  1. FlyingSquirrels

    FlyingSquirrels

    Joined:
    Sep 18, 2015
    Posts:
    82
    Can someone from Unity (or someone with Multiplay experience) confirm the following 4 questions about scaling in Multiplay?

    1) When setting max available servers, Unity shows this prompt saying 'more servers may be made available at no extra cost'. We have seen this in our case where we set max servers to 2 but we get 7 servers available. From these 7 available servers you can only allocate 2 of them - aka you cannot use them. Is this the expected behavior? If so, this text is very misleading and the 'extra 5 servers' should be hidden.
    upload_2023-9-1_18-14-54.png

    2) In the scaling settings documentation here: Scaling settings (unity.com), this statement is contradicted because it says that any available server incurs costs. The question here relates to the first one, that is do available servers incur costs even though we set max to a smaller number?
    upload_2023-9-1_18-16-49.png

    3) Once you exceed the number of servers on a single machine, Multiplay will automatically spool another machine to cater to the next server's requirements when you allocate again. This is all well and good but the machine is never switched off even if all servers are deallocated. That is if you have 7 servers on a machine and we allocate again, we get 14 available servers now - and most likely paying for 14 servers instead of 8. Is there any configuration setting that can allow machines to be turned off when they're not needed anymore? (aka when servers are deallocated)

    4) Is there an easy way to monitor costs when testing so we can get an idea of CPU/Memory and bandwidth usage?

    Thank you!
     
  2. jackward84

    jackward84

    Joined:
    Jan 26, 2017
    Posts:
    87
    In regards to (3) - the servers get switched off after a certain amount of time when they are not in use - this is a TTL value which I think lives at the fleet level. It can't be changed without asking UGS to do it. When you do not connect to your servers overnight, you'll notice the server page is blank the next day as they have been automatically drained.

    There is a admin API which does allow you to kill individual servers yourself, but I don't think it's available in the UI.
     
  3. FlyingSquirrels

    FlyingSquirrels

    Joined:
    Sep 18, 2015
    Posts:
    82
    Thanks!
    For anyone else: The shutdown TTL listed here does that job - thanks. Unity Services Web API docs
     
  4. FlyingSquirrels

    FlyingSquirrels

    Joined:
    Sep 18, 2015
    Posts:
    82
    Can anyone point us in the right direction regarding the other questions?