Re: Replication delay

Поиск
Список
Период
Сортировка
От ascot.moss@gmail.com
Тема Re: Replication delay
Дата
Msg-id 84289399-B62B-4728-8A9B-14A099A6D6D4@gmail.com
обсуждение исходный текст
Ответ на Re: Replication delay  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-general
Thanks so much.

On 11 Aug 2013, at 9:50 PM, Michael Paquier wrote:

> On Sun, Aug 11, 2013 at 5:51 AM, ascot.moss@gmail.com
> <ascot.moss@gmail.com> wrote:
>> Hi,
>>
>> I have a pair of PG servers, a master and a replica, all read-write queries are handled by the master, read-only
onesare by the replica. 
>>
>> From time to time the replica itself is too busy, all read-only queries will get  inconsistent results because of
replicationlag,  sometimes it can be longer than 6 minutes.  I am thinking to add multiple replicas to off-load
read-onlyqueries, can you please suggest a way to monitor and failover the read-only query when the replication lag in
areplica is more than 5 minutes? 
> I assume that you could use pgpool for that. It has some monitoring
> features for replication delay and it can do read-only load balancing
> among several servers. You also shouldn't need to change your
> application.
> Have a look at its documentation to make an opinion:
> http://pgpool.projects.pgfoundry.org/pgpool-II/doc/pgpool-en.html
>
> Regards,
> --
> Michael



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

Предыдущее
От: raghu ram
Дата:
Сообщение: Re: Trigger to update table info
Следующее
От: Jayadevan M
Дата:
Сообщение: Re: Trigger to update table info