Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Multiplay scaling queries

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

  1. FlyingSquirrels

    FlyingSquirrels

    Joined:
    Sep 18, 2015
    Posts:
    84
    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:
    84
    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:
    84
    Can anyone point us in the right direction regarding the other questions?