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 ignat-nee-1 · Aug 28, 2017 at 05:08 PM · Matchmaking

GetCurrentGameRequest with heartbeat

Greetings.
I'm want to create matchmaking system, where players get list of suitable servers and join them. But some server can be "dead" for some reasons.
Each "alife" matchmaking server send heartbeat state every 10 seconds by RefreshServerInstanceHeartbeat method. If i'm got it correctly from related topics, when i'm send GetCurrentGameRequest method, i'm get list of active games with some heartbeat delay (about 2 minutes). But when i'm called it, i'm recieve all my game servers, even dead.
My game's title id is 59DD.

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 Brendan · Aug 28, 2017 at 05:51 PM

It sounds like you're saying that you have a set of externally hosted servers which may or may not be allowing players to join, and you're using https://api.playfab.com/documentation/client/method/GetCurrentGames to get the list of all available servers, for purposes of matchmaking.

What RefreshServerInstanceHeartbeat does is to let our matchmaker know that your server is still active, and so available for matchmaking (it is initially added to the list the matchmaker maintains when you call https://api.playfab.com/documentation/server/method/RegisterGame.

If you want the games to not be returned in the list of session the matchmaker is tracking, the simplest thing to do would be to use https://api.playfab.com/documentation/server/method/DeregisterGame to remove it from the list.

Comment

People who like this

0 Show 4 · 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 ignat-nee-1 · Aug 29, 2017 at 08:04 AM 0
Share

Thanks for advice, but "Deregister game" method is not for my case.
There is possibility than my server can crash,or can be closed by system, and "Deregister Game" just can't execute, but server can still be returned in servers list. I wan't to prevent this issue.
So, as i get it correctly, i can't exclude "dead" servers with "heartbeat" option?

avatar image Brendan ♦♦ ignat-nee-1 · Aug 29, 2017 at 08:40 AM 0
Share

We maintain a list of active servers in the matchmaker. When you register a server, and when it calls the heartbeat API, that tells us to make sure to keep the server in that list. It's not an active socket connection. So when your server goes "dead", if there's no way for it to notify us via the deregister API call, it will be removed from the list when it misses the time limit for the heartbeat call, which is two minutes.

avatar image ignat-nee-1 Brendan ♦♦ · Aug 29, 2017 at 11:18 AM 0
Share

Seems pretty logical, but my instances then i'm launch yesterday still returns in via GetCurrentGames method. Is there any mistmatch than i'm didn't noticed?
Otherwise, is there any opportunity to reduce 2 minutes timeout?

Show more comments

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

    Does calling PlayFabMatchmakerAPI.StartGame without any available servers return a failure callback? 2 Answers

    What does the matchmaker ticket "WaitingForServer" mean? (Matchmaking 2.0) 3 Answers

    Match 2-4 players together 1 Answer

    getting started multiplayer on Nintendo Switch with UE4 2 Answers

    How to define attribute path for Matchmaking Rule with Player Entity 1 Answer

    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