# How to throttle shard replication process?

**URL:** https://discuss.elastic.co/t/how-to-throttle-shard-replication-process/59716
**Category:** Elasticsearch
**Created:** [September 2, 2016, 10:30pm UTC](https://discuss.elastic.co/t/how-to-throttle-shard-replication-process/59716 "2016-09-02T22:30:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![suanmeiguo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suanmeiguo/32/11758_2.png) [@suanmeiguo](https://discuss.elastic.co/u/suanmeiguo)
#### Post date: [September 2, 2016, 10:30pm UTC](https://discuss.elastic.co/t/how-to-throttle-shard-replication-process/59716/1 "2016-09-02T22:30:54Z")

</div>

I disabled shard replication (by setting number of replica to 0) when I loaded a tons of data into elasticsearch. After the load finish I enabled the replication (by setting the number to 2). Now I can see elasticsearch started transferring data to replication shards.

At this moment when I query the index or send bulk indexing again, I got "Read timed out. (read timeout=30))". As you can see I've increased the time out to 30 seconds. I can see the cluster is transferring replication data from the head plugin. So I'm guessing it's utilizing all the thread and hence blocking any new queries.

Is there anything I can do to make rooms for searching?

Here's my cluster settings:

```auto
{
   "persistent": {
      "indices": {
         "store": {
            "throttle": {
               "type": "merge",
               "max_bytes_per_sec": "100mb"
            }
         }
      }
   },
   "transient": {
      "cluster": {
         "routing": {
            "rebalance": {
               "enable": "none"
            },
            "allocation": {
               "enable": "all"
            }
         }
      },
      "threadpool": {
         "bulk": {
            "queue_size": "1000",
            "size": "16"
         },
         "index": {
            "queue_size": "1000",
            "size": "16"
         }
      },
      "indices": {
         "store": {
            "throttle": {
               "type": "none"
            }
         }
      }
   }
}

```

Thanks in advance!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 10:22pm UTC](https://discuss.elastic.co/t/how-to-throttle-shard-replication-process/59716/2 "2017-07-05T22:22:43Z")

</div>


