-
I have a sharded cluster with replicas, that is replicated like this:
My shards are being populated by consuming from kafka engine using MVs, my tables are At first, I ran
I then decided to only create backups from the main shard of each node:
The same issue arises, the replicated tables are somehow being replicated upon creation on click house and I can't restore the data in them. Based on the example of sharded cluster, I think I should do these steps sequentially:
I wanted to make sure that I have identified the problem correctly, so I need your advice on this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
if you have multi shard you need to create backup on first replica in each shard
This is not required, and not described in link above
on the second shard it shall be ReplicatedTable know nothing about shards, this is just watch zookeeper path read about use {shard} macro in table in definition |
Beta Was this translation helpful? Give feedback.
if you have multi shard you need to create backup on first replica in each shard
This is not required, and not described in link above
on the second shard it shall be
/clickhouse/tables/shard_2/table_1d
if you restore backup from shard_1 into shard_2 then you will replicated data between shard
ReplicatedTable know nothing about shards, this is just watch zookeeper path read about
zoo_path
in documentationhttps://clickhouse.com/docs/engines/table-engines/mergetree-family/replication#creating-replicated-tables
use…