pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: adding more space to the existing server
Date: Fri, 2 Aug 2019 17:49:10 -0700
Message-ID: <b320c23d-3920-0bfe-9382-7e7509b74f75@aklaver.com> (raw)
In-Reply-To: <BYAPR08MB5014E634BC405CF9705BF37DACD90@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB50148CE9EA5DB6321948BD7EACDF0@BYAPR08MB5014.namprd08.prod.outlook.com>
	<b484082e-82b6-28fd-562f-3fade5360c46@aklaver.com>
	<BYAPR08MB5014E634BC405CF9705BF37DACD90@BYAPR08MB5014.namprd08.prod.outlook.com>

On 8/2/19 12:45 PM, Julie Nishimura wrote:
> Thanks for your replies.
> 
> 1) We use streaming replication, and due to hardware limitation, we 
> cannot add more drives to the existing host. That is why we thought by 
> breaking the existing streaming replication (from a->b), instead of 
> currently identical standby (b), we can introduce twice larger host, 
> then start the replication to the newly larger host, and when it is 
> caught up, break it again. Then break rep again, make modification to 
> 'a" host, making it larger, then replicate b->a. After it is caught up, 
> break the rep again, switch master->standby (if necessary).

Is this new host going to be an entirely new machine?

If so and there is a place for it why not something like:

1)
	a) --> b) --> c)(new host)
	       		Seed using pg_basebackup
	                Replicate in background
2)
	Take down a)
	Promote either b) or c) to primary and the other as standby.

3)
	Bring up a) and have it replicate off the standby in 2) and then 
decide which of a) or c) is the primary or standby.

> 
> 2) I am not sure about the time, but it is understood it is required 2 
> full replication cycles, and might be up to 2 weeks with no standby 
> situation
> 
> 3) Yes, we will clean up whatever we can to buy us time
> 
> 4) by pg_basebackup and restore
> 
> As of now, we are thinking about possibly other solutions, as of 
> splitting existing 37 databases on the cluster into 2 hosts with their 
> own standbys. This solution requires breaking up existing replication as 
> well. Can you please point me to some document which lists all steps 
> describing breaking up the existing replication properly? we are using 
> 9.6 postgres
> 
> 
> Thank you!
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (11+ messages)  latest in thread

Message-ID: <b320c23d-3920-0bfe-9382-7e7509b74f75@aklaver.com>
Permalink:  ../b320c23d-3920-0bfe-9382-7e7509b74f75@aklaver.com/
Also on:    postgresql.org/message-id/b320c23d-3920-0bfe-9382-7e7509b74f75@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, juliezain@hotmail.com
  Subject: Re: adding more space to the existing server
  In-Reply-To: <b320c23d-3920-0bfe-9382-7e7509b74f75@aklaver.com>
  References: <BYAPR08MB50148CE9EA5DB6321948BD7EACDF0@BYAPR08MB5014.namprd08.prod.outlook.com> <b484082e-82b6-28fd-562f-3fade5360c46@aklaver.com> <BYAPR08MB5014E634BC405CF9705BF37DACD90@BYAPR08MB5014.namprd08.prod.outlook.com> <b320c23d-3920-0bfe-9382-7e7509b74f75@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox