Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Artur Czapiewski · Jun 03, 2020 at 06:05 PM · MatchmakingCustom Game Servers

Is it possible to host multiple game sessions on one vm instance?

I have a game that is very lightweight. When testing server on something like raspberry pi I was able to fit on it 20-25 game sessions handling 50 users. Hosting one session per vm instance would be really inefficient. Is it possible to host multiple game sessions on one server instance using built in matchmaking system?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jun 04, 2020 at 05:21 AM

Yes. It is possible.

However, in terms of your scenario, you may just change the configuration of “Servers per machine” when creating the build. For example, 20-25 servers by machine will do the job.

If you want to host multiple sessions in single server instance, it will need extra efforts to be done. In the server build, there will be mechanism that needs to be defined on your own to host games for different groups of players. Implementing SignalR on your server build is also a workaround. In addition, you will need to implement Azure function/Cloud Script or even an external agent server to help you create the server instance and cache so that later players can join the same one. Besides, since the Multiplayer server 2.0 is session-based game server service, it is not recommended to let an instance run for too long.

Comment
Artur Czapiewski

People who like this

1 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Artur Czapiewski · Jun 04, 2020 at 06:37 AM 0
Share

Thank you for your answer. If I may I have one more question in this topic. Is there any lmit on how much "servers per machine" I have? I understand performance hit with having too many server but I need this information to know when optimization will be useless and I just need more instances.

avatar image SethDu ♦ Artur Czapiewski · Jun 04, 2020 at 07:01 AM 0
Share

By default, the VM can only configue 60 ports for all sessions, hence 60 servers per machine is the maximum limit.

avatar image Artur Czapiewski SethDu ♦ · Jun 04, 2020 at 08:15 AM 0
Share

Thank you for help

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Confused about servers 1 Answer

    Is having a a "dummy" region selection rule the best practice if we use a single region? 1 Answer

    500 Internal Server Error on GetCurrentGames 1 Answer

    External Server Match making confusion 1 Answer

    [Unity] Any new server build I upload seems to break matchmaking 2 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges