Re: Replication

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Replication
Дата
Msg-id 1156350581.15743.133.camel@dogma.v10.wvs
обсуждение исходный текст
Ответ на Re: Replication  (Markus Schiltknecht <markus@bluegap.ch>)
Ответы Re: Replication
Список pgsql-hackers
On Wed, 2006-08-23 at 13:36 +0200, Markus Schiltknecht wrote:
> Hannu Krosing wrote:
> > But if you have very few writes, then there seems no reason to do sync
> > anyway.
> 
> I think there is one: high-availability. A standby-server which can 
> continue if your primary fails. Of course sync is only needed if you 
> absolutely cannot effort loosing any committed transaction.
> 

I disagree about high-availability. In fact, I would say that sync
replication is trading availability and performance for synchronization
(which is a valid tradeoff, but costly). 

If you have an async system, all nodes must go down for the system to go
down.

If you have a sync system, if any node goes down the system goes down.
If you plan on doing failover, consider this: what if it's not obvious
which system is still up? What if the network route between the two
systems goes down (or just becomes too slow to replicate over), but
clients can still connect to both servers? Then you have two systems
that both think that the other system went down, and both start
accepting transactions. Now you no longer have replication at all.

Regards,Jeff Davis



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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Tricky bugs in concurrent index build
Следующее
От:
Дата:
Сообщение: Re: [PATCHES] selecting large result sets in psql using