pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steven Lembark <lembark@wrkhors.com>
To: pgsql-general@lists.postgresql.org
Cc: lembark@wrkhors.com
Subject: Re: Using AWS ephemeral SSD storage for production database workload?
Date: Mon, 29 Jan 2018 13:41:45 -0600
Message-ID: <20180129134145.7f96c816@wrkhors.com> (raw)
In-Reply-To: <CALpo98Ufx4hYZeJy2Ae59mBrxtuC25LKx-aPbTU6ijR4RrD9ng@mail.gmail.com>
References: <CALpo98USPhKVAPYDLf=S92cE8tYtxd4Vi1Wh=AqjGe=wH3SuNQ@mail.gmail.com>
	<a47d8499-e275-fc76-02a8-357448228dfe@2ndquadrant.com>
	<CALpo98Ufx4hYZeJy2Ae59mBrxtuC25LKx-aPbTU6ijR4RrD9ng@mail.gmail.com>

On Mon, 29 Jan 2018 23:27:32 +0530
Pritam Barhate <pritambarhate@gmail.com> wrote:

> In short, I am just trying to learn from other people's experience.

This is identical to solutions that use tmpfs on linux for 
database storage or dealing with a fully failed storage 
system. Think about what you'd do if a RAID controller 
fried and botchd your entire array at once. You'll feel
just the same way if a box using ephemeral storage goes
down.

Your application needs to handle restarting transactions
and either a reverse proxy/load-balancer or client-side
switchover.

Depending on your tolerance for data loss you might need
three servers up, on as a secondary failover if the primary
fails so that you (pretty much) always have two servers up
to maintain the data. The last server only has to last long
enough for a restart and recovery so it might not have to
be very heavy duty, it's main purpose is to keep the database
alive long enough to recover the "real" server.

Q: Why not just use RDS?

It'll be simpler.

-- 
Steven Lembark                                       1505 National Ave
Workhorse Compuing                                 Rockford, IL 61103
lembark@wrkhors.com                                    +1 888 359 3508




view thread (10+ messages)  latest in thread

Message-ID: <20180129134145.7f96c816@wrkhors.com>
Permalink:  ../20180129134145.7f96c816@wrkhors.com/
Also on:    postgresql.org/message-id/20180129134145.7f96c816@wrkhors.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-general@postgresql.org
  Cc: lembark@wrkhors.com
  Subject: Re: Using AWS ephemeral SSD storage for production database workload?
  In-Reply-To: <20180129134145.7f96c816@wrkhors.com>
  References: <CALpo98USPhKVAPYDLf=S92cE8tYtxd4Vi1Wh=AqjGe=wH3SuNQ@mail.gmail.com> <a47d8499-e275-fc76-02a8-357448228dfe@2ndquadrant.com> <CALpo98Ufx4hYZeJy2Ae59mBrxtuC25LKx-aPbTU6ijR4RrD9ng@mail.gmail.com> <20180129134145.7f96c816@wrkhors.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