-
Notifications
You must be signed in to change notification settings - Fork 1k
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
POST _revs_diff request stuck without timing out #4373
Comments
Perhaps we're hitting a limit somewhere - disk usage, CPU, network. What about other requests, just _revs_diffs or do _bulk_docs also do this sometimes? See if there is a log on the server with that timestamp. Is there a difference between payloads (bodies) between the succeeding requests and failing ones? Also, 3.3.1 has a few _revs_diff optimizations, if you have a chance could try experimenting upgrading on a test instance to see if you still see the same issue. |
I checked
No, I used the same request.
Yes, will try this. Just want to gather some more evidence before trying with the new Couch version. |
It's strange that it times out before even making a connection. Could try also tweaking the number of replication workers, maybe try 1 instead of 4 https://docs.couchdb.org/en/stable/config/replicator.html
Or try increasing or decreasing the number of connections:
If there are proxies in between they could also be blocking or timing out the connections. It might help inspecting logs there for connection states. |
I tried v3.3.1 and was able to reproduce the error exactly after 800 requests on an EC2 m4.large VM. Some more observations:
On m4.large VM there are no proxies but on m4.xlarge there is a Nginx reverse proxy. Because of an internal requirement we had to wipe off the core databases on both the servers and I am now unable to reproduce this issue. There is not even a single error in 100 iterations with 50 concurrent threads! I guess I will populate more data and then test again. |
Can't try these right now because I am unable to reproduce the original issue. |
Hi, I have a setup consisting of CouchDB v3.2.2 and I am using PouchDB v7.3.1 in my mobile app.
I am noticing that
_revs_diff
requests are often getting stuck and taking several seconds, 15 seconds or more. See screenshots.Within the same session I can see other _revs_diff requests which respond in less than a second and from another device they are okay. I am a bit clueless because I am not able to create a reproducible example as this is happening occasionally when I keep PUTing to the app DB.
In one case the request got stuck in "Initial connection" for 18 minutes and till it timed out no syncing happened (maybe this should be filed in PouchDB repo).
What could be going on?
Thanks!
The text was updated successfully, but these errors were encountered: