Re: Deploying PostgreSQL on CentOS with SSD and Hardware RAID - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Deploying PostgreSQL on CentOS with SSD and Hardware RAID
Date
Msg-id CAHyXU0y1w7JoVxk7d9Swf4FbEuo3KjiCwA+OJZbow+CpPXKV2w@mail.gmail.com
Whole thread Raw
In response to Re: Deploying PostgreSQL on CentOS with SSD and Hardware RAID  ("Evan D. Hoffman" <evandhoffman@gmail.com>)
Responses Re: Deploying PostgreSQL on CentOS with SSD and Hardware RAID  (Steve Clark <sclark@netwolves.com>)
Re: Deploying PostgreSQL on CentOS with SSD and Hardware RAID  (Steve Clark <sclark@netwolves.com>)
List pgsql-general
On Fri, May 10, 2013 at 11:34 AM, Evan D. Hoffman
<evandhoffman@gmail.com> wrote:
> I'd expect to use a RAID controller with either BBU or NVRAM cache to handle
> that, and that the server itself would be on UPS for a production DB.  That
> said, a standby replica DB on conventional disk is definitely a good idea in
> any case.

Sadly, NVRAM cache doesn't help (unless the raid controller is
managing drive writes down to the flash level and no such products
exist that I am aware of).  The problem is that provide guarantees the
raid controller still needs to be able to tell the device to flush
down to physical storage.  While flash drives can be configured to do
that (basically write-through mode), it's pretty silly to do so as it
will ruin performance and quickly destroy the drive.

Trusting UPS is up to you, but if your ups does, someone knocks the
power cable, etc you have data loss.  With on-drive capacitor you only
get data loss via physical damage or corruption on the drive.

merlin


pgsql-general by date:

Previous
From: "Evan D. Hoffman"
Date:
Subject: Re: Deploying PostgreSQL on CentOS with SSD and Hardware RAID
Next
From: Sergey Koposov
Date:
Subject: pg_basebackup, requested WAL has already been removed