]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rest: add TODO for concurrent endpoint DNS resolution
authorOguzhan Ozmen <oozmen@bloomberg.net>
Wed, 3 Jun 2026 16:37:15 +0000 (16:37 +0000)
committerOguzhan Ozmen <oozmen@bloomberg.net>
Thu, 4 Jun 2026 19:32:19 +0000 (19:32 +0000)
Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
src/rgw/rgw_rest_conn.cc

index ce3425f6e8c66180ca26cc8640392892611f6514..6beb262e84aa27edf615239c4d17b4ab248992f9 100644 (file)
 using namespace std;
 
 void RGWRESTConn::resolve_endpoints() {
+  // 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.
   for (auto& res_ep : resolved_endpoints) {
     const std::string& ep_url = res_ep.url;
     // parse URL