I know my question is unusual but I really need to do it.
I have multiple Web sites and services. Every site or service starts in it's own Jetty server. It is very useful for me and I don't want to refuse this architecture. Every app have 3 pooled datasources (c3p0 ComboPooledDataSource) for 3 databases. And... there are minimum 120 opened connections to my PGSQL server. And 3000 maximum =)
Is there any way to share connection pool between my applications or Jetty servers?
The answer was suggested to me by a friend. And it is very simple =)
I should use PgBouncer .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.