From: Mariya Rampurawala <Mariya.Rampurawala@veritas.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Wal receiver process listens to physical IP
Date: Fri, 20 Mar 2020 11:27:24 +0000
Message-ID: <E63F940F-BE75-4ABD-ADAA-F4F58EBF2854@veritas.com> (raw)
Hi,
I have been working on a project where I need to virtualize the postgresql standby server.
The wal receiver process listens to the Physical IP and a random port.
How can I configure it to listen to a VIP that the wal sender process can connect to?
Also, Is there a way I can configure the port number for this?
$ /usr/pgsql-12/bin/postgres -V
postgres (PostgreSQL) 12.2
postgresql.conf:
listen_addresses = '10.209.57.17' • This is the VIP
$ ps -ef | grep post
postgres 2945 1 0 05:37 ? 00:00:00 /usr/pgsql-12/bin/postgres -D /pg_mnt/pg-12/data -h 10.209.57.17
postgres 2946 2945 0 05:37 ? 00:00:00 postgres: logger
postgres 2947 2945 0 05:37 ? 00:00:00 postgres: startup recovering 000000010000000000000007
postgres 2952 2945 0 05:37 ? 00:00:00 postgres: checkpointer
postgres 2953 2945 0 05:37 ? 00:00:00 postgres: background writer
postgres 2954 2945 0 05:37 ? 00:00:00 postgres: stats collector
postgres 2955 2945 0 05:37 ? 00:00:04 postgres: walreceiver
$ netstat -anp | grep 55656
tcp 0 0 10.209.57.15:55656 10.209.57.16:5432 ESTABLISHED 2955/postgres: walr
10.209.57.15 is the physical IP
$ ps -ef | grep 2955
postgres 2955 2945 0 05:37 ? 00:00:04 postgres: walreceiver
Regards,
Mariya
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Mariya.Rampurawala@veritas.com
Subject: Re: Wal receiver process listens to physical IP
In-Reply-To: <E63F940F-BE75-4ABD-ADAA-F4F58EBF2854@veritas.com>
References: <E63F940F-BE75-4ABD-ADAA-F4F58EBF2854@veritas.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox