Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl2VO-000881-GC for pgsql-performance@arkaria.postgresql.org; Mon, 25 Nov 2013 20:11:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vl2VN-0002ve-Qx for pgsql-performance@arkaria.postgresql.org; Mon, 25 Nov 2013 20:11:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl2VL-0002qe-11 for pgsql-performance@postgresql.org; Mon, 25 Nov 2013 20:11:35 +0000 Received: from mbx.knossos.net.nz ([202.160.48.10]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl2VF-0005Yh-NU for pgsql-performance@postgresql.org; Mon, 25 Nov 2013 20:11:34 +0000 Received: from [10.1.1.3] (60-234-150-59.bitstream.orcon.net.nz [60.234.150.59]) (authenticated bits=0) by mbx.knossos.net.nz (8.14.4/8.14.4) with ESMTP id rAPKBJOH028933 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 26 Nov 2013 09:11:19 +1300 Message-ID: <5293AE2E.5020405@archidevsys.co.nz> Date: Tue, 26 Nov 2013 09:08:14 +1300 From: Gavin Flower Organization: ArchiDevSys User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Lee Nguyen , pgsql-performance@postgresql.org Subject: Re: Postgresql in a Virtual Machine References: In-Reply-To: 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 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 -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance