Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCvPB-0000ZV-2g for pgsql-performance@arkaria.postgresql.org; Tue, 05 Mar 2013 17:11:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCvPA-0000eW-FJ for pgsql-performance@arkaria.postgresql.org; Tue, 05 Mar 2013 17:11:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCvP8-0000dS-W6 for pgsql-performance@postgresql.org; Tue, 05 Mar 2013 17:11:55 +0000 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCvP6-0001zB-6x for pgsql-performance@postgresql.org; Tue, 05 Mar 2013 17:11:54 +0000 Received: by mail-we0-f176.google.com with SMTP id s43so6372687wey.21 for ; Tue, 05 Mar 2013 09:11:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=dcU7v1oAdxfosT4UdnV0Qz8cPEhKrA8LtAD4zAVVOsg=; b=bMY5Hu9m2I/xvNpotvgyoCEQT4M/VOuoEzAKFxqrXPNBLA/zFcAKIweFsz9LvzAaZK 45wov7MZGjmuGy9frrtIMfpkHImlsX1YlUykP9cW6KdG7zmpnPzBS4L7YeWFUy72o4e/ 3aJn1DvbGtow88mgGv8AYv2t4C4TIgxr0dd3VBH4HBuCXliSK2kZ1nFDjy9/ALbLbAVE PY/sNoEvqQxdsqC8e1HqE0VrtnaLIztAi40CiSo0T+Bgx9BQa1V0fpWpZRgC4Nh8CBYf zT59gNiJ+9Trbov85sREGY9UqysJi7wyPIbGHg2hkUg9zBIojGy5gUnZ2yrOySBN5zir I+NA== X-Received: by 10.204.151.72 with SMTP id b8mr9648679bkw.132.1362503511498; Tue, 05 Mar 2013 09:11:51 -0800 (PST) Received: from [192.168.1.61] (0905ds8-ar.0.fullrate.dk. [90.185.25.212]) by mx.google.com with ESMTPS id z6sm7386000bkv.11.2013.03.05.09.11.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Mar 2013 09:11:50 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: New server setup From: =?iso-8859-1?Q?Niels_Kristian_Schj=F8dt?= In-Reply-To: <1362501244.18199.YahooMailNeo@web162905.mail.bf1.yahoo.com> Date: Tue, 5 Mar 2013 18:11:48 +0100 Cc: Craig James , "pgsql-performance@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <2565FD8E-B7AD-4FCD-AB59-F16401FBD140@autouncle.com> References: <4D6D1410-2208-4DAA-BD64-69BE1FD94E55@autouncle.com> <06578781-EDBB-4BA9-B926-60491EBA5907@autouncle.com> <1362501244.18199.YahooMailNeo@web162905.mail.bf1.yahoo.com> To: Kevin Grittner X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQlqG8oLIvbR2FXSI3kbZRt1xIR5ZPYdPXWXEPyszvOJHXAPo98Gqa4gN4NTAMOiStyJW1IB X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Thanks, that was actually what I just ended up doing yesterday. Any suggest= ion how to tune pgbouncer? BTW, I have just bumped into an issue that caused me to disable pgbouncer a= gain actually. My web application is querying the database with a per reque= st based SEARCH_PATH. This is because I use schemas to provide country base= d separation of my data (e.g. english, german, danish data in different sch= emas). I have pgbouncer setup to have a transactional behavior (pool_mode = =3D transaction) - however some of my colleagues complained that it sometim= es didn't return data from the right schema set in the SEARCH_PATH - you wo= uldn't by chance have any idea what is going wrong wouldn't you? #################### pgbouncer.ini [databases] production =3D [pgbouncer] logfile =3D /var/log/pgbouncer/pgbouncer.log pidfile =3D /var/run/pgbouncer/pgbouncer.pid listen_addr =3D localhost listen_port =3D 6432 unix_socket_dir =3D /var/run/postgresql auth_type =3D md5 auth_file =3D /etc/pgbouncer/userlist.txt admin_users =3D postgres pool_mode =3D transaction server_reset_query =3D DISCARD ALL max_client_conn =3D 500 default_pool_size =3D 20 reserve_pool_size =3D 5 reserve_pool_timeout =3D 10 ##################### Den 05/03/2013 kl. 17.34 skrev Kevin Grittner : > Niels Kristian Schj=F8dt wrote: >=20 >> So my question is, should I also get something like pgpool2 setup >> at the same time? Is it, from your experience, likely to increase >> my throughput a lot more, if I had a connection pool of eg. 20 >> connections, instead of 300 concurrent ones directly? >=20 > In my experience, it can make a big difference. If you are just > using the pooler for this reason, and don't need any of the other > features of pgpool, I suggest pgbouncer. It is a simpler, more > lightweight tool. >=20 > --=20 > Kevin Grittner > EnterpriseDB: http://www.enterprisedb.com > The Enterprise PostgreSQL Company --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance