Re: Split read/write queries between 2 servers (one master and one slave with streaming replication)?

Поиск
Список
Период
Сортировка
От Adam Cornett
Тема Re: Split read/write queries between 2 servers (one master and one slave with streaming replication)?
Дата
Msg-id CAB5sPxZcUWnE6w+U_+3S1Ui5Tv__Xn26d3vqdJ-LtX+7=f2_VA@mail.gmail.com
обсуждение исходный текст
Ответ на Split read/write queries between 2 servers (one master and one slave with streaming replication)?  (Benjamin Henrion <bh@udev.org>)
Ответы Re: Split read/write queries between 2 servers (one master and oneslave with streaming replication)?  (Venkateswaran <venkateswaran.srec@gmail.com>)
Список pgsql-general
On Thu, Mar 1, 2012 at 5:06 PM, Benjamin Henrion <bh@udev.org> wrote:
Hi,

I am trying pgpool2 to split read and write queries, where reads
should go to the slave server (streaming replication) and writes to
the master server.

Anybody has a config file that works for pgpool2?

Best,

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-3500762
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

I've attached my pgpool conf.
All pgpool is doing here is the load balancing, replication is handled by streaming replication (9.0+)
PGPool can be setup to do auto failover as well, although that isn't shown in the attached config.

I'm sure some pgpool people will jump on and let me know how I'm doing it wrong, but this is working quite well in production for us.
-Adam
Вложения

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

Предыдущее
От: Benjamin Henrion
Дата:
Сообщение: Split read/write queries between 2 servers (one master and one slave with streaming replication)?
Следующее
От: chinnaobi
Дата:
Сообщение: Re: archive_cleanup_command recovery.conf Standby server error