pgpool 之六 pgool的一些命令
阿新 • • 發佈:2019-01-11
os: ubuntu 16.04
db: postgresql 9.6.8
pgpool: pgpool-II-3.7.7
pcp_detach_node
$ /usr/pgpool-3.7.7/bin/pcp_detach_node -n 1 -U pgpool
Password:
pcp_detach_node -- Command Successful
pcp_attach_node
$ /usr/pgpool-3.7.7/bin/pcp_attach_node -v -n 1 -U pgpool Password: pcp_attach_node -- Command Successful
pcp_node_count
$ /usr/pgpool-3.7.7/bin/pcp_node_count -U pgpool
Password:
2
pcp_node_info
$ /usr/pgpool-3.7.7/bin/pcp_node_info -n 0 -U pgpool
Password:
192.168.56.92 5432 1 0.500000 waiting primary
$ /usr/pgpool-3.7.7/bin/pcp_node_info -n 1 -U pgpool
Password:
192.168.56.90 5432 1 0.500000 waiting standby
pcp_pool_status
$ /usr/pgpool-3.7.7/bin/pcp_pool_status -U pgpool
Password:
name : listen_addresses
value: *
desc : host name(s) or IP address(es) to listen on
name : heartbeat_destination_port0
value: 9694
desc : destination port for sending heartbeat using NIC device 0
pcp_proc_count
$ /usr/pgpool-3.7.7/bin/pcp_proc_count -U pgpool Password: 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8691 8692
pcp_proc_info
$ /usr/pgpool-3.7.7/bin/pcp_proc_info -U pgpool
Password:
No process information available
pcp_stop_pgpool
$ /usr/pgpool-3.7.7/bin/pcp_stop_pgpool -U pgpool
Password:
pcp_stop_pgpool -- Command Successful
pcp_watchdog_info
$ /usr/pgpool-3.7.7/bin/pcp_watchdog_info -U pgpool
Password:
2 YES 192.168.56.92:9999 Linux xxoo 192.168.56.92
192.168.56.92:9999 Linux xxoo 192.168.56.92 9999 9000 4 MASTER
192.168.56.90:9999 Linux xxoo 192.168.56.90 9999 9000 7 STANDBY
參考:
http://www.pgpool.net/mediawiki/index.php/Downloads
http://www.pgpool.net/docs/latest/en/html/index.html