Re: doc: Mention clock synchronization recommendation for hot_standby_feedback - Mailing list pgsql-hackers

From Euler Taveira
Subject Re: doc: Mention clock synchronization recommendation for hot_standby_feedback
Date
Msg-id c4ed2eb2-fe69-48e1-a064-818dba6b8915@app.fastmail.com
Whole thread Raw
Responses Re: doc: Mention clock synchronization recommendation for hot_standby_feedback
Re: doc: Mention clock synchronization recommendation for hot_standby_feedback
List pgsql-hackers
On Thu, Dec 5, 2024, at 6:43 AM, Jakub Wartak wrote:
One of our customers ran into a very odd case, where hot standby feedback backend_xmin propagation stopped working due to major (hours/days) clock time shifts on hypervisor-managed VMs. This happens (and is fully reproducible) e.g. in scenarios where standby connects and its own VM is having time from the future (relative to primary) and then that time goes back to "normal". In such situation "sends hot_standby_feedback xmin" timestamp messages are stopped being transferred, e.g.:

Is it worth a WARNING message if there is a "huge" time difference
between the servers? We already have the reply time in the message so
it is a matter of defining the "huge" interval plus a roundtrip. We also
need to avoid spamming the log.

Your patch looks good to me. Should it be converted into a
<note>...</note>? (See synchronous_standby_names [1] for an example.)



--
Euler Taveira

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Proposal to add a new URL data type.
Next
From: Tom Lane
Date:
Subject: Re: MinGW compiler warnings in ecpg tests