title: clickhouse cluster : data not replicated
body: <p>I have a cluster with 2 nodes for a test.
  1 Shard and 2 replica.
  3 nodes in the zookeeper cluster</p>
  <pre><code>&lt;remote_servers&gt;
    &lt;ch_cluster&gt;
      &lt;shard&gt;
        &lt;internal_replication&gt;true&lt;/internal_replication&gt;
        &lt;replica&gt;
          &lt;host&gt;ch1&lt;/host&gt;
          &lt;port&gt;9000&lt;/port&gt;
        &lt;/replica&gt;
        &lt;replica&gt;
          &lt;host&gt;ch2&lt;/host&gt;
          &lt;port&gt;9000&lt;/port&gt;
        &lt;/replica&gt;
      &lt;/shard&gt;
    &lt;/ch_cluster&gt;
  &lt;/remote_servers&gt;
  </code></pre>
  <p>macros in ch1 :</p>
  <pre><code>  &lt;macros&gt;
          &lt;shard&gt;shard_01&lt;/shard&gt;
          &lt;replica&gt;replica-01&lt;/replica&gt;
      &lt;/macros&gt;
  </code></pre>
  <p>macro in ch2 :</p>
  <pre><code>   &lt;macros&gt;
          &lt;shard&gt;shard_01&lt;/shard&gt;
          &lt;replica&gt;replica-02&lt;/replica&gt;
      &lt;/macros&gt;
  </code></pre>
  <p>zookeeper configuration :</p>
  <pre><code>   &lt;zookeeper&gt;
          &lt;node&gt;
              &lt;host&gt;zoo1&lt;/host&gt;
              &lt;port&gt;2181&lt;/port&gt;
          &lt;/node&gt;
          &lt;node&gt;
              &lt;host&gt;zoo2&lt;/host&gt;
              &lt;port&gt;2181&lt;/port&gt;
          &lt;/node&gt;
          &lt;node&gt;
              &lt;host&gt;zoo3&lt;/host&gt;
              &lt;port&gt;2181&lt;/port&gt;
          &lt;/node&gt;
      &lt;/zookeeper&gt;
  </code></pre>
  <p>I create the first table</p>
  <pre><code>CREATE TABLE IF NOT EXISTS test.hits_local ON CLUSTER ch_cluster
  (
    `date` Datetime,
    `user_id` String,
    `pageviews` Int32
  )
  ENGINE = ReplicatedMergeTree('/clickhouse/ch_cluster/tables/{shard}/hits_local', '{replica}')
  PARTITION BY toStartOfHour(date)
  ORDER BY (date)
  </code></pre>
  <p>then i create a distributed table :</p>
  <pre><code>CREATE TABLE IF NOT EXISTS test.hits ON CLUSTER 'ch_cluster'
  AS test.hits_local 
   (
        `date` Datetime,
        `user_id` String,
        `pageviews` Int32
      )
  ENGINE = Distributed('ch_cluster', 'test', 'hits_local')
  </code></pre>
  <p>then i insert data in <strong>test.hits_local</strong> table in <strong>ch1</strong>
  when select data from <strong>test.hits_local</strong> in <strong>ch2</strong> there is no data</p>
  <p>then i tried to select from <strong>test.hits</strong> Distributed table in <strong>ch2</strong> the data appear after <strong>5-6 min</strong>
  but no data in <strong>test.hits_local</strong> in <strong>ch2</strong></p>
  <p>my question when the data replicated to <strong>ch2</strong>?
  who is responsible to replicate data to another node ? is it a zookeeper or should i insert the data into tables in ch1 and ch2?
  should i change &lt;<strong>internal_replication</strong>&gt;<em>true</em>&lt;/<strong>internal_replication</strong>&gt; to <strong>false</strong> ?</p>
  <p>is it necessary for the data to be replicated to test.hits_local in <strong>ch2</strong>?</p>
  <p>thank you.</p>