Re: Postgresql in a Virtual Machine

From: Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>
To: Lee Nguyen <leemobile(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgresql in a Virtual Machine
Date: 2013-11-25 20:08:14
Message-ID: 5293AE2E.5020405@archidevsys.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 26/11/13 09:01, Lee Nguyen wrote:
> Hi,
>
> Having attended a few PGCons, I've always heard the remark from a few
> presenters and attendees that Postgres shouldn't be run inside a VM.
> That bare metal is the only way to go.
>
> Here at work we were entertaining the idea of running our Postgres
> database on our VM farm alongside our application vm's. We are
> planning to run a few Postgres synchronous replication nodes.
>
> Why shouldn't we run Postgres in a VM? What are the downsides? Does
> anyone have any metrics or benchmarks with the latest Postgres?
>
> Thanks!
>
> Lee Nguyen
I suspect that it is a performance and reliability issue that affects
any ACID database.

AFAIK, in a VM there is less certainty as to when a disk I/O is actually
complete and safely on the disk.

I think vm's are probably fine for testing, but not for production.

Cheers,
Gavin

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Heikki Linnakangas 2013-11-25 20:19:05 Re: Postgresql in a Virtual Machine
Previous Message Lee Nguyen 2013-11-25 20:01:53 Postgresql in a Virtual Machine