From: Alvaro Aguayo Garcia-Rada <aaguayo@opensysperu.com>
To: pgsql-admin@postgresql.org, Jon Hancock <jhancock@shellshadow.com>
Subject: Re: read-only remote replica
Date: Thu, 19 May 2016 20:30:37 -0500 (PET)
Message-ID: <o1hvb14f95b81ek7aacbuc07.1463707480594@email.android.com> (raw)
In-Reply-To: <CAOmNu1heCNNMyQd6hFSoMUiBwQpvEg3Yx4n5wqHnEaxvH9JqNA@mail.gmail.com>
References: <CAOmNu1heCNNMyQd6hFSoMUiBwQpvEg3Yx4n5wqHnEaxvH9JqNA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hi, Jon.
What postgres version are you using on your master database server? If you use(or can upgrade to) 9.4/9.5, you can consider using pglogical, which works by sending WAL from the master to the read-only slave. It's really efficient, as, unlikely the trigger based replicators, it does not double writes the replicated information. Here's he website: http://2ndquadrant.com/en/resources/pglogical/
Regards,
Alvaro Aguayo
Jefe de Operaciones
Open Comb Systems E.I.R.L.
Oficina: (+51-1) 3377813 | RPM: #034252 / (+51) 995540103 | RPC: (+51) 954183248
Website: www.ocs.pe
Sent from my Sony Xperia™ smartphone
---- Jon Hancock wrote ----
Hi list,
I need a read only replica of my postgres server (assume
current/recent stable release).
The master is in a reliable data center in California. The read-only
replica would be in an office in New Zealand. Bandwidth can be
challenging from our office. It works but bandwidth is highly
variable.
The reason for the read-only replica is we have an old reports system
in our office that connects directly to the db via ODBC. Simply too
much work to replace this system for now. Its not an option to do
nightly dumps/download/imports as we need closer to real time replica.
A few minutes delay is ok.
Any thoughts would be appreciated on how to have a stable/reliable method.
thanks, Jon
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: aaguayo@opensysperu.com, jhancock@shellshadow.com
Subject: Re: read-only remote replica
In-Reply-To: <o1hvb14f95b81ek7aacbuc07.1463707480594@email.android.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