Repository navigation
rgw/multisite: fall back to plain endpoint when all resolved IPs are down - #71233
Conversation
Signed-off-by: Oguzhan Ozmen <[email protected]>
…down get_endpoint() returned -EINVAL once every resolved IP of every endpoint was marked down, so sync stalled until one of those IPs recovered. When/If the endpoint is a DNS farm name, the farm may have had healthy members all along, just not the ones we resolved at startup. Return an endpoint URL without a connect_to hint instead, letting libcurl resolve the hostname itself. Keep reporting the condition at the default log level, but report it once on entering and once on leaving it. Fixes: https://tracker.ceph.com/issues/79722 Signed-off-by: Oguzhan Ozmen <[email protected]>
|
A final note....We use this feature in our squid clusters and tested there with a real DNS endpoint in a small cluster where we can easily reproduce partial discovery scenario as described in the parent tracker (https://tracker.ceph.com/issues/79722). Test Bed: 2-zone multisite setup. Each zone having 2 rgw nodes and each node having 2 radosgw instances to serve client requests and 1 radosgw instance (rep.1) to serve replication requests from the other zone. Test Steps and Results: stopped both master zone's replication (rep.1) instances under a continuous client write load, forcing the secondary to mark both resolved master IPs down. When ALL IPs are down, the secondary correctly fell back to a plain endpoint (one log line per connection object, no spam) instead of hard-failing with -EINVAL, and even survived a secondary restart mid-outage where DNS returned zero addresses (health-aware internal DNS). Once master came back, replication resumed and fully caught up immediately. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Fixes: https://tracker.ceph.com/issues/79722
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.