Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

MasterServer capacity ? need to be scaled?

Discussion in 'Multiplayer' started by Oksana-Iashchuk, Feb 28, 2013.

  1. Oksana-Iashchuk

    Oksana-Iashchuk

    Joined:
    Sep 10, 2012
    Posts:
    126
    By code it is not clean is client MasterServer.API hold connection with MasterServer or not. MasterServer has limit in 1000 connections.
    So My questions:
    1. is MasterServer Client API works like this: connect > db requiest> disconnect ?
    2. If not that is way how to scale MasterServer
    3. MasterServer capacity, If any have experiences with self deployed MasterServer capacity - how many users it can support?

    Thanks in Advance!


    UPDATE: I did test and confirm that Master Server keep connection active for servers and clients, so in total it gives only 1000 concurrent user. For client it keep connection till request finish. in my case I did request hosts and it keep client connect to server for ~ 1 minuties.
     
    Last edited: Feb 28, 2013
  2. Tomo-Games

    Tomo-Games

    Joined:
    Sep 20, 2010
    Posts:
    223
    :rolleyes:
    You can change most of the default MasterServer settings liking raising the number of max connections by passing some options when starting your server like: masterserver -c 5000 for example.

    TO SEE ALL OPTIONS
    Code (csharp):
    1. ./MasterServer -?
    2.  
    3. Accepted parameters are:
    4.     -p    Listen port (1-65535)
    5.     -d    Daemon mode, run in the background
    6.     -l    Use given log file
    7.     -e    Debug level (0=OnlyErrors, 1=Warnings, 2=Informational(default), 2=FullDebug)
    8.     -c    Connection count
    9.     -s    Statistics print delay (minutes)