Re: PostgreSQL Synchronous Replication in production

Поиск
Список
Период
Сортировка
От Colin S
Тема Re: PostgreSQL Synchronous Replication in production
Дата
Msg-id DUB118-W29F2E4839284E9E50618AF87980@phx.gbl
обсуждение исходный текст
Ответ на Re: PostgreSQL Synchronous Replication in production  (Richard Huxton <dev@archonet.com>)
Ответы Re: PostgreSQL Synchronous Replication in production  (Richard Huxton <dev@archonet.com>)
Список pgsql-general

> Here's a few questions. How you answer them will decide whether you
> really want synchronous replication or not:
> 1. The link between servers encounters network congestion
> a. The whole system should slow down.
> Committed transactions should ALWAYS be on
> two geographically separate machines.
> b. An alert should be sent.
> If it's not sorted in 5 mins we'll get someone to look at it.
> 2. Adding more servers[2] to my replication should:
> a. Make the system as a whole slower[3] and reduce uptime
> but increase the safety of committed transactions
> b. Make the system as a whole faster and increase uptime
>
> There are cases where you want (a), but lots where you want (b) and
> monitor the replication lag.
>
>
> [1] For various values of "safely" of course
> [2] In the same mode - adding async slaves doesn't count
> [3] Assuming a reasonable write load of course. Read-only databases
> won't care.
>
> --
> Richard Huxton
> Archonet Ltd
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

Hello,

Thanks for your answer. I find it very interesting that you say that synchronous setups should always be in two geographically separate locations. In this case they are on the same subnet. Adding the lag of committing to two, geographically separate, databases is not feasible for this OLTP application.

I also like your point that  "mostly synchronous is just asynchronous." So, responding by switching to asynchronous as a response to slow-down is asynchronous anyway.

Any other comments, or examples, of when synchronous is worth implementing would be greatly appreciated.

Regards,

Colin

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: checking schema present or not by passing schema name as parameter
Следующее
От: David Greco
Дата:
Сообщение: Re: Trouble with replication