-
Notifications
You must be signed in to change notification settings - Fork 6
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
Tiles from mapnik with nodejs #60
Comments
What is the error exactly?
The developers of https://github.com/cartodb/Windshaft might be able to help you. In general my first advise would be to increase the # of concurrent connections allowed by your database. I think Postgres defaults to 100.
The higher that number the better performance. I would increase to at least max_size = Number of CPUS. |
The exact error is: Error: Postgis Plugin: Null connection |
Make sure you are running the latest node-mapnik version so that you are not getting hit by mapnik/mapnik#2725 |
Hello! Thanks for advice. I increased the max_size parameter and number of postgres connections. That solved problems for my test case. |
I use similar code from https://github.com/pocketIlmatto/mapnik_node_tile_server UPD. |
The reason was in mapnik style xml, I forgot tor remove this line |
I' m running a script to get tiles from mapnik with nodejs server. I get tiles rendered on at a time. But we i request tiles from browser eg. on map page reload, the server reports a POSTGIS extension error. This probably happens when too many concurrent requests happens.
Does anyone have any experience with mapnik and nodejs how to handle many concurrent requests on nodejs server with mapnik bindings???
Thanks!
My script:
The text was updated successfully, but these errors were encountered: