Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send estimated wait time when joining a queue #930

Open
BlackYps opened this issue Nov 15, 2022 · 5 comments
Open

Send estimated wait time when joining a queue #930

BlackYps opened this issue Nov 15, 2022 · 5 comments

Comments

@BlackYps
Copy link
Collaborator

The server already logs the wait time of each search party. This data would need to be aggregated for rating brackets and sent to the client, which can then display it to the user.
Challenges:

  • The wait times vary a lot depending on how many people are online, so we would need to factor that in somehow
  • we need to come up with a fallback if a particular rating bracket has too little data available

Implementation idea:
We log the wait time together with total online players at that moment and the rating of the matched players. With some linear regressions we can then provide an estimate for a given rating and current number of online players

@benjamin-lawson
Copy link
Contributor

I've opened a PR to add the player count of the queue as a dimension to the matchmaking search time metric in Prometheus. How does one take a look at these metrics for PROD?

@BlackYps
Copy link
Collaborator Author

BlackYps commented Mar 7, 2024

You need to ask our server admins for access. But I am not sure how having this info in Prometheus is supposed to help?
The wait time calculations need to happen in the server, so they can be sent to the clients

@benjamin-lawson
Copy link
Contributor

You need to ask our server admins for access. But I am not sure how having this info in Prometheus is supposed to help? The wait time calculations need to happen in the server, so they can be sent to the clients

My idea was to add the dimension to prometheus to get initial regression modelling for the server calculations. We'd need a sufficiently large sample size for the linear regression so we can store it in prometheus to perform the regression. The other option is to store it in the DB for queue, # of players in the queue, and time it took to find a match.

@BlackYps
Copy link
Collaborator Author

BlackYps commented Mar 7, 2024

I'd say it should be stored in the db otherwise it would be hard to get the info out of Prometheus again

@benjamin-lawson
Copy link
Contributor

I'd say it should be stored in the db otherwise it would be hard to get the info out of Prometheus again

Okay too easy. I'll close that PR and get to work on that change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants