pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Upgrade master / slave
2+ messages / 2 participants
[nested] [flat]

* Upgrade master / slave
@ 2015-09-29 15:46 Bertrand <b.contacts@kifaisa.com>
  2015-10-06 23:19 ` Re: Upgrade master / slave Payal Singh <payal@omniti.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Bertrand @ 2015-09-29 15:46 UTC (permalink / raw)
  To: pgsql-admin

Hello, 

Currently I use MySQL 5.6 but I plan to migrate to PostgreSQL . 
My application uses two databases : t he total volume is 1TB on my hard drives . 

I made some tests on PostgreSQL administration but I have a problem with Master / Slave. 

How to update the cluster master / slave with a very short break time ? 
I tried to update a slave (9.3 => 9.4) and connect it to the master 9.3 but it doesn't work. 

If I have to stop the master, migrate it to 9.4, start it and repeat these steps for the slaves the breaking time is really long. 

I thank you in advance. 

Bertrand 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Upgrade master / slave
  2015-09-29 15:46 Upgrade master / slave Bertrand <b.contacts@kifaisa.com>
@ 2015-10-06 23:19 ` Payal Singh <payal@omniti.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Payal Singh @ 2015-10-06 23:19 UTC (permalink / raw)
  To: Bertrand <b.contacts@kifaisa.com>; +Cc: pgsql-admin

You don't have to repeat the upgrade steps on slave after upgrading the
master. Once master is upgraded (using link option with pg_upgrade takes
the least amount of time
http://www.postgresql.org/docs/9.4/static/pgupgrade.html) you have to
install the new binaries and then rebuild slave from the master. You don't
have to upgrade slave separately. Although yes, rebuilding slave will take
a while, till which your cluster will be standalone. However, actual
downtime shouldn't be more than a few minutes.

Personally haven't used, but you might want to look into
http://slony.info/documentation/1.2/versionupgrade.html and see if it can
further reduce downtime, however it can be very complicated.

Payal Singh,
Database Administrator,
OmniTI Computer Consulting Inc.
Phone: 240.646.0770 x 253

On Tue, Sep 29, 2015 at 11:46 AM, Bertrand <b.contacts@kifaisa.com> wrote:

> Hello,
>
> Currently I use MySQL 5.6 but I plan to migrate to PostgreSQL.
> My application uses two databases : the total volume is 1TB on my hard
> drives.
>
> I made some tests on PostgreSQL administration but I have a problem with
> Master / Slave.
>
> How to update the cluster master / slave with a very short break time ?
> I tried to update a slave (9.3 => 9.4) and connect it to the master 9.3
> but it doesn't work.
>
> If I have to stop the master, migrate it to 9.4, start it and repeat these
> steps for the slaves the breaking time is really long.
>
> I thank you in advance.
>
> Bertrand
>

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-10-06 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-09-29 15:46 Upgrade master / slave Bertrand <b.contacts@kifaisa.com>
2015-10-06 23:19 ` Payal Singh <payal@omniti.com>

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