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.

Multiplayer game development: servers and hosting.

Discussion in 'Multiplayer' started by MikeHergaarden, Jan 31, 2012.

  1. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027


    For anyone who is exploring the server/hosting part of running multiplayer Unity games: I've written a blog post about our experience with developing (indie) multiplayer games and what this requires in regards of hosting/servers and the costs.

    I hope this can save people "growth problems" once your game is succesful :).

    http://blog.m2h.nl/2012/01/server-side-of-game-development.html
     
    Last edited: Jan 31, 2012
    Anisoropos likes this.
  2. siliwangi

    siliwangi

    Joined:
    Sep 25, 2009
    Posts:
    303
    Great real world tips tricks, some few addition if one looking for more affordable dedicated solutions would be goes to un-managed instead of managed server, of course the major turning point would be when something goes 'null' then you need to contact them upon the fix request, so it's more like reactive than pro-active service(once every 5,10,15,30 minutes server monitoring), would be not much trouble if the provider technical resources and architecture already good enough and plus if you have already know some way around in managing and configuring services.

    I assume that when you are expanding your service you were already separated the database server into another box?, what was your networking middle-ware? photon? if so what was the database back-end?
     
  3. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    Yep, we indeed also don't use any SLA (unmanaged), this saves quite some costs but we need to monitor the uptime etc.

    With Cubelands for example? No not yet, to save costs at first.
    It ran perfectly fine on 2 boxes: one for database+webserver and one server only for the game downloads. That that main box was also running quite some other websites.

    We could've moved the database to a seperate machine when load required it.

    Cubelands used Unity networking, for any current/future games I use the Photon cloud.
    As for the database back-end we used MYSQL and a webserver to handle the user data/login etc.
     
    Last edited: Feb 1, 2012
  4. siliwangi

    siliwangi

    Joined:
    Sep 25, 2009
    Posts:
    303
    What was your highest client connected simultaneously?, when this happens what would be your estimated/real disk I/O?, and how is the other system resources going under massive load?, any specific kernel(if assuming you are using linux,*bsd) tuning or optimization?
    as afaik mysql quite hefty on disk i/o if given without any proper optimization, followed any mysqltuner script recommendation?, is it the vanilla version of mysql (oracle) or some specific 'branch' of it like percona server, and what was the server specifications for the mysql download server box?, plus is it nginx or apache?. Sorry for the question , this is just interesting :).
     
  5. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    What was your highest client connected simultaneously?
    - not very sure anymore. Between 500 - 1000. So it wasn't enormous yet.

    when this happens what would be your estimated/real disk I/O? and how is the other system resources going under massive load?
    Never really measured.

    any specific kernel(if assuming you are using linux,*bsd) tuning or optimization?
    as afaik mysql quite hefty on disk i/o if given without any proper optimization, followed any mysqltuner script recommendation?, is it the vanilla version of mysql (oracle) or some specific 'branch' of it like percona server, and what was the server specifications for the mysql download server box?, plus is it nginx or apache?. Sorry for the question , this is just interesting .

    We run centos + lighttpd and a "normal" mysql installation. I can't say I'm a tweaking expert, only followed some tips here and there, but I'm sure experts can tweak -way- more performance out of such a setup.
     
  6. PrimeDerektive

    PrimeDerektive

    Joined:
    Dec 13, 2009
    Posts:
    3,092
    Did cubelands actually have headless dedicated unity servers governing game logic though? I though it was a player-hosted built-in networking type of thing.
     
  7. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    Nope
    Yeah correct, player hosted Unity networking indeed. Only about 10-30% of the servers were connectable because of this.
     
  8. PrimeDerektive

    PrimeDerektive

    Joined:
    Dec 13, 2009
    Posts:
    3,092
    Right, I just meant in a player-hosted game, concurrent users would really have no impact on your server performance, right?
     
  9. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    True, only in regards of the game download, login/registration, friendlist/statistics/etc and website visits.