You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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:
2537
2537
<programlisting>
2538
-
listen_rdma_addresses = 'server1,172.0.3.21'
2538
+
listen_rdma_addresses = 'server1,172.17.3.21'
2539
2539
</programlisting>
2540
2540
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.
2541
2541
</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.
<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>
2604
2608
2605
2609
<para><emphasis role="strong">To set up the master node for replication over <acronym>RDMA</acronym> connections via <literal>rsocket</literal>:</emphasis>
2606
2610
</para>
2607
2611
<orderedlist>
2608
2612
<listitem>
2609
2613
<para>Edit the <filename>pg_hba.conf</filename> file to allow client connections and replication from the specified IP addresses:
2610
2614
<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
2613
2617
</programlisting>
2614
2618
</para>
2615
2619
</listitem>
2616
2620
<listitem>
2617
2621
<para>
2618
2622
Edit the <filename>postgresql.conf</filename> file:
2619
2623
<programlisting>
2620
-
listen_rdma_addresses = '172.0.3.21'
2624
+
listen_rdma_addresses = '172.17.3.21'
2621
2625
wal_level = hot_standby
2622
2626
hot_standby = on
2623
2627
max_wal_senders = 1
@@ -2634,8 +2638,8 @@ max_wal_senders = 1
2634
2638
<tip>
2635
2639
<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:
0 commit comments