pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Peter Kovacs <maxottovonstirlitz@gmail.com>
Cc: Shane Ambler <pgsql@sheeky.biz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Carlos Moreno <moreno_pg@mochima.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Two hard drives --- what to do with them?
Date: Tue, 27 Feb 2007 11:23:49 -0800
Message-ID: <1172604229.10824.365.camel@dogma.v10.wvs> (raw)
In-Reply-To: <b6e8f2e80702270027s1c684f42vb3eca0a1d87ed5fb@mail.gmail.com>
References: <45DF3B15.1070609@3times25.net>
	<45DF94BF.6050904@3times25.net>
	<45E0A500.1010707@commandprompt.com>
	<45E104DD.3080600@mochima.com>
	<2055.1172375931@sss.pgh.pa.us>
	<b6e8f2e80702251411q5a27eb53re9c2a299b8e3880a@mail.gmail.com>
	<1172526666.10824.315.camel@dogma.v10.wvs>
	<b6e8f2e80702261611j598b1771g3dbcfc9bb1f9cdf2@mail.gmail.com>
	<1172535914.10824.327.camel@dogma.v10.wvs>
	<45E3BC09.60100@Sheeky.Biz>
	<b6e8f2e80702270027s1c684f42vb3eca0a1d87ed5fb@mail.gmail.com>

On Tue, 2007-02-27 at 09:27 +0100, Peter Kovacs wrote:
> I wonder if running a machine on a UPS + 1 hot standby internal PS is
> equivalent, in terms of data integrity, to using battery backed write
> cache. Instinctively, I'd think that UPS + 1 hot standby internal PS
> is better, since this setup also provides for the disk to actually
> write out the content of the cache -- as you pointed out.

It's all about the degree of safety. A battery-backed cache on a RAID
controller sits below all of these points of failure:

* External power
* Power supply
* Operating system

and with proper system administration, can recover from any transient
errors in the above. Keep in mind that it can only recover from
transient failures: if you have a long blackout that outlasts your UPS
and cache battery, you can still have data loss. Also, you need a very
responsive system administrator that can make sure that data gets to
disk in case of failure.

Let's say you have a RAID system but you rely on the UPS to make sure
the data hits disk. Well, now if you have an OS crash (caused by another
piece of hardware failing, perhaps), you've lost your data.

If you can afford it (in terms of dollars or performance hit) go with
the safe solution.

Also, put things in context. The chances of failure due to these kinds
of things are fairly low. If it's more likely that someone spills coffee
on your server than the UPS fails, it doesn't make sense to spend huge
amounts of money on NVRAM (or something) to store your data. So identify
the highest-risk scenarios and prevent those first.

Also keep in mind what the cost of failure is: a few hundred bucks more
on a better RAID controller is probably a good value if it prevents a
day of chaos and unhappy customers.

Regards,
	Jeff Davis




view thread (16+ messages)  latest in thread

Message-ID: <1172604229.10824.365.camel@dogma.v10.wvs>
Permalink:  ../1172604229.10824.365.camel@dogma.v10.wvs/
Also on:    postgresql.org/message-id/1172604229.10824.365.camel@dogma.v10.wvs

 · 

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: pgsql@j-davis.com, maxottovonstirlitz@gmail.com, pgsql@sheeky.biz, tgl@sss.pgh.pa.us, moreno_pg@mochima.com
  Subject: Re: Two hard drives --- what to do with them?
  In-Reply-To: <1172604229.10824.365.camel@dogma.v10.wvs>
  References: <45DF3B15.1070609@3times25.net> <45DF94BF.6050904@3times25.net> <45E0A500.1010707@commandprompt.com> <45E104DD.3080600@mochima.com> <2055.1172375931@sss.pgh.pa.us> <b6e8f2e80702251411q5a27eb53re9c2a299b8e3880a@mail.gmail.com> <1172526666.10824.315.camel@dogma.v10.wvs> <b6e8f2e80702261611j598b1771g3dbcfc9bb1f9cdf2@mail.gmail.com> <1172535914.10824.327.camel@dogma.v10.wvs> <45E3BC09.60100@Sheeky.Biz> <b6e8f2e80702270027s1c684f42vb3eca0a1d87ed5fb@mail.gmail.com> <1172604229.10824.365.camel@dogma.v10.wvs>

* 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