Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5nCJ-0002A0-Ve for pgsql-admin@arkaria.postgresql.org; Wed, 22 Jan 2014 02:05:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W5nCJ-0000oa-Fb for pgsql-admin@arkaria.postgresql.org; Wed, 22 Jan 2014 02:05:43 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5nCI-0000oU-Nu for pgsql-admin@postgresql.org; Wed, 22 Jan 2014 02:05:42 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5nCG-00048a-DR for pgsql-admin@postgresql.org; Wed, 22 Jan 2014 02:05:42 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1W5nCF-0000bc-8K; Tue, 21 Jan 2014 21:05:39 -0500 Date: Tue, 21 Jan 2014 21:05:39 -0500 From: Bruce Momjian To: Alejandro =?iso-8859-1?Q?Mart=EDnez?= Cc: pgsql-admin@postgresql.org Subject: Re: Upgrading cluster with thousands of DBs Message-ID: <20140122020539.GB5322@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Tue, Jan 14, 2014 at 11:45:33AM +0100, Alejandro Martínez wrote: > Hi list, > > We're working on upgrading from 9.1 to 9.3 some of our database > clusters, while seeking to minimize (write) downtime by making the > upgrades as fast as possible. > > However, our clusters have the particularity that they get to host > many different *databases*, as in, ~2000 databases per cluster. Most > of those databases are small (only a table and PostGIS functions), so > it's more a problem of the number of DBs than the space they use. The > total size of the cluster is around 60gb. > > I first started using pg_upgrade but, even when enabling > parallelization and hardlinks, as most of the steps (preliminary > check?) don't seem to be parallelized, the upgrade takes ~5 hours as > it goes database-per-database serially on most steps. That is surprising. I know I see parallel hard link creation and parallel database dump in my testing of 9.3 pg_upgrade. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin