PGBOUNCER连接池,用于连接到同一Postgres DB的多个弹簧启动应用程序?
只想验证PG保镖连接池的这种情况是否可能
- 具有 a 和 b spring boot应用程序连接到同一db(仅读取操作)的弹簧启动应用程序
- 确实会提供PGBOUNCER共享连接池在相同应用程序的多个实例中? - 是否有一种方法可以在应用中分享 50:50 。
在PGBOUNCER方面的这些设置上的任何见解或文档都会有所帮助
Just want to validate if this scenario of PG bouncer Connection pooling is possible
- Have A and B spring boot application connecting to the same DB (only read operations)
- Does PGbouncer share connection pools across multiple instances of the same applications?
- Is there a way to share like 50:50 among applications.
Any insights or docs on these settings on pgbouncer side would be helpful
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的PGBOUNCER在同一应用程序的多个实例上共享连接池。配置
pool_size
定义了每个用户组合每个数据库的连接池大小。因此,如果同一应用程序的多个实例使用相同的用户,则在跨实例共享连接池。请注意,它不会与其他数据库或用户组合共享池。
Yes PGBouncer shares connection pools across multiple instances of the same applications. The config
pool_size
defines the connection pool size for per database per user combination. So if multiple instances of same application use same user then the connection pool is shared across instances.Note that it doesn't share pool with other database or user combination.