<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I&#39;m new to pgpool, and I&#39;m trying to use the load balancer. </div><div>I have a primary and a hot standby, using native streaming replication.</div><div><br></div><div><div>Versions: </div><div>postgresql - 11.2</div><div>pgpool - 4.0.2</div><div><br></div></div><div>Here&#39;s what I changed in pgpool.conf:</div><div><br></div><div><div>listen_addresses = &#39;*&#39;</div><div>port = 5432</div><div><br></div><div>backend_hostname0 = &#39;192.168.51.186&#39;</div><div>backend_port0 = 5433</div><div>backend_weight0 = 0.4</div><div>backend_data_directory0 = &#39;/var/lib/postgresql/11/main&#39;</div><div>backend_flag0 = &#39;ALWAYS_MASTER&#39;</div><div><br></div><div>backend_hostname1 = &#39;192.168.51.185&#39;</div><div>backend_port1 = 5433</div><div>backend_weight1 = 0.6</div><div>backend_data_directory1 = &#39;/var/lib/postgresql/11/main&#39;</div><div><br></div><div>load_balance_mode = on</div><div><br></div><div>master_slave_mode = on</div><div>master_slave_sub_mode = &#39;stream&#39;</div></div><div><br></div><div>However, when I inspect the nodes on pgpool, I get the following:</div><div><br></div><div><div>postgres=# show pool_nodes;</div><div> node_id |    hostname    | port | status | lb_weight |  role   | select_cnt | load_balance_node | replication_delay | last_status_change  </div><div>---------+----------------+------+--------+-----------+---------+------------+-------------------+-------------------+---------------------</div><div> 0       | 192.168.51.186 | 5433 | up     | 0.400000  | primary | 6113       | true              | 0                 | 2019-03-14 11:39:15</div><div> 1       | 192.168.51.185 | 5433 | unused | 0.600000  | standby | 0          | false             | 0                 | 2019-03-14 11:39:15</div></div><div><br></div><div>All queries are being redirected to primary. I can query the standby directly, so everything seems fine with my replication setup.</div><div><br></div><div>Why it says the standby is unused? I&#39;m missing something in the configuration?</div><div><br></div><div>Thanks,<br></div><div>Fernando</div></div></div></div></div></div>