Skip to content

Commit 750e942

Browse files
authored
DOC-13103-updated the description for bootstrap.server (#7617)
1 parent 8af2809 commit 750e942

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

docs/api/components/schemas.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,39 @@ Startup-config:
20802080
type: string
20812081
default: 10s
20822082
server:
2083-
description: Couchbase Server connection string/URL.
2083+
description: |
2084+
Couchbase Server connection string/URL for bootstrap configuration.
2085+
The connection string should only reference Couchbase Server Data (KV) nodes.
2086+
Using other node types (Query, Index, Analytics, or Search nodes) is not supported.
2087+
**Connection String Format**
2088+
Sync Gateway supports the ability to resolve DNS SRV records for alternate hostnames, or specifying multiple hostnames explicitly. See the [Couchbase Go SDK documentation on DNS SRV records](https://docs.couchbase.com/go-sdk/current/howtos/managing-connections.html#using-dns-srv-records) for more details.
2089+
Sync Gateway supports both the couchbases:// for TLS and couchbase:// schemes for insecure connection.
2090+
The supported schemes match that of the Couchbase Server SDKs.
2091+
**Examples of valid server values:**
2092+
- `couchbases://nodeA.example.com`
2093+
- `couchbase://nodeA.example.com`
2094+
- `couchbases://nodeA.example.com,nodeB.example.com`
2095+
- `couchbase://nodeA.example.com,nodeB.example.com`
2096+
- `couchbases://nodeA.example.com:1234,nodeB.example.com:1234`
2097+
- `couchbase://nodeA.example.com:1234,nodeB.example.com:1234`
2098+
- `couchbases://127.0.0.1`
2099+
- `couchbase://127.0.0.1`
2100+
On startup, Sync Gateway will try all hostnames until it is able
2101+
to connect successfully.
2102+
**Port Information**
2103+
When using the couchbase:// or couchbases:// schemes, the port is not required as Sync Gateway will use the default Couchbase Server client-to-node ports (11210 for couchbase:// and 11207 for couchbases://). See the [Couchbase Server ports documentation](https://docs.couchbase.com/server/current/install/install-ports.html#ports-listed-by-communication-path) for more details.
2104+
**Alternate Addresses**
2105+
If your Couchbase Server cluster is running in a containerized, port mapped, or otherwise NATd environment like Docker or Kubernetes, Sync Gateway might need more information to connect to the cluster. In many cases the client is able to automatically select the correct set of addresses.
2106+
If the detection heuristic fails in your environment, it is possible to override this behavior by adding a network parameter to the connection string.
2107+
The network parameter can be:
2108+
- `external`: Force the use alternate addresses of Couchbase Server. Used when Sync Gateway should not share network used by Couchbase Server internally.
2109+
- `default`: Do not allow use of alternate addresses of Couchbase Server. Used when Sync Gateway and Couchbase Server are on the same network.
2110+
Example: `"server": "couchbases://my-cbs-server?network=default"`
2111+
Will force the connection to ignore any alternative external addresses configured
2112+
on the Couchbase Server node.
2113+
**Lost Connections**
2114+
If the connection to Couchbase Server is lost during normal operations, Sync Gateway
2115+
will automatically re-connect to another node in the cluster.
20842116
type: string
20852117
username:
20862118
description: Username for authenticating to server.

0 commit comments

Comments
 (0)