Reduce number of requests to pypi server #8449
-
Hi, We're hosting a private pypi server (pypicloud) and whenever Renovate runs, it hammers it and our server throws a bunch of 503 error. Some projects are using the same dependencies, yet within a single run, Renovate will make a request for the same dependency for each project. For example if 2 projects require pandas, Renovate will query pypi twice for pandas in a single run. I was under the impression dependency versions would be cached when first encountered during a run and subsequent projects using a same dependency would be served from the cache. Am I doing something wrong or am I misunderstanding how caching works?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
There should be caching, but I haven't verified it manually for a long time. A test would be:
|
Beta Was this translation helpful? Give feedback.
-
You can use concurrentRequestLimit to reduce parallel requests to your pypi server. |
Beta Was this translation helpful? Give feedback.
-
Hi @rarkins, Have you had a chance to look at this? I'm happy to open an issue with my findings if needed. Lowering the |
Beta Was this translation helpful? Give feedback.
Hi @rarkins, Have you had a chance to look at this? I'm happy to open an issue with my findings if needed.
Lowering the
concurrentRequestLimit
setting isn't an ideal solution as we would have to update all the repos we have using Renovate, possibly multiple times. Not very flexible.