DC
так можно? или можно как то поменять пути к зукиперу в кх, чтобы писалось в соседний?
Size: a a a
DC
A
PK
ЕА
AK
AK
Timestamp
DateTime64(3), RayIdInt
Int64, CookieGa
String,НГ
S
BB
S
CREATE TABLE default.test ON CLUSTER "all-sharded" (event_time DateTime, test UInt64)
ENGINE MergeTree() ORDER BY tuple();
CREATE TABLE default.test_distr ON CLUSTER "all-sharded" (event_time DateTime, test UInt64)
ENGINE Distributed("all-sharded",default, test, test);
clickhouse-client -mn -h chi-test-cluster-for-alerts-default-0-0-0 --port=9000 -u default
--query="INSERT INTO default.test_distr(event_time, test) SELECT now(), number FROM system.numbers LIMIT 10000 SETTINGS insert_distributed_sync=1"
DC
CREATE TABLE default.test ON CLUSTER "all-sharded" (event_time DateTime, test UInt64)
ENGINE MergeTree() ORDER BY tuple();
CREATE TABLE default.test_distr ON CLUSTER "all-sharded" (event_time DateTime, test UInt64)
ENGINE Distributed("all-sharded",default, test, test);
clickhouse-client -mn -h chi-test-cluster-for-alerts-default-0-0-0 --port=9000 -u default
--query="INSERT INTO default.test_distr(event_time, test) SELECT now(), number FROM system.numbers LIMIT 10000 SETTINGS insert_distributed_sync=1"
DC
DC
Timestamp
DateTime64(3), RayIdInt
Int64, CookieGa
String,DC
S
SELECT *
FROM system.clusters
WHERE cluster = 'all-sharded'
┌─cluster─────┬─shard_num─┬─shard_weight─┬─replica_num─┬─host_name───────────────────────────────┬─host_address─┬─port─┬─is_local─┬─user────┬─default_database─┬─errors_count─┬─estimated_recovery_time─┐
│ all-sharded │ 1 │ 1 │ 1 │ chi-test-cluster-for-alerts-default-0-0 │ 127.0.0.1 │ 9000 │ 1 │ default │ │ 0 │ 0 │
│ all-sharded │ 2 │ 1 │ 1 │ chi-test-cluster-for-alerts-default-0-1 │ 172.17.0.12 │ 9000 │ 0 │ default │ │ 0 │ 0 │
└─────────────┴───────────┴──────────────┴─────────────┴─────────────────────────────────────────┴──────────────┴──────┴──────────┴─────────┴──────────────────┴──────────────┴─────────────────────────┘
НГ
F🚜
YG
AS
AS