Add a random splay to repology API requests #32293
Replies: 2 comments 6 replies
-
Converted to discussion. First of all, thanks again for your continued support of Renovate users. Is there any chance you could approximate the same type of graph for the Mend-hosted app alone? I don't know how much of this traffic is by self-hosted users vs the Mend app. For the Mend app, I would have expected traffic to be evenly spread, because of time the lookups and cache expiries should approach randomness. For self-hosted users, they probably set cron jobs to run on their repos every hour, or at the start of every x hours, and the lookups you see probably peak as a result of that, or partially as a result of that. |
Beta Was this translation helpful? Give feedback.
-
No. How can I tell it from self-hosted instances?
Makes sense. Is there a chance to add a dedicated method to call renovate bot from cron and mention it in the docs? I don't think that forcing it in any way is needed at this point as the peaks already are not too sharp, but it would help if at least some of new installations use that and randomize poll timing. |
Beta Was this translation helpful? Give feedback.
-
Describe the proposed change(s).
Below is a graph of requests rate to Repology API. Hourly peaks are caused by renovate bot. Though it's not critical, it would be better if the load was evenly distributed, improving high-percentile latencies and capacity.
FYI, some weeks ago I've rewritten API endpoint in Rust, which increased capacity tenfold and allowed to remove 1RPS rate limit for all renovate clients.
Beta Was this translation helpful? Give feedback.
All reactions