Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g2Gck-00068u-Jx for pgsql-general@arkaria.postgresql.org; Tue, 18 Sep 2018 14:05:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g2Gci-00022w-Iv for pgsql-general@arkaria.postgresql.org; Tue, 18 Sep 2018 14:05:04 +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.89) (envelope-from ) id 1g2Gci-00022p-7d for pgsql-general@lists.postgresql.org; Tue, 18 Sep 2018 14:05:04 +0000 Received: from mx1.mailbox.org ([2001:67c:2050:104:0:1:25:1]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g2Gce-00035u-0A for pgsql-general@postgresql.org; Tue, 18 Sep 2018 14:05:03 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 2A4F8491C3; Tue, 18 Sep 2018 16:04:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id GxyWQoJXpTC4; Tue, 18 Sep 2018 16:04:53 +0200 (CEST) Message-ID: <73d25c37c98cebd99cbee57583502aeb3bdd6c0e.camel@cybertec.at> Subject: Re: Advice on machine specs for growth From: Laurenz Albe To: Rory Campbell-Lange , pgsql-general@postgresql.org Date: Tue, 18 Sep 2018 16:04:53 +0200 In-Reply-To: <20180918135705.thfl6jllgcf5v3i3@campbell-lange.net> References: <20180918135705.thfl6jllgcf5v3i3@campbell-lange.net> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Rory Campbell-Lange wrote: > We are looking to upgrade our current database server infrastructure so > that it is suitable for the next 3 years or so. > > We envisage needing about 800GB of primary database storage in the next > three years, with 1000 databases in the cluster. 1000 is a lot, but should still be ok. > We are imagining either splitting the cluster into two and (to have four > main servers) or increasing the disk capacity and RAM in each server. > The second seems preferable from a day-to-day management basis, but it > wouldn't be too difficult to deploy our software upgrades across two > machines rather than one. If you can scale horizontally by splitting the load across several independent database servers, then do so by all means. This may be more administration work initially, but scaling will come easy when you need it. It is much more difficult to scale a single monolithic database server. > Resources on the main machines seem to be perfectly adequate at present > but it is difficult to know at what stage queries might start spilling > to disk. We presently occasionally hit 45% CPU utilisation, load average > peaking at 4.0 and we occasionally go into swap in a minor way (although > we can't determine the reason for going into swap). There is close to no > iowait in normal operation. Disable memory overcommit and set swappiness to 0 on database servers. > It also seems a bit incongruous writing about physical machines these > days, but I can't find pricing on a UK data protection compatible cloud > provider that beats physical price amortised over three years (including > rack costs). The ability to more easily "make" machines to help with > upgrades is attractive, though. I think physical machines are cool. The resulting system becomes simpler with fewer dependencies, and it is much easier to debug performance problems. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com