Re: Sync Rep: First Thoughts on Code

Поиск
Список
Период
Сортировка
От Aidan Van Dyk
Тема Re: Sync Rep: First Thoughts on Code
Дата
Msg-id 20081210200647.GS26596@yugib.highrise.ca
обсуждение исходный текст
Ответ на Re: Sync Rep: First Thoughts on Code  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Sync Rep: First Thoughts on Code  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
* Simon Riggs <simon@2ndQuadrant.com> [081210 14:58]:

> I think you just went down the same path I did before. (That's a good
> sign).
> 
> When the WAL starts streaming the *primary* can immediately perform
> synchronous replication, i.e. commit waits for transfer. The *standby*
> has an initial lag before it catches up, whatever we do (as you say).
> 
> I suggested that way initially because it simplifies the mode change.
> The mode change isn't really that complex, so I agreed we should change
> it.
> 
> The two ways of doing this are/were:
> 
> 1. (Initial suggestion)
> * allow standby to catchup
> * then connect and allow sync rep
> 
> 2. Preferred Choice
> * connect to primary and allow sync rep
> * catch up

Call me think, but I'm confused... In sync rep, there *can't be* any
catchign up do do... i.e. if the "slave" isn't accepting the WAL the
master "stops" doing *anything*...

-- 
Aidan Van Dyk                                             Create like a god,
aidan@highrise.ca                                       command like a king,
http://www.highrise.ca/                                   work like a slave.

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Sync Rep: First Thoughts on Code
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Sync Rep: First Thoughts on Code