Cannot configure pgpool with master and slave nodes

房东的猫 提交于 2021-01-29 17:24:54

问题


I have created a master-slave postgreSQL (I have one cluster as main and the other one as hot_standby). All local host. I used the "pgpool.conf.sample" and changed the backend 1+2 for my master and slave nodes. whenever I open the pgpool and run show pool_nodes; I can see the master + slave but slave is on waiting status. If I return to the configuration file and turn on the master_slave_mode, now both nodes are "up" but they're standby and all goes through the master one. What i'm trying to do is that insert/update/delete will go to main and selects to slave. I work with CentOS 8 , Pgpool 2 , postgresql 12.

来源:https://stackoverflow.com/questions/65394658/cannot-configure-pgpool-with-master-and-slave-nodes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!