Skip to content

Fix service discovery refresh-hosts delay

What does this MR do and why?

Currently for refreshing LB hosts, it might sleep for a maximum of 2 mins (conditional loop) at the worst case (which seems to occur most of the time).

This especially creates elongated waiting time (~40 mins) for PG upgrades, because all the old-hosts have to be rotated with the new ones.

Instead of waiting for 2 minutes per host, try to gracefully disconnect all hosts in parallel for 2 minutes, and then force-disconnect each one that is not successfully disconnected.

More details can be found here and here.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #423382 (closed)

Edited by Prabakaran Murugesan

Merge request reports