Skip to content

Conversation

@bdach
Copy link
Collaborator

@bdach bdach commented Nov 21, 2025

Mostly resolves #346.

Using a gradual rollout strategy where RANK_LOOKUP_CACHE_TRAFFIC_RATIO of requests (defaults to 5%) are routed to the relevant rank lookup cache instance post-ppy/osu-global-rank-lookup-cache#3, and the rest is still serviced by web.

The goal is to see how hard the lookup cache falls over as load increases and potentially tweak its behaviour in response.

Mostly resolves
ppy#346.

Using a gradual rollout strategy where `RANK_LOOKUP_CACHE_TRAFFIC_RATIO`
of requests (defaults to 5%) are routed to the relevant rank lookup cache
instance post-ppy/osu-global-rank-lookup-cache#3,
and the rest is still serviced by web.

The goal is to see how hard the lookup cache falls over as load
increases and potentially tweak its behaviour in response.
@bdach bdach requested a review from peppy November 21, 2025 11:42
@bdach bdach self-assigned this Nov 21, 2025
@bdach bdach moved this from Next up to Pending Review in osu! untitled project Nov 21, 2025
{
SentrySdk.CaptureMessage($"Failed to retrieve score rank from lookup cache: received status code {response.StatusCode}, content: {responseContent}",
SentryLevel.Warning);
DogStatsd.Increment("osu.user_rank_cached_lookup", 1, tags: ["type:scores", "result:fail"]);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is an existing counter and therefore if this is OK that one will need some slight adjusting to tags.

@bdach bdach added the blocked label Nov 25, 2025
@bdach
Copy link
Collaborator Author

bdach commented Nov 25, 2025

Blocking for now because the rank lookup service is already so slow on new tables that I wouldn't put a sliver of load on it. Will regroup there and figure out how to leverage ES better so it's not so dog slow.

Edit: See ppy/osu-global-rank-lookup-cache#4

@bdach bdach removed the blocked label Dec 4, 2025
@peppy peppy moved this from Pending Review to Backburner in osu! untitled project Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Backburner

Development

Successfully merging this pull request may close these issues.

Replace API query for score rank

1 participant