It's basically a LAPP configuration and on a busy day we probably get in the neighborhood of a million hits.
autovacuum = on
autovacuum_analyze_threshold = 250
autovacuum_freeze_max_age = 200000000
autovacuum_max_workers = 3
autovacuum_naptime = 10min
autovacuum_vacuum_cost_delay = 20ms
autovacuum_vacuum_cost_limit = -1
autovacuum_vacuum_threshold = 250
checkpoint_completion_target = 0.7
checkpoint_segments = 64
checkpoint_timeout = 5min
checkpoint_warning = 30s
deadlock_timeout = 3s
effective_cache_size = 10GB
log_autovacuum_min_duration = 1s
maintenance_work_mem = 256MB
max_connections = 600
max_locks_per_transaction = 64
max_stack_depth = 8MB
shared_buffers = 4GB
vacuum_cost_delay = 10ms
wal_buffers = 32MB
wal_level = minimal
work_mem = 128MB
I am not sure what decisions you actually refer to here: in your
posting I can only see description of the current setup but no
decisions for the upgrade (i.e. changed parameters, other physical
layout etc.).
> 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:
Did it pay off? I mean you planned to increase performance and did
this actually happen? Apart from reserving IO bandwidth (which you
achieved by placing data on different disks) you basically only added
reserved memory for each instance by separating them. Or are there
any other effects achieved by separating (like reduced lock contention
on some globally shared resource, distribution of CPU for logging)?
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
--
Sent via pgsql-performance mailing list (pgsql-pe...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
> �work_mem = 128MB
I'd lower this unless you are certain that something like 16MB just
isn't gonna get similar performance. Even with mostly connections
idle, 128M is a rather large work_mem. Remember it's per sort, per
connection. It can quickly cause the kernel to dump file cache that
keeps the machine running fast if a couple dozen connections run a
handful of large sorts at once. What happens is that while things run
smooth when there's low to medium load, under high load the machine
will start thrashing trying to allocate too much work_mem and then
just slow to a crawl.
----- Original Message -----From: Scott MarloweTo: Midge BrownSent: Saturday, August 20, 2011 9:01 PMSubject: Re: [PERFORM] settings input for upgrade
OK, I though the config change was the diff for the other two database
and not for 9.0.
> The splitting of one table to two separate databases was done on 7.4 and did
> make a positive change in write performance. I was including that
> information only in an attempt to provide as much detail as possible.
Good to know! Thanks!
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
--
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.
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.
wal_buffers = 32MB
autovacuum_analyze_threshold = 250autovacuum_naptime = 10min
autovacuum_vacuum_threshold = 250
vacuum_cost_delay = 10ms
deadlock_timeout = 3s
-- Greg Smith 2ndQuadrant US gr...@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us
All of these random changes brings up the REAL subject, that changes
should be made by measuring performance before and after each change
set and justifying each change. Just randomly throwing what seem like
good changes at the database is a surefire recipe for disaster.
----- Original Message -----From: Scott MarloweTo: Midge BrownSent: Saturday, August 20, 2011 9:01 PMSubject: Re: [PERFORM] settings input for upgrade
----- Original Message -----From: Greg SmithSent: Sunday, August 21, 2011 12:20 PMSubject: Re: [PERFORM] settings input for upgrade
I was pushed to put the new version into production over the weekend, which at least may provide me with some accurate feedback, and so will see what happens for a bit before addressing the disk/drive layout.