Enhancement #79722
closedrgw/multisite: fall back to plain DNS when all endpoint IPs are marked down
0%
Description
Related tracker items:¶
- Feature #74677 - rgw/multisite: Improve load distribution when zone endpoints use DNS service discovery and
- Enhancement #79692 - rgw/multisite: periodically re-resolve zone endpoint hostnames
Summary & Motivation¶
I wasn't sure whether to open this as a bug or enhancement; I think this one sits at the borderline.
In our squid clusters, we started using the new feature #74677. As a side note, it works great with regards to performance; we see much better replication lags now. One issue we noticed in small clusters (e.g., a multisite cluster each zone having only 2 rgw nodes), an rgw node may see in-complete set of IPs since an rgw node resolves the endpoints only at startup.
For example, when this node (say zone1-node1) was starting, the endpoint resolved into just 1 IP (say zone2-node1) because one of the 2 rgw nodes (zone2-node2) was down for maintenance at the time. Later, when zone2-node1 is taken down, zone1-node1 ends up having an unreachable IP address although zone2-node2 already came from the maintenance.
Enhancement #79692 is opened to address this very issue so that an rgw node can discover the given endpoint periodically so that it can see the joining/leaving nodes dynamically and keep an up-to-date/complete list of IPs. In this example, zone1-node1 would have discovered zone2-node2 after it came back from maintenance and later when zone2-node1 went down for maintenance, it'd still have 1 reachable IP.
Opening this one as a related and complementary one to Enhancement #79692 - rgw/multisite: periodically re-resolve zone endpoint hostnames
Details¶
RGWRESTConn::get_endpoint() returns -EINVAL once every tracked IP of every configured endpoint is marked down, and the caller fails the request outright.
- Scenario 1: When individual IPs/hostnames are given -> all of them have to be unreachable.
- Scenario 2: When a DNS endpoint is given -> all of its resolved IPs have to be unreachable. * As described above, without Enhancement #79692, "all of its resolved IPs" can be stale and/or incomplete.
Instead of failing, we can return the endpoint URL without a connect_to hint and let libcurl resolve and connect on its own.
- In Scenario 1: if ALL single IPs/hostnames are truly not reachable, we'd keep trying instead of waiting out rgw_rest_conn_ip_fail_timeout_secs first.
- In Scenario 2: likewise, but we give libcurl a chance to resolve and see the up-to-date list of IPs.
OO Updated by Oguzhan Ozmen 3 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 71233
UB Updated by Upkeep Bot 3 months ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to eec3ce57db8e630f17c1ee00d693dfd63671acd9
- Fixed In set to v21.3.0-2716-geec3ce57db
- Upkeep Timestamp set to 2026-08-28T19:03:38+00:00