-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
REST api timing out when publish takes longer than 1 min #1204
Comments
Thank you for submitting this issue.
Could you add some detail as to whether you're using some kind of nginx proxy or anything in that direction? |
We have a traefik reverse proxy in between, but even using the command line the publishing in this case takes > 1min, so I think it is independent from the network setup. It might be just that the disk we are using is slower (network drive), so it takes longer. Or the publishing time is more related to the number of packages (as stated above 15k+ packages), than the size. The size in our case was actually "rather small" (< 15 GB). Our workaround so far is to have the publishing done with |
What I thought could be the issue, is that the connection is being timed out by your proxy and not the API. |
Yeah, just tried it locally without anything in between. Currently takes around 30 secs as we recently wiped the repo, so it is not timing out yet. I can do a test setup with more packages to see if it then times out eventually, though maybe I'll just wait a week or two till we reached the amount of packages again 😅 |
Ok, perfect. I'll be interested to hear if it worked. |
We are running aptly with a local repository and are using the REST api to trigger publishing.
We are currently doing a stress test of our setup and the publishing time increases with the number of packages.
Once the publishing time increases to > 1min, the REST call fails with
curl: (22) The requested URL returned error: 504
Detailed Description
Our test repo has around 23K packages, so the publishing takes quite a while.
We already turned of content publishing of the packages (see #421), which moved the critical number of packages before we get a 504 from the http server from 15k to 23k.
Using the command line the publishing still works fine at that point.
Is there a way to set the timeout for the REST api server?
Context
We could do some workaround, e. g. calling the command line via ssh instead, but I think in general it makes sense that the REST api also works with large number of packages.
Possible Implementation
Expose the (timeout) settings for the api http server.
The text was updated successfully, but these errors were encountered: