pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Brain <dbrain@bandwidth.com>
To: pgsql-performance@postgresql.org
Subject: 1 or 2 servers for large DB scenario.
Date: Fri, 25 Jan 2008 11:36:52 -0500
Message-ID: <A97726DE-B9AA-470A-A111-32DB145CAD4A@bandwidth.com> (raw)

Hi,

I'd appreciate some assistance in working through what would be the  
optimal configuration for the following situation.

We currently have one large DB (~1.2TB on disk), that essentially  
consists of 1 table with somewhere in the order of 500 million rows ,  
this database has daily inserts as well as being used for some semi- 
data mining type operations, so there are a fairly large number of  
indices on the table.  The hardware storing this DB (a software RAID6)  
array seems to be very IO bound for writes and this is restricting our  
insert performance to ~50TPS.

As we need to achieve significantly faster insert performance I have  
been considering splitting  the table into 'new' and 'old' data,  
making inserts into the 'new' table (which will also help as there are  
really 1 insert, an update and some selects involved in populating the  
table), then moving the data over to the 'old' DB on a periodic  
basis.  There would be new hardware involved, I'm thinking of HW RAID  
10 to improve the write performance.

The question really is, is it best to use two separate servers and  
databases (and have to come up with some copy process to move data  
from one to another), or to just add the faster storage hardware to  
the existing server and create a new tablespace for the 'new data'  
table on that hardware.  Doing this would enable us to potentially  
move data more easily from new to old (we can't use partitioning  
because there is some logic involved in when things would need to be  
moved to 'old').  Are there any global resources that make just adding  
the faster storage to the existing box a bad idea (the wal_log springs  
to mind - although that could be moved too), that would make adding an  
additional server instead a better idea?

Also are there any settings that might boost our TPS on the existing  
hardware (sync=off isn't an option.. (-: ).  I have already  
significantly increased the various buffers, but this was mainly to  
improve select performance?

Verson of  Postgresql is 8.2.3.

Thanks,

David.






view thread (7+ messages)  latest in thread

Message-ID: <A97726DE-B9AA-470A-A111-32DB145CAD4A@bandwidth.com>
Permalink:  ../A97726DE-B9AA-470A-A111-32DB145CAD4A@bandwidth.com/
Also on:    postgresql.org/message-id/A97726DE-B9AA-470A-A111-32DB145CAD4A@bandwidth.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: dbrain@bandwidth.com
  Subject: Re: 1 or 2 servers for large DB scenario.
  In-Reply-To: <A97726DE-B9AA-470A-A111-32DB145CAD4A@bandwidth.com>
  References: <A97726DE-B9AA-470A-A111-32DB145CAD4A@bandwidth.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox