宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页
  2. 解决办法
  3. 正文

当pgpool两节点状态均显示standby时的解决方法

2019年1月7日 832点热度 0人点赞 0条评论

两行代码:

pgpool stop
pgpool -C -D

执行前:

highgo=# show pool_nodes;
 node_id | hostname | port | status | lb_weight |  role   | select_cnt | load_balance_node | replication_delay 
---------+----------+------+--------+-----------+---------+------------+-------------------+-------------------
 0       | db1      | 5866 | up     | 0.500000  | standby | 0          | true              | 0
 1       | db2      | 5866 | down   | 0.500000  | standby | 0          | false             | 0
(2 rows)

执行后:

highgo=# show pool_nodes;
 node_id | hostname | port | status | lb_weight |  role   | select_cnt | load_balance_node | replication_delay 
---------+----------+------+--------+-----------+---------+------------+-------------------+-------------------
 0       | db1      | 5866 | up     | 0.500000  | standby | 0          | false             | 0
 1       | db2      | 5866 | up     | 0.500000  | primary | 0          | true              | 0
(2 rows) 

原文链接:https://blog.csdn.net/lk_db/article/details/77943776

标签: 暂无
最后更新:2019年1月7日

小渔民

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 宇筱博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15017825号-2