Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl2m0-0000GL-MV for pgsql-performance@arkaria.postgresql.org; Mon, 25 Nov 2013 20:28:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vl2m0-0003OO-3u for pgsql-performance@arkaria.postgresql.org; Mon, 25 Nov 2013 20:28:48 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl2ly-0003Mu-Is for pgsql-performance@postgresql.org; Mon, 25 Nov 2013 20:28:46 +0000 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl2lv-0000cS-HT for pgsql-performance@postgresql.org; Mon, 25 Nov 2013 20:28:45 +0000 Received: from mfilter18-d.gandi.net (mfilter18-d.gandi.net [217.70.178.146]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 4E01FA80B0; Mon, 25 Nov 2013 21:28:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter18-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter18-d.gandi.net (mfilter18-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id liepOCjuNDik; Mon, 25 Nov 2013 21:28:39 +0100 (CET) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-098-027-058-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 0B322A808E; Mon, 25 Nov 2013 21:28:37 +0100 (CET) Message-ID: <5293B2F4.10102@dunslane.net> Date: Mon, 25 Nov 2013 15:28:36 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Heikki Linnakangas CC: Lee Nguyen , pgsql-performance@postgresql.org Subject: Re: Postgresql in a Virtual Machine References: <5293B0B9.1060200@vmware.com> In-Reply-To: <5293B0B9.1060200@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 11/25/2013 03:19 PM, Heikki Linnakangas wrote: > On 25.11.2013 22: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? > > I've also heard people say that they've seen PostgreSQL to perform > worse in a VM. In the performance testing that we've done in VMware, > though, we haven't seen any big impact. So I guess the answer is that > it depends on the specific configuration of CPU, memory, disks and the > software. Synchronous replication is likely going to be the biggest > bottleneck by far, unless it's mostly read-only. I don't know if > virtualization will have a measurable impact on network latency, which > is what matters for synchronous replication. > > So, I'd suggest that you try it yourself, and see how it performs. And > please report back to the list, I'd also love to see some numbers! > > Yeah, and there are large numbers of public and/or private cloud-based offerings out there (from Amazon RDS, Heroku, EnterpriseDB and VMware among others.) Pretty much all of these are VM based, and can be suitable for many workloads. Maybe the advice is a bit out of date. cheers andrew -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance