pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marek Florianczyk <franki@tpi.pl>
To: Jeff <threshar@torgo.978.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: performance problem - 10.000 databases
Date: 06 Nov 2003 15:38:43 +0100
Message-ID: <1068129523.10743.40.camel@franki-laptop.tpi.pl> (raw)
In-Reply-To: <20031106093725.20d3a43f.threshar@torgo.978.org>
References: <Pine.LNX.4.33.0311051403510.10816-100000@css120.ihs.com>
	<1068128463.10743.30.camel@franki-laptop.tpi.pl>
	<20031106093725.20d3a43f.threshar@torgo.978.org>

W liƛcie z czw, 06-11-2003, godz. 15:37, Jeff pisze: 
> On 06 Nov 2003 15:21:03 +0100
> Marek Florianczyk <franki@tpi.pl> wrote:
> 
> 
> > fsync = false                   
> 
> HOLD THE BOAT THERE BATMAN!
> 
> I would *STRONGLY* advise not running with fsync=false in production as
> PG _CANNOT_ guaruntee data consistancy in the event of a hardware
> failure.  It would sure suck to have a power failure screw up your nice
> db for the users!

Sure I know, but with WAL it will make fsync every some? seconds, right?
Maybe users data, aren't so critical ;) it's not for bank, only for www
sites. 
I will try with fsync=true also.

> 
> 
> > wal_buffers = 1024
> 
> This also seems high. come to think about it- shared_buffers is also
> high.
> 
> > commit_delay = 10000            
> 
> I could also read to data loss, but you'll get a speed increase on
> inserts.
> 
> One of the best things you can do to increase insert speed is a nice,
> battery backed raid card with a pile of disks hanging off of it.

we will put 4 disks for /data directory ( raid1+0 ) so it will have
performance and fault tolerance, so it should be OK.

greetings
Marek




view thread (50+ messages)  latest in thread

Message-ID: <1068129523.10743.40.camel@franki-laptop.tpi.pl>
Permalink:  ../1068129523.10743.40.camel@franki-laptop.tpi.pl/
Also on:    postgresql.org/message-id/1068129523.10743.40.camel@franki-laptop.tpi.pl

 · 

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-admin@postgresql.org
  Cc: franki@tpi.pl, threshar@torgo.978.org
  Subject: Re: performance problem - 10.000 databases
  In-Reply-To: <1068129523.10743.40.camel@franki-laptop.tpi.pl>
  References: <Pine.LNX.4.33.0311051403510.10816-100000@css120.ihs.com> <1068128463.10743.30.camel@franki-laptop.tpi.pl> <20031106093725.20d3a43f.threshar@torgo.978.org> <1068129523.10743.40.camel@franki-laptop.tpi.pl>

* 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