Re: Best options for new PG instance

From: Steve Atkins <steve(at)blighty(dot)com>
To: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Best options for new PG instance
Date: 2018-03-05 17:51:53
Message-ID: 94BA3508-7A07-4A19-819D-BC4BEEB8561A@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> On Mar 5, 2018, at 8:53 AM, David Gauthier <davegauthierpg(at)gmail(dot)com> wrote:
>
> Hi:
>
> I'm going to be requesting a PG DB instance (v9.6.7) from an IT dept in a large corp setting. I was wondering if anyone could comment on the pros/cons of getting this put on a virtual machine vs hard metal ? Locally mounted disk vs nfs ?

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.

If performance isn't critical then a VM is great. If it is, you'll want to plan and maybe benchmark a bit to decide whether bare metal is going to be significantly better for what you're doing.

I wouldn't let NFS anywhere near it. I'd ideally want something that looks to the VM like a locally mounted disk, whether that be really local or served from a SAN or iSCSI or ...

https://www.slideshare.net/jkshah/best-practices-of-running-postgresql-in-virtual-environments has some hints on VM-specific things to consider.

Cheers,
Steve

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albrecht Dreß 2018-03-05 18:05:59 Re: Q: text palloc() size vs. SET_VARSIZE()
Previous Message David Gauthier 2018-03-05 16:53:22 Best options for new PG instance