Question

Need to create more connection Pool around 300?what can be done?

Now I wanted to create 300 connection pools in database connection and now I’m able to create only 22 connections. So my load speed is very low it’s taking a long time. If I need to expand this connection pool is there any extra payment I have to do? if so what I have to do? what is a price for the same?. Kindly provide me solution for the same. kindly look into this.

The operating system is Ubuntu.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

Each PostgreSQL cluster allows 25 backend connections per 1 GB of RAM minus 3 connections per node that are reserved for maintenance.

Plan Size Available Backend Connections
1 GB RAM 22
2 GB RAM 47
4 GB RAM 97
8 GB RAM 197
16 GB RAM 397
32 GB RAM 797
64 GB RAM 1,597

We support connection pooling, backed by PgBouncer, to increase the number of available concurrent client connections. Clusters provide 25 connections per 1 GB of RAM. 3 connections per cluster are reserved for maintenance, and all remaining connections can be allocated to connection pools.

For more connections, Scale up your instance size see link below with plan size and Available Backend Connection

https://docs.digitalocean.com/products/databases/postgresql/#postgresql-limits

However, these PgBouncer pool connections are currently limited to 20 per database. If you require more PgBouncer pool connections than this, contact support.

Hope that this helps. Regards, Priyanka