0

I am new in postgresqlDB configuration. I am trying to configure postgresDB in HA mode with the help of pgpool and Elastic IP. Full setup is in AWS RHEL 8 servers. pgpool version : 4.1.2 postgres version - 12

Below links I have followed during the configuration:

https://www.pgpool.net/docs/pgpool-II-4.1.2/en/html/example-cluster.html#EXAMPLE-CLUSTER-STRUCTURE https://www.pgpool.net/docs/42/en/html/example-aws.html https://www.enterprisedb.com/docs/pgpool/latest/03_configuring_connection_pooling/

Currently the postgres and pgpool services are up in all 3 component nodes. But if I am stopping master postgres service/server whole setup is going down and standby node is not taking the place of master. Please find the status of the pool nodes when master is down:

node_id | hostname | port | status | lb_weight | role | select_cnt | load_balance_node | replication_delay | replication_state | replication_sync_state | last_status_change

---------+--------------+------+--------+-----------+---------+------------+-------------------+-------------------+-------------------+------------------------+---------------------

0 | server1 | 5432 | down | 0.333333 | standby | 0 | false | 0 | | | 2022-10-12 12:10:13

1 | server2 | 5432 | up | 0.333333 | standby | 0 | true | 0 | | | 2022-10-13 09:16:07

2 | server3 | 5432 | up | 0.333333 | standby | 0 | false | 0 | | | 2022-10-13 09:16:07

Any help would be appreciated. Thanks in advance.

  • Are you using same configurations as mentioned in Pgpool-II AWS setup guide here ? https://www.pgpool.net/docs/42/en/html/example-aws.html – Umar Hayat Oct 17 '22 at 00:54

0 Answers0