From: Michael Paquier <michael@paquier.xyz>
To: Steve Atkins <steve@blighty.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Best options for new PG instance
Date: Tue, 6 Mar 2018 10:11:32 +0900
Message-ID: <20180306011132.GE1878@paquier.xyz> (raw)
In-Reply-To: <94BA3508-7A07-4A19-819D-BC4BEEB8561A@blighty.com>
References: <CAMBRECAotnuAuYrG8-utgc+2x5OSXzOb8QmQYMgS9egsT1jtFQ@mail.gmail.com>
<94BA3508-7A07-4A19-819D-BC4BEEB8561A@blighty.com>
On Mon, Mar 05, 2018 at 09:51:53AM -0800, Steve Atkins wrote:
> I've been running postgresql instances on ESXi VMs for years with no
> issues. I've not benchmarked them, but performance has been good
> enough despite their running on fairly wimpy hardware. Performance
> relative to bare metal is probably going to be dominated by disk IO,
> and depending on how you're hosting VMs that can be anywhere between
> pretty good and terrible - in a large corporation I'd expect it to be
> pretty good. Just don't skimp on RAM - having your hot data in the
> filesystem cache is always good and can make high latency storage
> tolerable.
One thing to be very careful about is the backup strategy of your
PostgreSQL instances. I would recommend primarily using PostgreSQL
in-core tools like pg_basebackup to do the work and make sure that
things are consistent. Users tend to rely a lot on VM snapshots,
particularly quiesced snapshots without memory footprint, but those
could be the cause of data corruption if not using appropriate
pre-freeze and post-thaw scripts in charge of freezing the partitions
while the snapshot is taken (use different partitions for the data
folder, pg_wal and logs as well!), so this would require extra work from
your side. I am talking about VMware technology here, still you can
find a lot of so-told-useful VM-level backup technologies. Be careful
with those as well when it comes to database backups. You can think
that your backups taken are safe, until you see a corruption which has
been hidden for weeks.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, steve@blighty.com
Subject: Re: Best options for new PG instance
In-Reply-To: <20180306011132.GE1878@paquier.xyz>
References: <CAMBRECAotnuAuYrG8-utgc+2x5OSXzOb8QmQYMgS9egsT1jtFQ@mail.gmail.com> <94BA3508-7A07-4A19-819D-BC4BEEB8561A@blighty.com> <20180306011132.GE1878@paquier.xyz>
* 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