Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions .github/workflows/docs-pages.yaml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/docs-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: "Docs / Publish"
# For more information,
# see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows

on:
push:
branches:
- scylla-4.x
- 'scylla-**'
paths:
- 'docs/**'
- 'faq/**'
- 'manual/**'
- 'changelog/**'
- 'upgrade_guide/**'
workflow_dispatch:

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
concurrency:
group: single
cancel-in-progress: true

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.13'

- name: Set up JDK 8 and 11
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: |
8
11
distribution: 'temurin'

- name: Install uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0

- name: Set up env
run: make -C docs setupenv

- name: Build redirects
run: make -C docs redirects

- name: Build docs
run: make -C docs multiversion

# deploy.sh rebuilds gh-pages from this run's output and force-pushes, so a
# version that built no api/ has its live one deleted rather than left stale.
# Record that before deploying and fail the job after, so the versions that did
# build still publish while the loss is still loud. A total loss stops here
# instead: there would be nothing left to publish.
- name: Check javadoc output
id: javadoc-check
run: ./docs/_utils/check-javadoc-output.sh

- name: Deploy docs to GitHub Pages
run: ./docs/_utils/deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Fail if any version lost content
if: steps.javadoc-check.outputs.not-built != '' || steps.javadoc-check.outputs.missing-api != ''
env:
NOT_BUILT: ${{ steps.javadoc-check.outputs.not-built }}
MISSING_API: ${{ steps.javadoc-check.outputs.missing-api }}
run: |
# A version that never built is gone from the site entirely, which is a
# different loss from one that published without its javadoc.
[ -z "$NOT_BUILT" ] || echo "::error::Not built, now removed from the site entirely: $NOT_BUILT"
[ -z "$MISSING_API" ] || echo "::error::Published without javadoc, their /api/ is now gone from the site: $MISSING_API"
exit 1
1 change: 1 addition & 0 deletions manual/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ for (ColumnDefinitions.Definition definition : row.getColumnDefinitions()) {
authentication/*
bom/*
compression/*
connectivity/*
configuration/*
control_connection/*
custom_codecs/*
Expand Down
66 changes: 66 additions & 0 deletions manual/core/connectivity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

## Connectivity

### Quick overview

How the driver reaches the nodes of a cluster, and what each kind of network needs configured.

* contact points and a local datacenter, and nothing else, when every node is reachable at the
address it broadcasts -- VPC peering, AWS Transit Gateway, or a direct connection over the
public internet.
* a cloud private endpoint that publishes per-node routes needs client routes, which this version
does not have: they are first available in driver 4.19.0.7, see [client routes](client_routes/).
* `advanced.address-translator` for anything else, see
[address resolution](../address_resolution/#driver-side-address-translation).

-----

A `CqlSession` starts from the contact points you give it, discovers the rest of the cluster from
`system.peers`, and then opens connections to each node at the address that node broadcasts. Whether
that last step works is a property of your network, not of the driver, and it is what the pages in
this section are about.

| How your application reaches the cluster | What the driver needs |
|---|---|
| [VPC peering, Transit Gateway or a direct connection](vpc_peering/) -- every node is reachable at the address it broadcasts | contact points and a local datacenter, nothing else |
| [A cloud private endpoint that publishes a per-node entry in `system.client_routes`](client_routes/) -- AWS PrivateLink, Azure Private Link, GCP Private Service Connect | client routes, which need driver 4.19.0.7 or later |
| A proxy in front of the cluster -- one hostname for every node (a single-endpoint PrivateLink included), or EC2 multi-region | an [address translator](../address_resolution/#driver-side-address-translation) |

A cloud private endpoint appears in two of those rows, and the difference is what the cluster
publishes: a per-node endpoint mapping the driver can read means client routes, while one hostname
standing in front of every node means an address translator. The translator has to give each node
its own address and port: nodes translated to the same one share a single endpoint, so the proxy
rather than the driver picks the node, and token-aware and shard-aware routing stop working.
`FixedHostNameAddressTranslator` keeps each node's port, which on ScyllaDB is the same for every
node, so it does not meet this on its own.

Two things are the same in every case and are covered elsewhere:
[SSL](../ssl/) for encrypting the traffic, and [authentication](../authentication/) for proving who
you are. Contact points themselves are covered in the [core manual](../#contact-points).

```eval_rst
.. toctree::
:hidden:
:glob:

vpc_peering/*
client_routes/*
```
48 changes: 48 additions & 0 deletions manual/core/connectivity/client_routes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

## Client routes (private networking)

### Quick overview

Client routes are **not available in driver 4.18.x**. They were first released in 4.19.0.7.

* upgrade to 4.19.0.7 or later to connect through a cloud private endpoint that publishes per-node
routes; the feature also needs ScyllaDB Enterprise 2026.1 or later.
* see the
[client routes documentation](https://java-driver.docs.scylladb.com/stable/manual/core/connectivity/client_routes/)
of the latest driver.

-----

Client routes are how driver 4.19.0.7 and later connects through a **private service connection**:
AWS **PrivateLink** (**PL**), Azure **Private Link**, or GCP **Private Service Connect** (**PSC**).
Those are the provider services in front of the cluster, not names of a driver feature. After the
table it reads, the feature itself is also written as `client_routes` or `clientroutes`.

With client routes, the cluster publishes a per-node endpoint mapping in `system.client_routes`,
and the driver connects to each node through the hostname it finds there instead of through the
address the node broadcasts. 4.18.x neither reads that table nor handles the `CLIENT_ROUTES_CHANGE`
events that keep the mapping current.

A custom [address translator](../../address_resolution/#driver-side-address-translation) is not a
substitute: it maps one address to another, while client routes key each node on its `host_id` and
follow the cluster as the mapping changes. An address translator remains the right tool for a proxy
in front of the cluster -- one hostname for every node, or EC2 multi-region -- provided each node
translates to its own address and port.
Loading
Loading