10 Commits
Author SHA1 Message Date
zooqueen 0f1e1b5143 merge: ClickHouse 26.6.1.1 into datastore — preserve debrand + ZAP + gRPC/gcloud removal
Merge upstream/changelog-26.6 (9593 commits) into our debranded fork.
- 190 conflicts resolved: 24 delete-side kept-removed (grpc/arrowflight/gcloud), submodules+version→26.6,
  contrib/CMakeLists keeps zap + new libpng, drops capnproto (zap provides kj), Server.cpp/CMakeLists
  re-apply the ZAP wiring + gRPC/arrowflight/gcloud removal.
- Full-tree debrand re-swept over the new 26.6 code (uniform Datastore naming; Azure fork Clickhouse*
  symbols preserved). 0 clickhouse in product src/programs/CMakeLists.
- Version now 26.6.1.1. gRPC/google-cloud/chdig stay removed; ZAP remains the transport.
2026-06-23 12:23:48 -07:00
zooqueen 12ee47043b datastore: eliminate ALL clickhouse references from the product (no clickhouse, period)
Comprehensive removal across the compiled-product surface (src/programs/base/cmake/configs,
excl contrib third-party + unit tests): URLs clickhouse.com/.tech/.cloud -> hanzo.ai and
github.com/ClickHouse/ClickHouse -> github.com/hanzoai/datastore; fs/zk paths /var/lib/clickhouse
-> /var/lib/datastore, /clickhouse/tables -> /datastore/tables; SQL dict-source keyword
"clickhouse" -> "datastore" (SOURCE(DATASTORE(...)), forwards-only); .clickhouse.hash ELF section
-> .datastore.hash (main.cpp + CMake); hasClickhouse/Clickhouse symbols -> Datastore; all remaining
lowercase clickhouse -> datastore. 175 files. contrib/ (upstream deps) untouched. Build-verify since
this changes the SQL keyword, default paths and the binary-hash section.
2026-06-22 16:33:18 -07:00
zooqueen 332335ddb4 datastore rebrand: standalone "ClickHouse" word -> "Datastore" (prose, strings, comments)
The correct, safe broad rebrand: renames "ClickHouse" only as a whole word (boundary on
BOTH sides), so it rewrites display strings/messages/comments but leaves every compound
C++ symbol intact — `ClickHouseDictionarySource`, `getInfoIfClickHouseDictionarySource`,
`mainEntryClickHouseServer`, `ClickHouseRevision`, `ClickHouse_SOURCE_DIR` are untouched
(an earlier one-sided heuristic mangled suffix symbols like `manageClickHouse`; reverted).
1677 occurrences across 482 files. Compile-safe (string/comment content; symbols preserved).

Still NOT renamed (would be a build-coupled symbol rename, needs build-host iteration): the
199 compound identifiers containing ClickHouse, the `DB::` namespace, the `clickhouse_*`
CMake targets/macros, the lowercase `clickhouse` SQL dictionary-source keyword. Needs build
verification.
2026-06-21 20:10:25 -07:00
Denny CraneandClaude Opus 4.8 b16ea045ea Add hostname_longest_common_prefix and hostname_longest_common_suffix load balancing
Add two new `load_balancing` strategies that sort replicas by the length of
the longest common prefix (or suffix) between the initiator hostname and each
replica hostname, preferring the longest match. Ties are broken randomly, the
same as the existing hostname strategies.

These complement `nearest_hostname` and `hostname_levenshtein_distance`, which
both misbehave when the data center identity is encoded as a short prefix or
suffix in hostnames whose numeric segments have variable length: position-wise
character comparison gets thrown off by the length differences, while longest
common prefix/suffix comparison is not.

`getHostNameLongestCommonPrefix` and `getHostNameLongestCommonSuffix` return a
similarity (the common length, where larger means more similar), so unlike the
other hostname strategies, which store a distance and return it verbatim, the
priority function negates the stored value to turn it into a `Priority` (where
a lower value means higher priority). The comparison is case-sensitive, matching
`getHostNamePrefixDistance` (`nearest_hostname`).

Unit tests in `gtest_get_priority_for_load_balancing` cover the length functions
and the resulting replica ordering. Integration tests mirror the existing
`hostname_levenshtein_distance` coverage in `test_distributed_load_balancing` and
`test_zookeeper_config_load_balancing`.

Related: https://github.com/ClickHouse/ClickHouse/pull/54826

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-12 15:04:54 -03:00
Arsen Muk 4c5de7fe31 Added context for background operations, +tests 2026-01-20 19:06:06 +00:00
Shaun Struwig 76d00ad1af docs/en -> /docs 2025-02-22 21:41:35 +01:00
Oleg V. KozlyukandGitHub 0e52328795 Updated users.yml example 2023-11-08 02:59:54 +03:00
JackyWoo 5da03e8ba5 Add load balancing test_hostname_levenshtein_distance 2023-09-27 10:46:39 +08:00
Alexey Milovidov 17107cb1dc Update examples and remove obsolete embedded dictionaries from configs 2022-04-03 01:21:48 +02:00
BoloniniD 1edebd647e Added users.yaml example to programs/server 2021-05-24 13:46:32 +03:00