Search Postgresql Archives

Synchronization Master -> Slave (on slow connetion)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've serious problems with slow link between continents, and twice a week I have to manually reestablish the slave, by running the following script:

------------------------------------------------------------------------------------------------------------------------------------------

psql -c "SELECT pg_start_backup('standby_sync', true)"
rsync --progress -a ${PGDATA}/* root@xxxxxxxxxxxxxxxxxxxxx:/opt/pgsql/slave1/ --exclude postmaster.pid --exclude postgresql.conf --exclude pg_hba.conf --exclude pg_log --exclude pg_xlog
psql -c "SELECT pg_stop_backup()"

------------------------------------------------------------------------------------------------------------------------------------------

Point is not to analyze the connection issues between the continents, but if there is a way better to synchronize these servers, and avoid to transport 8Gb of data between them when syncronizing. The rsync above can be optimized? Both servers are CentOS 5 with OpenVPN established between them (this is one of the problems: the VPN keep falling several times a day, and then finally, the sender and receiver process just vanish in the air - and I had no time to investigate the vanishment).

Thanks in advance for your help,

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux