问题原文
原帖链接 · Morenz · CC BY-SA 3.0
I'm about to migrate my (tiny) server farm to Google Cloud Platform and so giving the architecture a small restyling. One of the changes I'm about to commit is the introduction of pgBouncer, to manage pooling (ATM I'm having only one DB server with Debian Jessie).
But I cant' find anywhere (or I need improving my Googling skills :-) ) this kind of information:
If I install pgBouncer on the same machine where PostgreSQL runs, will it impact performance? (my primary concerns are about I/O, while CPU and memory can always be improved). Is it better to install it somewhere else?
Thanks in advance
已采纳解答
原帖链接 · Craig Miskell · CC BY-SA 3.0
Unless you're on the very extremes of performance requirements (or on woefully underpowered hardware), I wouldn't expect running pgbouncer on the DB server would be noticeable. However, what you might like to consider is the network connection between the DB clients and the server. Specifically, if you put pgbouncer on the client, then it will make the 'over-the-network' connections to the DB server and keep them alive avoiding repeated TCP handshakes, and the client will then be making a really quick local connection to pgbouncer. If you put pgbouncer on the DB server, then there is no advantage network connection-wise (the client has to make a TCP connection to the remote DB server), and all pgbouncer is doing is being a connection pool.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
