Repository navigation
Document native support for replica-aware routing - #119544
Conversation
Replica-aware routing now works over the native protocol as well as HTTP, so the page no longer says the feature is unavailable there. - Add a native-protocol section covering `--tls-sni-override` and the `<routing-value>.sticky.<host>` SNI form, plus the custom certificate verification a client needs when it sets the SNI itself. - Replace the "requires the HTTP protocol" limitation with the actual native-protocol constraint: the routing value travels in the TLS SNI, so the connection has to use TLS. - Describe self-serve enablement through the toggles on the service settings page for Enterprise customers, instead of a support ticket. The HTTP and native methods are enabled separately. - Show read-after-write consistency over both interfaces, and note that reusing a routing value also helps when a schema change hasn't yet replicated. - Promote read-after-write consistency and the replica check to top-level sections, since they now apply to both interfaces. - Swap the private preview badge for the beta badge, and drop the contact-support wording from the Enterprise plan badge. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Workflow [PR], commit [127f0da] Summary: ✅ AI ReviewSummaryThis PR updates the Cloud Findings
Final VerdictStatus: Minimum required actions:
|
Readers need to know how to open a native connection, not how the proxy uses the SNI internally. - Remove the "Overriding the SNI in your own client" section, including the Go certificate-verification example. - Trim the native-protocol introduction to the routing value's form and the flags that carry it. - Refer to `--tls-sni-override` rather than "the SNI value" in the limitation and troubleshooting entries, so each one names the flag the reader actually sets. Co-Authored-By: Claude Opus 5 <[email protected]>
|
|
||
| <Warning> | ||
| **Requires the HTTP interface** | ||
| Replica-aware routing is available over both interfaces: |
There was a problem hiding this comment.
This new “available over both interfaces” framing makes the unchanged intro read as if the temporary-table / named-session use cases also work over the native path. They do not: HTTP named sessions are HTTP-only (docs/concepts/features/interfaces/http.mdx:549-555), and native session state is tied to the TCP connection (src/Client/ClientBase.h:521-526; temporary tables disappear when the session ends in docs/reference/statements/create/table/temporary-table.mdx:19-22).
Reusing the same SNI override across separate native connections pins the replica, but it does not keep session-scoped objects reachable across queries. I think the native guidance needs to be scoped to cache locality / read-after-write, or it should explicitly say that session-scoped state still requires the same live connection.
|
|
||
| **Certificate errors over the native protocol** | ||
|
|
||
| - Confirm `--host` is your regular service hostname, and that the routing value is passed through `--tls-sni-override` rather than `--host`. |
There was a problem hiding this comment.
This troubleshooting step is incomplete for a supported client configuration. clickhouse client passes --tls-sni-override straight to SecureStreamSocket::setPeerHostName (src/Client/Connection.cpp:227-231), and Poco uses that same peer host name for CN/SAN verification when openSSL.client.extendedVerification=true (base/poco/NetSSL_OpenSSL/include/Poco/Net/SecureStreamSocket.h:215-225; base/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:463-479).
In that mode, keeping --host on the regular service hostname does not fix the certificate mismatch, so this bullet sends users in the wrong direction. Please either note that the stock clickhouse client examples rely on the default openSSL.client.extendedVerification=false, or explicitly document that clickhouse client cannot currently combine --tls-sni-override with hostname verification.
Updates the replica-aware routing page now that the feature works over the native protocol and Enterprise customers can enable it themselves.
The page previously said replica-aware routing was "currently unavailable over the native protocol" and that native-protocol clients had to switch to HTTP, and it told customers to open a support ticket to get the feature turned on. Both are out of date.
Changes:
--tls-sni-overrideand the<routing-value>.sticky.<host>routing value, kept to what a reader needs in order to open a native connection. Removed the warning callout and the "requires the HTTP protocol" limitation; the real constraint is simply that native-protocol routing needs TLS.Source: Replica-aware Routing blog (internal; not linked from the page).
Two things worth a maintainer's eye:
?session_id=mechanism and calls the feature private preview. I left it alone as a dated historical record, but ifsession_idno longer routes, that entry is pointing customers at something that doesn't work.Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/119544]
Version info
26.9.1.1238(included in26.9and later)