[pgpool-general: 2272] Re: Query distribution between replicated servers
piotr.pawlowski at goyello.com
Tue Nov 12 16:10:17 JST 2013
Thank you for clarification.
I configured pgPool with master_slave_mode and load_balance_mode enabled. To force read queries from slave server and write queries from master one, I added option backedn_weight with value 1 for slave and 0 for master.
Although wright now I achieved my goal, I am not quite sure if this is correct configuration or I just found workaround.
Can you confirm above config or show better way for solving my issue with pgPool?
Thanks in advance.
From: Tatsuo Ishii <ishii at postgresql.org>
Sent: Friday, November 08, 2013 07:24
To: Piotr Pawłowski
Cc: pgpool-general at pgpool.net
Subject: Re: [pgpool-general: 2260] Query distribution between replicated servers
> I am new with pgPool.
> I have two psql servers replicated with slony (master/slave).
> I would like to make read queries on slave only, while write queries should go to master only (obvious).
> Is it possible to achieve such configuraion with pgPool? IF yes - could you give me some tips in which mode should pgPool run in order to perform as described above.
> Thank you in advance for any help.
Yes, you can.
master_slave_mode = on
master_slave_sub_mode = 'slony'
SRA OSS, Inc. Japan
More information about the pgpool-general