-
Notifications
You must be signed in to change notification settings - Fork 113
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
uwsgi kills connection when the geojson is huge #224
Comments
FWIW, here are some tests I did in a Digital Ocean instance (1GB RAM, 1 CPU) by running:
Results per number of requests:
So the limit with these specs and default timeout is about 11500 nodes per layer. |
great work @PabloCastellano! |
Seems caching is a good idea but I believe it is just a part of the solution ;) |
gonna try this directly on the server and see what happens: |
some other possible performance improvements were outlined here: but I think the best thing would be to work on #116 and implement loading data incrementally through the websocket protocol, in theory it should be very fast! |
It seems that this is a common problem. I've found an RFC that deals with this problem exactly:
|
I'm trying to import all the Guifi.net nodes (about 28k) in nodeshot.
Once the synchronizer has finished, none of the nodes are shown in the map.
Investigating a bit I have discovered that uwsgi sees the connection to the geojson is taking too much and kills it after 20 seconds.
You can see it failing here:
https://46.101.190.150/api/v1/layers/guifinet-world/nodes.geojson
Any possible workarounds?
The text was updated successfully, but these errors were encountered: