title: How to setup replica and shard in clickhouse?
body: <p>Do you know if there is any web article that can guide me on how to setup replica or shard in ClickHouse? I am not knowledge on ZooKeeper as well, don't know how to get started; most of the article that I read online is about how it works, but I can't find how to setup it.</p>
  
  <p>all these articles do show some settings; however, I don't how to put them together.</p>
  
  <p>For example, I don't know where to put Zoo Keeper configuration...   </p>
  
  <p>I read these articles </p>
  
  <pre><code>https://clickhouse.yandex/tutorial.html
  https://blog.uiza.io/replicated-vs-distributed-on-clickhouse-part-1/
  https://blog.uiza.io/replicated-and-distributed-on-clickhouse-part-2/
  https://www.altinity.com/blog/2018/5/10/circular-replication-cluster-topology-in-clickhouse
  </code></pre>
  
  <pre><code>Set ZooKeeper locations in configuration file
  &lt;zookeeper-servers&gt;
      &lt;node&gt;
          &lt;host&gt;zoo01.yandex.ru&lt;/host&gt;
          &lt;port&gt;2181&lt;/port&gt;
      &lt;/node&gt;
      &lt;node&gt;
          &lt;host&gt;zoo02.yandex.ru&lt;/host&gt;
          &lt;port&gt;2181&lt;/port&gt;
      &lt;/node&gt;
      &lt;node&gt;
          &lt;host&gt;zoo03.yandex.ru&lt;/host&gt;
          &lt;port&gt;2181&lt;/port&gt;
      &lt;/node&gt;
  &lt;/zookeeper-servers&gt;
  </code></pre>