Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoAIe-0005iR-Qy for pgsql-general@arkaria.postgresql.org; Thu, 18 Jul 2019 17:34:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoAId-0000NE-EW for pgsql-general@arkaria.postgresql.org; Thu, 18 Jul 2019 17:34:35 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoAId-0000D4-0q for pgsql-general@lists.postgresql.org; Thu, 18 Jul 2019 17:34:35 +0000 Received: from aart.rice.edu ([168.7.56.48]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoAIU-0000Sd-Uy for pgsql-general@lists.postgresql.org; Thu, 18 Jul 2019 17:34:34 +0000 Received: by aart.rice.edu (Postfix, from userid 18612) id 85F28427F28F; Thu, 18 Jul 2019 12:34:24 -0500 (CDT) Date: Thu, 18 Jul 2019 12:34:24 -0500 From: Kenneth Marshall To: pgsql-general@lists.postgresql.org Cc: matt@conundrum.com Subject: Re: Rearchitecting for storage Message-ID: <20190718173424.GB25488@aart.rice.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Matt, On Thu, Jul 18, 2019 at 09:44:04AM -0400, Matthew Pounsett wrote: > I've recently inherited a database that is dangerously close to outgrowing > the available storage on its existing hardware. I'm looking for (pointers > to) advice on scaling the storage in a financially constrained > not-for-profit. Have you considered using the VDO compression for tables that are less update intensive. Using just compression you can get almost 4X size reduction. For a database, I would forgo the deduplication function. You can then use a non-compressed tablespace for the heavier I/O tables and indexes. > > One of my anticipated requirements for any replacement we design is that I > should be able to do upgrades of Postgres for up to five years without > needing major upgrades to the hardware. My understanding of the standard > upgrade process is that this requires that the data directory be smaller > than the free storage (so that there is room to hold two copies of the data > directory simultaneously). I haven't got detailed growth statistics yet, > but given that the DB has grown to 23TB in 5 years, I should assume that it > could double in the next five years, requiring 100TB of available storage > to be able to do updates. > The link option with pg_upgrade does not require 2X the space, since it uses hard links instead of copying the files to the new cluster. Regards, Ken