-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add metrics for certain data structure sizes #609
Comments
@cleborys noticed:
|
To collect thoughts from @46bit's PR for the future: I believe server/server/matchmaker/matchmaker_queue.py Lines 134 to 135 in a024a2f
server/server/matchmaker/matchmaker_queue.py Lines 144 to 145 in a024a2f
and server/server/ladder_service.py Line 218 in 542eb72
https://github.com/46bit/faforever-server/blob/a024a2fe8c8b7b905a5bdd41795f8134ee01e677/server/ladder_service.py#L250 Even if we would expect that there is a linear relation between |
One could also write a wrapper class for a dictionary that accepts a metric endpoint on instantiation and automatically reports the new length on insertion and deletion, if one is so inclined. |
There are some dictionaries that hold strong references to their values which we should post some metrics about to make sure they aren't growing without bound. Mostly I want to know "how many elements are in the dictionary".
server/server/ladder_service.py
Line 53 in ccf349e
server/server/player_service.py
Line 25 in ccf349e
server/server/game_service.py
Line 46 in ccf349e
server/server/matchmaker/matchmaker_queue.py
Line 49 in ccf349e
The text was updated successfully, but these errors were encountered: