pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Logical replication DNS cache
2+ messages / 2 participants
[nested] [flat]

* Logical replication DNS cache
@ 2019-12-12 00:37  Mike Lissner <mlissner@michaeljaylissner.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Mike Lissner @ 2019-12-12 00:37 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

I've got a server at example.com that currently publishes logical
replication to a server in AWS RDS. I plan to move the server at example.com
so that it has a new IP address (but same domain name).

I'm curious if anybody knows how the logical replication subscriber in AWS
would handle that.

There's at least three layers where the DNS might be cached, creating
breakage once the move is complete:

 - Postgres itself

 - AWS's postgresql fork in RDS might have something

 - The OS underlying amazon's RDS service

I expect this is a tough question unless somebody has done this before, but
any ideas on how postgresql would handle this kind of thing? Or is there a
way to flush the DNS cache that postgresql (or RDS or the OS) has?

I'm just beginning to explore this, but if anybody has experience, I'd love
to hear it.

Thanks,


Mike

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Logical replication DNS cache
@ 2019-12-12 14:19  Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  parent: Mike Lissner <mlissner@michaeljaylissner.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2019-12-12 14:19 UTC (permalink / raw)
  To: Mike Lissner <mlissner@michaeljaylissner.com>; pgsql-general@lists.postgresql.org

On 2019-12-12 01:37, Mike Lissner wrote:
> I've got a server at example.com <http://example.com; that currently 
> publishes logical replication to a server in AWS RDS. I plan to move the 
> server at example.com <http://example.com; so that it has a new IP 
> address (but same domain name).
> 
> I'm curious if anybody knows how the logical replication subscriber in 
> AWS would handle that.
> 
> There's at least three layers where the DNS might be cached, creating 
> breakage once the move is complete:
> 
>   - Postgres itself
> 
>   - AWS's postgresql fork in RDS might have something
> 
>   - The OS underlying amazon's RDS service

Postgres itself doesn't cache any host name resolution results.  I don't 
know about the other two pieces.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-12-12 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12 00:37 Logical replication DNS cache Mike Lissner <mlissner@michaeljaylissner.com>
2019-12-12 14:19 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

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