From: John Wiencek <jwiencek3@comcast.net>
To: Erik Serrano <eserranos@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Listening ip in postgres database cluster
Date: Wed, 28 Dec 2022 09:59:47 -0600
Message-ID: <BCFA0EE8-F4E5-4FB2-9626-FBC6ABF3558B@comcast.net> (raw)
In-Reply-To: <CA+dvXXsUgtOojKPaOwA7svjQSAEPwyi8bEcOSUKVbWWwYTu6WQ@mail.gmail.com>
References: <CA+dvXXsUgtOojKPaOwA7svjQSAEPwyi8bEcOSUKVbWWwYTu6WQ@mail.gmail.com>
Look up using Virtual IP (VIP).
> On Dec 28, 2022, at 9:58 AM, Erik Serrano <eserranos@gmail.com> wrote:
>
> Hello guys,
>
> I have a question, it happens that I have a monitoring web application that connects to my postgresql onpremise database... so far so good, however I need to do a HA cluster replication between the databases and the tests I have done have worked in my laboratory.
> However, I have 2 nodes that replicate with different ips... but my application should only see one ip, and when it changes due to failover it stops seeing the server and I must change it manually and restore it when I do the switchover (go back or normalize the database cluster) .
> I would like to know if there is any open source application, script or configuration that allows switching the IPs in case of failover... something like a listener (sqlserver) but postgres.
>
> I would greatly appreciate if you can give me ideas to solve this problem to set up a laboratory and solve the problem.
>
> Thank you very much guys in advance
> regards
>
>
> Erik R. Serrano Saavedra
> Ingeniero de Sistemas Informáticos
> Data Base Administrator
> eserranos@gmail.com <mailto:eserranos@gmail.com>
> 998596691
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jwiencek3@comcast.net, eserranos@gmail.com
Subject: Re: Listening ip in postgres database cluster
In-Reply-To: <BCFA0EE8-F4E5-4FB2-9626-FBC6ABF3558B@comcast.net>
* 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