<div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>Dear Tatsuo.<br><br></div>My Vault ....<br><br></div>What if :<br><br>#MASTER<br>backend_hostname0 = 'master.pgcluster.service.bino.inc'<br>backend_port0 = 5432<br>backend_weight0 = 1<br>backend_data_directory0 = '/psqldata'<br>backend_flag0 = 'ALWAYS_MASTER'<br>#REPLICAs<br>backend_hostname1 = 'replica.pgcluster.service.bino.inc'<br>backend_port1 = 5432<br>backend_weight1 = 1<br>backend_data_directory1 = '/psqldata'<br><br></div><div>Sincerely<br></div><div>-bino-<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 17, 2018 at 3:52 PM Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> lets say Currently I have 3 psql hosts, 2 of them have the same 'fqdn' but<br>
> different IP.<br>
> <br>
> master.pgcluster.service.bino.inc. 0 IN    A    10.10.10.3<br>
> replica.pgcluster.service.bino.inc. 0 IN A    10.10.10.1<br>
> replica.pgcluster.service.bino.inc. 0 IN A    10.10.10.2<br>
> <br>
> (note: DNS server is by Consul)<br>
> <br>
> My pgpool.conf :<br>
> <br>
> #MASTER<br>
> backend_hostname0 = 'master.pgcluster.service.bino.inc'<br>
> backend_port0 = 5432<br>
> backend_weight0 = 1<br>
> backend_data_directory0 = '/psqldata'<br>
> backend_flag0 = 'ALWAYS_MASTER'<br>
> #REPLICAs<br>
> backend_hostname1 = '10.10.10.2'<br>
> backend_port1 = 5432<br>
> backend_weight1 = 1<br>
> backend_data_directory1 = '/psqldata'<br>
> <br>
> My question is, will the SELECT (read) being loadbalanced between all three<br>
> hosts ?<br>
<br>
I'm not a network expert but I guess 10.10.10.1 will never be used by<br>
Pgpool-II, since either 10.10.10.1 or<br>
replica.pgcluster.service.bino.inc does not appears in pgpool.conf.<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
</blockquote></div>