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 1egFK3-0001xX-1o for pgsql-general@arkaria.postgresql.org; Mon, 29 Jan 2018 19:42:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egFK1-0004wf-B5 for pgsql-general@arkaria.postgresql.org; Mon, 29 Jan 2018 19:42:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egFK0-0004wE-Qr for pgsql-general@lists.postgresql.org; Mon, 29 Jan 2018 19:42:29 +0000 Received: from 23-25-19-49-static.hfc.comcastbusiness.net ([23.25.19.49] helo=jeeves.wrkhors.com) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1egFJt-0007s9-HX for pgsql-general@lists.postgresql.org; Mon, 29 Jan 2018 19:42:27 +0000 Received: from wrkhors.com (localhost [127.0.0.1]) by jeeves.wrkhors.com (Postfix) with ESMTP id 8AA3A10EDE8; Mon, 29 Jan 2018 13:42:39 -0600 (CST) Date: Mon, 29 Jan 2018 13:41:45 -0600 From: Steven Lembark To: pgsql-general@lists.postgresql.org Cc: lembark@wrkhors.com Subject: Re: Using AWS ephemeral SSD storage for production database workload? Message-ID: <20180129134145.7f96c816@wrkhors.com> In-Reply-To: References: Organization: Workhorse Computing MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 29 Jan 2018 23:27:32 +0530 Pritam Barhate wrote: > In short, I am just trying to learn from other people's experience. This is identical to solutions that use tmpfs on linux for database storage or dealing with a fully failed storage system. Think about what you'd do if a RAID controller fried and botchd your entire array at once. You'll feel just the same way if a box using ephemeral storage goes down. Your application needs to handle restarting transactions and either a reverse proxy/load-balancer or client-side switchover. Depending on your tolerance for data loss you might need three servers up, on as a secondary failover if the primary fails so that you (pretty much) always have two servers up to maintain the data. The last server only has to last long enough for a restart and recovery so it might not have to be very heavy duty, it's main purpose is to keep the database alive long enough to recover the "real" server. Q: Why not just use RDS? It'll be simpler. -- Steven Lembark 1505 National Ave Workhorse Compuing Rockford, IL 61103 lembark@wrkhors.com +1 888 359 3508