Closed hopffgam closed 3 years ago
I few thoughts for discussion:
Essentially two approaches come to mind that could solve the issue:
My personal preference would be to reduce the frequency of the updates from every 2 minutes to e.g. every hour as a short term fix to check if that even helps. Extending the "link" processing could be done in a second step, while we just tell players to try again in one hour if they are to quick.
Cutting that big fetch down to even a 5 minute schedule would reduce its load by 60% without much of an added delay. 10 minutes would reduce it by 80%. Might also be useful to add something that tracks how often each API call is invoked so there’s less guesswork involved.
Registered https://github.com/Lichess4545/Chesster/pull/379 as an initial attempt to see how much an increased interval helps
Seems like the PR solved the immediate problems.
It takes a long time (sometimes close to a minute) for chesster to reply to messages (scheduling messages, summons, other chesster commands).
Initial investigation showed that this is likely due to chesster hitting rate limits in the slack workspace.