Re: Replication: GZIP compression in WAL sender/receiver processes communication?

From: Rahila Syed <rahilasyed90(at)gmail(dot)com>
To: dmitry(at)koterov(dot)ru
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Replication: GZIP compression in WAL sender/receiver processes communication?
Date: 2013-12-17 07:34:48
Message-ID: CAH2L28t8LTQdbZ90nYEPVMhHsMtF1=5Qg=FyVeJcCm-n_OZHdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

Yes gzip compression can be used for compressing WAL traffic during
streaming replication Following tools can be used in this regard.
SSL compression-SSL support is built in PostgreSQL. You need to ensure you
have OpenSSL library support in your PostgreSQL installation.
Also, you can compress WAL traffic by setting up SSH tunneling between
master and standby and turn on compression while setting up SSH tunnel.
Following link can be followed for the same.
http://www.postgresql.org/docs/9.3/static/ssh-tunnels.html
Ofcourse, these are the solutions outside PostgreSQL.

On Tue, Dec 10, 2013 at 4:43 AM, Dmitry Koterov <dmitry(at)koterov(dot)ru> wrote:

> Hello.
>
> Is there a way to compress the traffic between master and slave during the
> replication?.. The streaming gzip would be quite efficient for that.
>
> (WAL archiving is not too good for this purpose because of high lag. I
> just need to minimize the cross-datacenter traffic keeping the replication
> lag low.)
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Schwarzer 2013-12-17 07:59:42 How to rename the same column name in dozens of tables in Postgres?
Previous Message imagenesis@gmail.com 2013-12-17 01:57:22 Re: Scripts to build the various debian packages from postgresql source