2017-07-25 5 views
0

私はBDRでPostgreSQL 9.4を設定しようとしていますが、マスタにはアドレス169.254.9.90、スレーブにはアドレス169.254.12.48の2つのサーバがあります。私はすでにマスターを立体配置のしているが、私はエラーを取得していますレプリケーションにスレーブに参加しようとすると:PostgreSQL 9.4とBDR SELECT bdr.bdr_group_join ERROR

コマンドが参加する:

SELECT bdr.bdr_group_join(
    local_node_name := 'node2', 
    node_external_dsn := 'host=169.254.12.48 port=5432 user=postgres dbname=amstest password=postgres', 
    join_using_dsn := 'host=169.254.9.90 port=5432 user=postgres dbname=amstest password=postgres' 
); 

イム取得中にエラーがある:

ERROR: connection from remote back to local in replication mode failed DETAIL: remote reported: ERROR: establish BDR: FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres", SSL on FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres", SSL off

DETAIL: Connection string is 'replication=database fallback_application_name='BDR test connection' connect_timeout=30 keepalives=1 keepalives_idle=20 keepalives_interval=20 keepalives_count=5 host=169.254.12.48 port=5432 user=postgres dbname=amstest password=postgres'

CONTEXT: SQL statement "SELECT *
FROM bdr.bdr_test_remote_connectback(join_using_dsn, node_external_dsn)" PL/pgSQL function bdr_group_join(text,text,text,text,integer,text[]) line 39 at SQL statement

誰でも私を助けてくれますか?

答えて

0

FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres"

各ノードは、レプリケーションと非レプリケーションの両方の接続のために、互いのノードに接続できなければなりません。

新たに参加するノードには、接続先として指定している既存のノードが接続できるようにするpg_hba.confがありません。

関連する問題