pgpool连接问题

发布于 2021-11-28 15:05:50 字数 3145 浏览 811 评论 2

搭建好postgresql主从流复制 与pgpool主备后,连接pgpool出现问题:

[root@vm129 ~]# psql -h 192.168.1.168 -p 9999 -U postgres -d postgres
psql: ERROR:  pgpool is not accepting any new connections
DETAIL:  all backend nodes are down, pgpool requires at least one valid node
HINT:  repair the backend nodes and restart pgpool

连接时的日志如下:

2016-08-03 14:58:52: pid 1118: DEBUG:  watchdog life checking by heartbeat
2016-08-03 14:58:52: pid 1118: DETAIL:  checking pgpool 0 (192.168.1.129:9999)
2016-08-03 14:58:52: pid 1118: DEBUG:  watchdog life checking by heartbeat
2016-08-03 14:58:52: pid 1118: DETAIL:  OK; status 3
2016-08-03 14:58:52: pid 1118: DEBUG:  watchdog life checking by heartbeat
2016-08-03 14:58:52: pid 1118: DETAIL:  checking pgpool 1 (192.168.1.130:9999)
2016-08-03 14:58:52: pid 1118: DEBUG:  watchdog checking if pgpool is alive using heartbeat
2016-08-03 14:58:52: pid 1118: DETAIL:  the last heartbeat from "192.168.1.130:9999" received 0 seconds ago
2016-08-03 14:58:52: pid 1118: DEBUG:  checking pgpool status by heartbeat
2016-08-03 14:58:52: pid 1118: DETAIL:  OK; status 2
2016-08-03 14:58:52: pid 1117: DEBUG:  watchdog heartbeat: send heartbeat signal to 192.168.1.130:9694
2016-08-03 14:58:54: pid 1116: DEBUG:  watchdog heartbeat: received heartbeat signal from "192.168.1.130:9999"
2016-08-03 14:58:54: pid 1117: DEBUG:  watchdog heartbeat: send heartbeat signal to 192.168.1.130:9694
2016-08-03 14:58:56: pid 1116: DEBUG:  watchdog heartbeat: received heartbeat signal from "192.168.1.130:9999"
2016-08-03 14:58:56: pid 1117: DEBUG:  watchdog heartbeat: send heartbeat signal to 192.168.1.130:9694
2016-08-03 14:58:56: pid 1195: DEBUG:  reading startup packet
2016-08-03 14:58:56: pid 1195: DETAIL:  application_name: psql
2016-08-03 14:58:56: pid 1195: DEBUG:  reading startup packet
2016-08-03 14:58:56: pid 1195: DETAIL:  Protocol Major: 3 Minor: 0 database: postgres user: postgres
2016-08-03 14:58:56: pid 1195: DEBUG:  forwarding error message to frontend
2016-08-03 14:58:56: pid 1195: FATAL:  pgpool is not accepting any new connections
2016-08-03 14:58:56: pid 1195: DETAIL:  all backend nodes are down, pgpool requires at least one valid node
2016-08-03 14:58:56: pid 1195: HINT:  repair the backend nodes and restart pgpool
2016-08-03 14:58:56: pid 1109: DEBUG:  reaper handler
2016-08-03 14:58:56: pid 1109: LOG:  child process with pid: 1195 exits with status 256
2016-08-03 14:58:56: pid 1109: LOG:  fork a new child process with pid: 1198
2016-08-03 14:58:56: pid 1109: DEBUG:  reaper handler: exiting normally
2016-08-03 14:58:56: pid 1198: DEBUG:  initializing backend status
2016-08-03 14:58:58: pid 1116: DEBUG:  watchdog heartbeat: received heartbeat signal from "192.168.1.130:9999"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

旧伤慢歌 2021-12-03 13:51:32

引用来自“平安北京”的评论

这个请
@宏哥 来吧

沦落红尘 2021-12-03 09:37:06

这个请
@宏哥 来吧

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文