# Index paramerters

**URL:** <https://discuss.elastic.co/t/index-paramerters/17664>\
**Category:** Elasticsearch\
**Created:** [May 22, 2014, 7:26am UTC](https://discuss.elastic.co/t/index-paramerters/17664 "2014-05-22T07:26:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjelloun](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@benjelloun](https://discuss.elastic.co/u/benjelloun)\
**Post date:** [May 22, 2014, 7:26am UTC](https://discuss.elastic.co/t/index-paramerters/17664/1 "2014-05-22T07:26:35Z")

</div>

Hello,

I need to index 100 000 documents with 1Mo.  
This is my configuration of ElasticSearch index:

"index": {

```
"type": "doc",

"bulk_size": 100,

"number_of_shards" : 5, 

"number_of_replicas" : 2

```

}

I need to know what each parameters effect.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/bdf82941-c406-4f91-94cd-adddf35676ec%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bdf82941-c406-4f91-94cd-adddf35676ec%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![benjelloun](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@benjelloun](https://discuss.elastic.co/u/benjelloun)\
**Post date:** [May 22, 2014, 12:43pm UTC](https://discuss.elastic.co/t/index-paramerters/17664/2 "2014-05-22T12:43:59Z")

</div>

Hello,

I found some informations wich are not complete :

There is no “correct” number of actions to perform in a single bulk call.  
You should experiment with different settings to find the optimum size for  
your particular workload.

Every time you index a document elasticsearch will decide which primary  
shard is supposed to hold that document and will index it there. Primary  
shards are not copy of the data, they are the data! Having multiple shards  
does help taking advantage of parallel processing on a single machine

Another type of shard is replica. The default is 1, meaning that every  
primary shard will be copied to another shard that will contain the same  
data. Replicas are used to increase search performance and for fail-over.

regards,

Anass BENJELLOUN

Le jeudi 22 mai 2014 09:26:35 UTC+2, anass benjelloun a écrit :

> Hello,
> 
> I need to index 100 000 documents with 1Mo.  
> This is my configuration of Elasticsearch index:
> 
> "index": {
> 
> ```
> "type": "doc",
> 
> "bulk_size": 100,
> 
> "number_of_shards" : 5, 
> 
> "number_of_replicas" : 2
> 
> ```
> 
> }
> 
> I need to know what each parameters effect.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/570e793b-4f7a-4021-a8a4-5453d59a154c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/570e793b-4f7a-4021-a8a4-5453d59a154c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:27am UTC](https://discuss.elastic.co/t/index-paramerters/17664/3 "2017-07-06T01:27:40Z")

</div>


