Enhancement #79692
openrgw/multisite: periodically re-resolve zone endpoint hostnames
0%
Description
This one extends the earlier Feature #74677 - rgw/multisite: Improve load distribution when zone endpoints use DNS service discovery
This one is opened to follow-up on the TODO item at "rgw_rest_conn.cc
-> RGWRESTConn::resolve_endpoints()":https://github.com/ceph/ceph/blob/0d30e68c7b51741073e8e8333b7df9ee1bbaf76b/src/rgw/rgw_rest_conn.cc#L16
// TODO: resolve endpoints concurrently using async_resolve on a shared io_context. // In practice zones have a single endpoint or at most a handful of individual // RGW instances, and resolution runs once at process startup, so sequential // cost is negligible. A natural time to address this would be when adding // periodic DNS re-resolution.
Briefly, RGWRESTConn resolves each configured zone endpoint into its A/AAAA records once, when the connection is constructed at process startup, and keeps that address set for the lifetime of the process (RGWRESTConn::resolve_endpoints()).
Proposal: re-resolve endpoint hostnames in the background once their addresses are older than a configurable interval, instead of only at startup.
No data to display