Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ae057b9

Browse files
author
Liudmila Mantrova
committed
Doc fix for RDMA - comments from M.Shurutov
1 parent a692e35 commit ae057b9

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,10 +2535,14 @@ ssh -L 63333:db.foo.com:5432 joe@shell.foo.com
25352535
<listitem>
25362536
<para>On the server side, add the <xref linkend="listen-rdma-addresses"> GUC variable to the <filename>postgresql.conf</filename> configuration file to specify TCP/IP address(es) on which the server is to listen for new <acronym>RDMA</acronym> connections via <literal>rsocket</literal> from client applications. For example:
25372537
<programlisting>
2538-
listen_rdma_addresses = 'server1,172.0.3.21'
2538+
listen_rdma_addresses = 'server1,172.17.3.21'
25392539
</programlisting>
25402540
You can specify a comma-separated list of host names and/or numeric IP addresses. If set to <literal>*</>, this variable will enable <acronym>RDMA</acronym> connections via <literal>rsocket</literal> to all the available IP interfaces.
25412541
</para>
2542+
<important>
2543+
<para>Since all connections use the same port specified in the <varname>port</varname> variable, make sure to specify different IP addresses in <varname>listen_addresses</varname> and <varname>listen_rdma_addresses</varname> to avoid conflicts.
2544+
</para>
2545+
</important>
25422546
</listitem>
25432547

25442548
<listitem>
@@ -2600,24 +2604,24 @@ pg_dump <replaceable>dbname</> -h <replaceable>hostname</> > db.sql
26002604

26012605
<sect2>
26022606
<title>Using <acronym>RDMA</acronym> for Master-Slave Replication</title>
2603-
<para>To enable master-slave replication over <acronym>RDMA</acronym> connections via <literal>rsocket</literal>, you need to configure master and slave nodes. For example, to allow client connections to the server 172.0.3.21 from 172.0.3.0/24 addresses on behalf of the <literal>postgres</> user, follow the steps below:</para>
2607+
<para>To enable master-slave replication over <acronym>RDMA</acronym> connections via <literal>rsocket</literal>, you need to configure master and slave nodes. For example, to allow client connections to the server 172.17.3.21 from 172.17.3.0/24 addresses on behalf of the <literal>postgres</> user, follow the steps below:</para>
26042608

26052609
<para><emphasis role="strong">To set up the master node for replication over <acronym>RDMA</acronym> connections via <literal>rsocket</literal>:</emphasis>
26062610
</para>
26072611
<orderedlist>
26082612
<listitem>
26092613
<para>Edit the <filename>pg_hba.conf</filename> file to allow client connections and replication from the specified IP addresses:
26102614
<programlisting>
2611-
host all postgres 172.0.3.0/24 md5
2612-
host replication postgres 172.0.3.0/24 md5
2615+
host all postgres 172.17.3.0/24 md5
2616+
host replication postgres 172.17.3.0/24 md5
26132617
</programlisting>
26142618
</para>
26152619
</listitem>
26162620
<listitem>
26172621
<para>
26182622
Edit the <filename>postgresql.conf</filename> file:
26192623
<programlisting>
2620-
listen_rdma_addresses = '172.0.3.21'
2624+
listen_rdma_addresses = '172.17.3.21'
26212625
wal_level = hot_standby
26222626
hot_standby = on
26232627
max_wal_senders = 1
@@ -2634,8 +2638,8 @@ max_wal_senders = 1
26342638
<tip>
26352639
<para>If you set <varname>log_connections</varname> and <varname>log_disconnections</varname> GUC variables, the log file will include detailed information on each client connection and disconnection, respectively. For example:
26362640
<programlisting>
2637-
LOG: connection received: host=172.0.3.22 port=37709 with_rsocket=true
2638-
LOG: disconnection: session time: 0:00:00.622 user=postgres database= host=172.0.3.22 port=37709 with_rsocket=true
2641+
LOG: connection received: host=172.17.3.22 port=37709 with_rsocket=true
2642+
LOG: disconnection: session time: 0:00:00.622 user=postgres database= host=172.17.3.22 port=37709 with_rsocket=true
26392643
</programlisting>
26402644
</para>
26412645
</tip>
@@ -2653,7 +2657,7 @@ export WITH_RSOCKET=true
26532657
<listitem>
26542658
<para>Copy the data from the master node using <application>pg_basebackup</application>:
26552659
<programlisting>
2656-
pg_basebackup -D <replaceable>datadir</> -x -R -h 172.0.3.21 -U postgres
2660+
pg_basebackup -D <replaceable>datadir</> -x -R -h 172.17.3.21 -U postgres
26572661
</programlisting>
26582662
All the data appears on the slave node under the specified <replaceable>datadir</> directory.
26592663
</para>
@@ -2662,7 +2666,7 @@ All the data appears on the slave node under the specified <replaceable>datadir<
26622666
<para>Make sure the <filename><replaceable>datadir</>/recovery.conf</filename> contains the <literal>with_rsocket</literal> parameter.
26632667
<programlisting>
26642668
standby_mode = 'on'
2665-
primary_conninfo = 'user=postgres host=172.0.3.21 port=5432 with_rsocket=true'
2669+
primary_conninfo = 'user=postgres host=172.17.3.21 port=5432 with_rsocket=true'
26662670
</programlisting>
26672671
</para>
26682672
</listitem>

0 commit comments

Comments
 (0)