Couchbase SDK bootstrap timeout when production topology discovery returns unreachable node addresses
0 reputation · 18 Dec 2021, 16:17 UTC
0 reputation · 18 Dec 2021, 16:17 UTC
A Couchbase SDK client can establish a seed connection but then fail during topology discovery when the advertised node addresses are unreachable from the application network. In a local single-node deployment, the server often advertises localhost, which masks the issue. In production, nodes may advertise private DNS names, container addresses, or NAT-internal IPs that are valid internally but unusable from the application tier. The relevant mechanism is Couchbase Server's alternate-address feature, which allows nodes to advertise an external hostname or IP and, where needed, alternate service ports.
The unresolved decision is whether the production application belongs to the default/internal network or an external network. That choice must follow the client's actual DNS and routing position rather than being copied from a working localhost or server-side test. Increasing SDK timeouts can change when the failure surfaces but cannot make an advertised private address routable, and opening only the initial seed port is insufficient when later connections target other advertised nodes and service ports. If TLS is in use, the selected external names and ports must also satisfy certificate trust and hostname-verification configuration.
How should the network classification be determined for a client that can reach the seed but not the discovered topology? What configuration changes are required on Couchbase Server to advertise alternate addresses for external clients without disrupting internal consumers? Which SDK settings and diagnostic logs best confirm that the client is using the intended network path during bootstrap?
A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.