Skip to content
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

How can I extend the postgresql connection in just one node.js instance. #971

Open
dadiorchen opened this issue May 3, 2021 · 1 comment

Comments

@dadiorchen
Copy link

Hi, I'm using the mapnik in my tile server, and use Express to handle the request, and for every request I will initial a mapnik instance to render the tile image, it works fine, the question is, it seems that there is a limitation for multiple request, the PostgreSQL shows that the concurrent connection count is low, how can I set up the node app to increase the concurrent connection to the DB to improve the throughout?
Thanks.

@arbrisseaux
Copy link

You can try to increase the environement variable UV_THREADPOOL_SIZE and you can use a node.js pooling library to reuse the same map objects between requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants