# Shards and replicas

**URL:** https://discuss.elastic.co/t/shards-and-replicas/7986
**Category:** Elasticsearch
**Created:** [June 5, 2012, 11:14pm UTC](https://discuss.elastic.co/t/shards-and-replicas/7986 "2012-06-05T23:14:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jerome](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@Jerome](https://discuss.elastic.co/u/Jerome)
#### Post date: [June 5, 2012, 11:14pm UTC](https://discuss.elastic.co/t/shards-and-replicas/7986/1 "2012-06-05T23:14:19Z")

</div>

I don't understand the method of shard and replicas.

I read the doc but don't understand, what's a shard and a replicas.  
A shard seems be a piece of original data and replica some save of  
these shard ?

I've see this : [http://clintongormley.github.com/ElasticSearch.pm/ElasticSearch\_YAPC-EU\_2010/](http://clintongormley.github.com/ElasticSearch.pm/ElasticSearch_YAPC-EU_2010/)

And can i have some explanation on the N°14 (diagram especially) too ?

Thanks for help.

---

<div class="post-metadata">

### Author: ![Michael\_Sick](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Michael\_Sick](https://discuss.elastic.co/u/Michael_Sick)
#### Post date: [June 5, 2012, 11:32pm UTC](https://discuss.elastic.co/t/shards-and-replicas/7986/2 "2012-06-05T23:32:02Z")

</div>

Try:  
[http://elasticsearch-users.115913.n3.nabble.com/Shards-and-replicas-td2819984.html](http://elasticsearch-users.115913.n3.nabble.com/Shards-and-replicas-td2819984.html)

and  
[http://www.snailinaturtleneck.com/blog/2010/08/09/sharding-and-replica-sets-illustrated/](http://www.snailinaturtleneck.com/blog/2010/08/09/sharding-and-replica-sets-illustrated/)

A data set is sharded when it's broken into pieces and distributed across  
nodes. Simple (but with issues) example would be sharding all names in a  
data set about people across 26 nodes - one for each letter in the  
alphabet. Unfortunately that example balances badly (your Z node will be  
underused and your S node might be swamped).

A shard is replicated when there's more than one copy.

Shards enable parallel processing on separate nodes. Replicas improve  
throughput as you have more choices about where to process data and they  
improve availability. Once you have the basics, there are many good  
discussions on sharding / replication strategies on this list.

--Mike

On Tue, Jun 5, 2012 at 7:14 PM, Jérome [pivertjerome@gmail.com](mailto:pivertjerome@gmail.com) wrote:

> I don't understand the method of shard and replicas.
> 
> I read the doc but don't understand, what's a shard and a replicas.  
> A shard seems be a piece of original data and replica some save of  
> these shard ?
> 
> I've see this :  
> [http://clintongormley.github.com/ElasticSearch.pm/ElasticSearch\_YAPC-EU\_2010/](http://clintongormley.github.com/ElasticSearch.pm/ElasticSearch_YAPC-EU_2010/)
> 
> And can i have some explanation on the N°14 (diagram especially) too ?
> 
> Thanks for help.

---

<div class="post-metadata">

### Author: ![Jerome](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@Jerome](https://discuss.elastic.co/u/Jerome)
#### Post date: [June 6, 2012, 8:58am UTC](https://discuss.elastic.co/t/shards-and-replicas/7986/3 "2012-06-06T08:58:44Z")

</div>

Thanks for explanation and examples, i understood now. \o/

---

<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, 3:25am UTC](https://discuss.elastic.co/t/shards-and-replicas/7986/4 "2017-07-06T03:25:28Z")

</div>


