Re: replication consistency checking

Поиск
Список
Период
Сортировка
От hydra
Тема Re: replication consistency checking
Дата
Msg-id CAG6MAzS7vJY48GBdMeajahuvXjEMd43EePipeOMP9APbNGFcdQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: replication consistency checking  (Venkata Balaji N <nag1010@gmail.com>)
Ответы Re: replication consistency checking  (Greg Clough <greg.clough@cwtdigital.co.uk>)
Список pgsql-admin


On Thu, Jun 4, 2015 at 8:27 AM, Venkata Balaji N <nag1010@gmail.com> wrote:


On Thu, Jun 4, 2015 at 2:49 PM, hydra <hydrapolic@gmail.com> wrote:
After setting up streaming replication, is it possible to check whether the slave has the same data as the master?


Yes. There are quite a few ways to check the sync status between master and standby. Which version of PostgreSQL are you using by the way ? 

Generally, you can easily build some scripts and schedule them in cron to check the status. You can use functions or catalog views to monitor the status, this depends on the version of PG you are using.

You can also use tools like "repmgr" to monitor and manage replication. I am not 100% sure how good or efficient it is.

Regards,
Venkata Balaji N

Fujitsu Australia


Thanks for the answer, however I'm looking for a data consistency check.

That means, you deploy your master standby replication, you're happily running it and after 3 months you decide to do a failover. How can one be sure the data are the same?

I'm running PostgreSQL 9.4.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Venkata Balaji N
Дата:
Сообщение: Re: replication consistency checking
Следующее
От: hydra
Дата:
Сообщение: Re: replication consistency checking