Re: Streaming Replica Master-Salve Config.

Поиск
Список
Период
Сортировка
От Ian Barwick
Тема Re: Streaming Replica Master-Salve Config.
Дата
Msg-id 8e712e41-22df-28df-c2b2-e14744d12f4e@2ndquadrant.com
обсуждение исходный текст
Ответ на Streaming Replica Master-Salve Config.  (Periko Support <pheriko.support@gmail.com>)
Список pgsql-general
On 8/5/16 12:35 AM, Periko Support wrote:
>  Hi.
>
>  I'm testing streaming replica with ubuntu 14 and psql9.3.
>
>  I'm trying to understand how this works, my plan is to setup the
> slave server for pentaho reports for queries only.
>
>  Now, my master server it has 128GB max_connections = 200 maybe I will add more.
>  shared_memory=18GB.
>
>  My slave server doesn't have that resources, is a Xeon with 32GB of
> RAM with psql same version
> running on ubuntu14.
>
> My questions, does the slave server need to have the same resources?
> 128GB and the same settings in specific max_connections and
> shared_memory?

max_connections must be the same (or higher) on the standby
as on the master:

  https://www.postgresql.org/docs/current/static/runtime-config-connection.html#GUC-MAX-CONNECTIONS

but shared_buffers (which is what I guess you mean with "shared_memory")
can be a different value appropriate to the standby's hardware resources.


Regards

Ian Barwick



--
 Ian Barwick                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, RemoteDBA, Training & Services


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

Предыдущее
От: Patrick B
Дата:
Сообщение: Re: Tunning Server 9.1.
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Tunning Server 9.1.