Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 76F7AB5DBE6 for ; Thu, 18 Aug 2011 18:55:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 66647-08 for ; Thu, 18 Aug 2011 21:55:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm8.access.bullet.mail.sp2.yahoo.com (nm8.access.bullet.mail.sp2.yahoo.com [98.139.44.135]) by mail.postgresql.org (Postfix) with SMTP id 68C76B5DBE5 for ; Thu, 18 Aug 2011 18:55:50 -0300 (ADT) Received: from [98.139.44.106] by nm8.access.bullet.mail.sp2.yahoo.com with NNFMP; 18 Aug 2011 21:55:49 -0000 Received: from [98.139.44.85] by tm11.access.bullet.mail.sp2.yahoo.com with NNFMP; 18 Aug 2011 21:55:49 -0000 Received: from [127.0.0.1] by omp1022.access.mail.sp2.yahoo.com with NNFMP; 18 Aug 2011 21:55:49 -0000 X-Yahoo-Newman-Id: 594037.23224.bm@omp1022.access.mail.sp2.yahoo.com Received: (qmail 72948 invoked from network); 18 Aug 2011 21:55:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:From:To:Subject:Date:MIME-Version:Content-Type:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE; b=JPoGTiH0tHgVTkljfjy04XAhn+s+RmO/vglYR0G11amqMgvrqmjLLnu80e2pMUogIk+P1CtarbNvQjJOd2IXbKdcz8tGTmRJRLeX69W5nZApFLBCc62eck4iCiPq4aJSAosIY81uqacxzAH4KfvjpzKnHjfcUkBk5/hINtmFNWE= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1313704547; bh=0ohfttFeYt+69Y/Ne+GvXe/NHThG3Jq+1YZIUzKTnv0=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:From:To:Subject:Date:MIME-Version:Content-Type:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE; b=HbjrhNOQvARbvRrCbj/LvclIcZmaRz5sggS8xoJ9GuLcGrqRgJ/jql7/PDnFfJOqzy1HsXKCp4h2WMaqyFJYspvSAc9IRCk5WaAfxyBw4+jyrkWE0adTtFOjM6+F/JUYWDof0YlLoQUR1IFH/5r/G51hW/ps2szlS6Rw5dF3Lhc= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: hVqb8TsVM1me618sI_v1Y3oft5poHCk9kQ0OQQQi446pCkD .Sy2lzVHNLtVF9I4dz7YPvZeK5c_eH4573VKrX5YJ3hXvBRnllmIbqOjEQT0 XIiJi7oFISRsa_ATqNV4StHBN6ToaWlFj9VRsIW6hj9.TFRA4ZmZUmvozbwA cBU4k10A.jbXomrRU58m_ZMLipqAhq.ww3NVrfxhCXBjeOmIzs4vHbRbT.ap 3.OCnkvY2vBFeNDQa_e29UftrNLRNttPkuMOqk9JBhWXEfVI4F.gQ8nq29CT sfLQZm9xnYa3GsyaelgqYMhZ1mZq5WhGmEyZZbQGK0t523GXMfBaj5wBloMR lOmJi7KxUa2UBY6.21d2SDSjYfNQjupGDnYumToFRtSsiIa..Pt8ttndNSdt aoJtas79ms.Z2kZ2jI7do7Z0pIJFVb83fdsAy.DeBBTaXIXHBxsRo X-Yahoo-SMTP: EtaTb4uswBBSx2FARGS8Y34d19mAO_hWIqN6lfRu55otbg-- Received: from BERNICE (midgems@71.135.45.172 with login) by smtp102.sbc.mail.gq1.yahoo.com with SMTP; 18 Aug 2011 14:55:47 -0700 PDT Message-ID: From: "Midge Brown" To: Subject: settings input for upgrade Date: Thu, 18 Aug 2011 14:55:50 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01F5_01CC5DB6.EBA98C10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.996 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, KHOP_DYNAMIC=0.902, RCVD_IN_DNSWL_NONE=-0.0001, UNPARSEABLE_RELAY=0.001 X-Spam-Level: X-Archive-Number: 201108/229 X-Sequence-Number: 44676 This is a multi-part message in MIME format. ------=_NextPart_000_01F5_01CC5DB6.EBA98C10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm in the process of upgrading from postgres 7.4.8 to 9.0.4 and wanted = to run my decisions past some folks who can give me some input on = whether my decisions make sense or not.=20 It's basically a LAPP configuration and on a busy day we probably get in = the neighborhood of a million hits. Server Info: - 4 dual-core AMD Opteron 2212 processors, 2010.485 MHz - 64GB RAM - 16 67GB RAID 1 drives and 1 464GB RAID 10 drive (all ext3) - Linux 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 = x86_64 GNU/Linux There are 3 separate databases: DB1 is 10GB and consists of multiple tables that I've spread out so that = the 3 most used have their data and indexes on 6 separate RAID1 drives, = the 3 next busiest have data & index on 3 drives, and the remaining = tables and indexes are on the RAID10 drive. The WAL for all is on a = separate RAID1 drive. The others are very write-heavy, started as one table within the = original DB, and were split out on an odd/even id # in an effort to get = better performance: DB2 is 25GB with data, index, and WAL all on separate RAID1 drives. DB3 is 15GB with data, index, and WAL on separate RAID1 drives. Here are the changes I made to postgres.conf. The only differences = between the conf file for DB1 and those for DB2 & 3 are the port and = effective_cache_size (which I made slightly smaller -- 8 GB instead of = 10 -- for the 2 write-heavy DBs). The 600 max connections are often idle = and don't get explicitly closed in the application. I'm looking at = connection pooling as well. autovacuum =3D on autovacuum_analyze_threshold =3D 250 autovacuum_freeze_max_age =3D 200000000 autovacuum_max_workers =3D 3 autovacuum_naptime =3D 10min autovacuum_vacuum_cost_delay =3D 20ms autovacuum_vacuum_cost_limit =3D -1 autovacuum_vacuum_threshold =3D 250 checkpoint_completion_target =3D 0.7 checkpoint_segments =3D 64 checkpoint_timeout =3D 5min checkpoint_warning =3D 30s deadlock_timeout =3D 3s effective_cache_size =3D 10GB log_autovacuum_min_duration =3D 1s maintenance_work_mem =3D 256MB max_connections =3D 600 max_locks_per_transaction =3D 64 max_stack_depth =3D 8MB shared_buffers =3D 4GB vacuum_cost_delay =3D 10ms wal_buffers =3D 32MB wal_level =3D minimal work_mem =3D 128MB ANY comments or suggestions would be greatly appreciated. =20 Thank you, Midge ------=_NextPart_000_01F5_01CC5DB6.EBA98C10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm in the process of = upgrading from=20 postgres 7.4.8 to 9.0.4 and wanted to run my decisions past some folks = who can=20 give me some input on whether my decisions make sense or not. =
 

It's=20 basically a LAPP configuration and on a busy day we probably get in = the=20 neighborhood of a million hits.

 
Server Info:
 
- 4 dual-core AMD Opteron 2212 = processors,=20 2010.485 MHz
- 64GB RAM
- 16 67GB RAID 1 drives and 1 = 464GB RAID 10=20 drive (all ext3)
- Linux 2.6.18-164.el5 #1 SMP Thu Sep = 3 03:28:30=20 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
 
There are 3 separate = databases:
 
DB1 is 10GB and consists of multiple = tables that=20 I've spread out so that the 3 most used have their data and indexes = on 6=20 separate RAID1 drives, the 3 next busiest have data & index on 3 = drives, and=20 the remaining tables and indexes are on the RAID10 drive. The WAL for = all is on=20 a separate RAID1 drive.
 
The others are very write-heavy, = started as one=20 table within the original DB, and were split out on an odd/even id # in = an=20 effort to get better performance:
 
DB2 is 25GB with data, index, and WAL = all on=20 separate RAID1 drives.
DB3 is 15GB with data, index, and WAL = on separate=20 RAID1 drives.
 
Here are the changes I made to = postgres.conf. The=20 only differences between the conf file for DB1 and those for DB2 & 3 = are the=20 port and effective_cache_size (which I made slightly smaller -- 8 GB = instead of=20 10 -- for the 2 write-heavy DBs). The 600 max connections are often idle = and=20 don't get explicitly closed in the application. I'm looking at = connection=20 pooling as well.
 

 autovacuum =3D=20 on

 autovacuum_analyze_threshold = =3D=20 250

 autovacuum_freeze_max_age =3D=20 200000000

 autovacuum_max_workers =3D=20 3

 autovacuum_naptime =3D=20 10min

 autovacuum_vacuum_cost_delay = =3D=20 20ms

 autovacuum_vacuum_cost_limit = =3D=20 -1

 autovacuum_vacuum_threshold  =3D 250

 checkpoint_completion_target = =3D=20 0.7

 checkpoint_segments =3D=20 64

 checkpoint_timeout =3D=20 5min

 checkpoint_warning =3D=20 30s

 deadlock_timeout =3D = 3s

 effective_cache_size =3D=20 10GB

 log_autovacuum_min_duration  =3D 1s

 maintenance_work_mem =3D=20 256MB

 max_connections =3D = 600

 max_locks_per_transaction =3D=20 64

 max_stack_depth =3D = 8MB

 shared_buffers =3D = 4GB

 vacuum_cost_delay =3D=20 10ms

 wal_buffers=20 =3D 32MB

 wal_level =3D=20 minimal

 work_mem =3D=20 128MB

 

 
ANY comments or suggestions would be = greatly=20 appreciated.  
 
Thank you,
Midge
 
 
 
 
------=_NextPart_000_01F5_01CC5DB6.EBA98C10--