Vous n'êtes pas identifié(e).
Pages : 1
Bonjour,
Je configure PGPOOL 2 avec la réplication postgreSQL en Sync.
Tout fonctionne quand j'interroge la base :
postgres=# select * from pg_stat_replication ;
-[ RECORD 1 ]----+------------------------------
pid              | 127956
usesysid         | 16394
usename          | repl
application_name | dm1alx0xxx
client_addr      | 192.88.80.217
client_hostname  |
client_port      | 38726
backend_start    | 2021-03-04 17:25:37.583265+01
backend_xmin     |
state            | streaming
sent_lsn         | 0/17000148
write_lsn        | 0/17000148
flush_lsn        | 0/17000148
replay_lsn       | 0/17000148
write_lag        |
flush_lag        |
replay_lag       |
sync_priority    | 1
sync_state       | sync
reply_time       | 2021-03-04 17:30:58.672373+01
mais quand j'interroge "pgpool" je n'ai rien dans la vue Replication_delay et replication state :
[pgpool@dm1alxxxx ~]$ psql -h dl1buxxx -p 9999 -U pgpool -c "show pool_nodes" xxxx
 node_id | hostname  | port | status | lb_weight |  role   | select_cnt | load_balance_node | replication_delay | replication_state | replication_sync_state | last_stat
us_change
---------+-----------+------+--------+-----------+---------+------------+-------------------+-------------------+-------------------+------------------------+----------
-----------
 0       | dm1alx00x | 5432 | up     | 0.500000  | primary | 0          | true              | 0                 |                   |                        | 2021-03-0
4 17:26:12
 1       | dm1alx00x | 5432 | up     | 0.500000  | standby | 0          | false             | 0                 |                   |                        | 2021-03-0
4 17:26:12
(2 rows)
Je ne comprends pas d'ou vient mon problème.
la log du 2 :
2021-03-04 17:25:37.514 CET [31357] LOG:  redo starts at 0/16000028
2021-03-04 17:25:37.517 CET [31357] LOG:  consistent recovery state reached at 0/16000100
2021-03-04 17:25:37.517 CET [31355] LOG:  database system is ready to accept read only connections
Host key verification failed.(peut etre la cause....)
2021-03-04 17:25:37.592 CET [31370] LOG:  started streaming WAL from primary at 0/17000000 on timeline 1
Dernière modification par hdn93 (04/03/2021 19:41:57)
Hors ligne
J'ai trouvé la solution en re-faisant tout depuis 0. 
J'avais mal configuré le ssh entre les deux serveurs... 
Vous pouvez fermer le message.
Merci à vous.
Hors ligne
Pages : 1