Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et18o-0003te-QI for pgsql-general@arkaria.postgresql.org; Tue, 06 Mar 2018 01:11:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1et18n-0006wc-Eo for pgsql-general@arkaria.postgresql.org; Tue, 06 Mar 2018 01:11:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et18n-0006wS-6u for pgsql-general@lists.postgresql.org; Tue, 06 Mar 2018 01:11:41 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et18j-0000t3-Qv for pgsql-general@lists.postgresql.org; Tue, 06 Mar 2018 01:11:40 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 302F5AFC; Mon, 5 Mar 2018 20:11:36 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 05 Mar 2018 20:11:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=uEQxHUXw4JyYt09bYL3kWSXnnc9e00knvLclsBEKmDY=; b=IYyiUixy uvFQ3vE9iSDLuZe85iSUrUV90/sgRjS9JUa258VhCkSGe+VNd8HiyQAeUA0fzBvM x+Fbiqdy7OY1eLXdNL7U7uzhTkxjGex7cIR3zdpnsCx7bU/K+nMdh8OsrFyZZkun dR41e+jBTmNe6w4iooFivXMwlSQmTRP9Gsjbpx9oD8pgEJsae6qpDTj8bUtW7GX8 KdGLK6nFs3X0Pj9/rAhNsjQnupTQIkS0hUbe4n9UfwAnwYOEgY199E7lB8y2nmVO eZUhJaqo9mBzHzzwF0x9qh4YMUbcGdH6QLelyn6dMMMx3KdedoZzv9ksnbvY0i7g PMAFio19j/rxqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=uEQxHUXw4JyYt09bYL3kWSXnnc9e0 0knvLclsBEKmDY=; b=ba3YfbUUiG0jQrmS83oNe63V5vv0a7A4Ursylzj3lLROC VxsLffEuAY4qjT5lPmXCaa2HiYGwgyfacYVjP4gjORp+VyZUz7/cLFF3G6X6D2s6 qH1dwGDRkocVnOivog+oXEBx8mC6QrUfCGgnVsUq5iyk8kxVFQ6qeCMG1GkouJmR 8XHCZ5M3h1Y/KasMwDtzRQi6oZRwMRsDwG4lBDbK4Erui5kV4i6P6QFdYZ4o7LrC U1QWLGX+dduZPAZxnJLZTnq+EWaha3fXjBJXvnj3Gsz6qKve6YsEudFPPvTkHUWx eMlA7esFz303rpyIMICAEz1f4l3jQUew2N4krxBDQ== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id CE8127E12E; Mon, 5 Mar 2018 20:11:34 -0500 (EST) Date: Tue, 6 Mar 2018 10:11:32 +0900 From: Michael Paquier To: Steve Atkins Cc: "pgsql-generallists.postgresql.org" Subject: Re: Best options for new PG instance Message-ID: <20180306011132.GE1878@paquier.xyz> References: <94BA3508-7A07-4A19-819D-BC4BEEB8561A@blighty.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Bqc0IY4JZZt50bUr" Content-Disposition: inline In-Reply-To: <94BA3508-7A07-4A19-819D-BC4BEEB8561A@blighty.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Bqc0IY4JZZt50bUr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --Bqc0IY4JZZt50bUr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlqd6sQACgkQnvQgOdby QH2ZpA/+N0IT/mGz55jeC+JUn5I/rEUBtr5PC+lA9f0UcA/YdobZD2brHCY44kHa v23ljQkN6z2y0kx9GjasjUOvJMQKTkwDauhfU/qOVY9acx8AaMeyjWNbmygJiGby Fn5azk2mIcmWdYsBjNZL6S9iOY79poIWqspGkqryhvDUUloofWqE+HhZ80D7W+U1 CSAPiVeTvRdVULG1U2Ca+JnN9rVRyoBsRVMZmAljVJG0xXTU36wmlAcfOr+dkkXL AjxvjOc63McdOlEwPSF/2xF3V1Cskl+ZwBsWyDxhioFPxBuJCQsWG1OaQ/qNGYpl zL88jQUhZdSWp5bQIuYS5jquvyBh6DQeRG1sr9I7VpB5AnwTtftBNvRz3M0EUs96 B5wvn9q/kmxveg3AuPYdKiKMqvvqRik6hV/2gwigK/qvoDq0oi6Hm413iFWr/zPt Ix1LtXm2mi0A39cxoF3yrLIPzLxSvHNP8KAM/5qCyUDfS7Wpozpfv6LK0RxC1fm8 b9rFAu5lb3CJ6g4TZW1JCRtSmZ5+jfi1qcKan05fXoTt3eS8QkQVIdtt2WNZAERz 1TN3nbFwYt4c6lCYCP3RBXquoLRjP02PhPg0/Nm2AIRQs98XyNGdx1GfqLjbWc23 fyxpe/Yz2Np0EZ63Xwfxn5PW2v7+cVqyh/MfXXVTq0EEZKFnoDs= =9Gfh -----END PGP SIGNATURE----- --Bqc0IY4JZZt50bUr--