# Multimaster architecture

**URL:** <https://discuss.elastic.co/t/multimaster-architecture/18857>\
**Category:** Elasticsearch\
**Created:** [July 24, 2014, 8:03am UTC](https://discuss.elastic.co/t/multimaster-architecture/18857 "2014-07-24T08:03:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadim\_Lungu](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Vadim\_Lungu](https://discuss.elastic.co/u/Vadim_Lungu)\
**Post date:** [July 24, 2014, 8:03am UTC](https://discuss.elastic.co/t/multimaster-architecture/18857/1 "2014-07-24T08:03:18Z")

</div>

Hello everyone, I'm to faraway to consider myself an experienced user .

But I would like to make a multimaster elasticsearch cluster  
infrastructure.

As it's described bellow:

master1  
[http://pastebin.com/PZ1saiL5](http://pastebin.com/PZ1saiL5)

master2  
[http://pastebin.com/KV2Jmqby](http://pastebin.com/KV2Jmqby)

master3  
[http://pastebin.com/296Lh5Dy](http://pastebin.com/296Lh5Dy)

data  
[http://pastebin.com/C74vgG5e](http://pastebin.com/C74vgG5e)

So basically my question is:

Each master it's making it's own shards, and if I'm write, in my cluster  
setup I will have:

master1 shard + master2 shards + master3 shard = 7 + 6 + 5 = 18 shards.

Thanks,

--  
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/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 24, 2014, 8:16am UTC](https://discuss.elastic.co/t/multimaster-architecture/18857/2 "2014-07-24T08:16:41Z")

</div>

When you define the shards and replica's it's at a cluster level, it  
doesn't create them on each local server, it spreads them out.

Ultimately what you will find is that the number of shards and replicas  
will be based on which ever nodes is the master at the time.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 24 July 2014 18:03, Vadim Lungu [vadimlun9u@gmail.com](mailto:vadimlun9u@gmail.com) wrote:

> Hello everyone, I'm to faraway to consider myself an experienced user .
> 
> But I would like to make a multimaster elasticsearch cluster  
> infrastructure.
> 
> As it's described bellow:
> 
> master1  
> [master1 - Pastebin.com](http://pastebin.com/PZ1saiL5)
> 
> master2  
> [master2 - Pastebin.com](http://pastebin.com/KV2Jmqby)
> 
> master3  
> [master3 - Pastebin.com](http://pastebin.com/296Lh5Dy)
> 
> data  
> [data1 - Pastebin.com](http://pastebin.com/C74vgG5e)
> 
> So basically my question is:
> 
> Each master it's making it's own shards, and if I'm write, in my cluster  
> setup I will have:
> 
> master1 shard + master2 shards + master3 shard = 7 + 6 + 5 = 18 shards.
> 
> Thanks,
> 
> --  
> 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/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEM624YaCyjULQuEwWHSkS%2Brgt8FqiqsJez%3Dxpyh42jNGhxbQw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624YaCyjULQuEwWHSkS%2Brgt8FqiqsJez%3Dxpyh42jNGhxbQw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Vadim\_Lungu](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Vadim\_Lungu](https://discuss.elastic.co/u/Vadim_Lungu)\
**Post date:** [July 25, 2014, 9:14am UTC](https://discuss.elastic.co/t/multimaster-architecture/18857/3 "2014-07-25T09:14:34Z")

</div>

Thank you Mark for your reply,

If I understood write,

in case when all my cluster nodes are alive i will have:  
master1 shard + master2 shards + master3 shard = 7 + 6 + 5 = 18 shard.

If master 1 die I will have  
master1 shard + master2 shards + master3 shard = replica of 7 shards + 6 +  
5 = 18 shard.

On Thu, Jul 24, 2014 at 11:16 AM, Mark Walkom [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
wrote:

> When you define the shards and replica's it's at a cluster level, it  
> doesn't create them on each local server, it spreads them out.
> 
> Ultimately what you will find is that the number of shards and replicas  
> will be based on which ever nodes is the master at the time.
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 24 July 2014 18:03, Vadim Lungu [vadimlun9u@gmail.com](mailto:vadimlun9u@gmail.com) wrote:
> 
> > Hello everyone, I'm to faraway to consider myself an experienced user .
> > 
> > But I would like to make a multimaster elasticsearch cluster  
> > infrastructure.
> > 
> > As it's described bellow:
> > 
> > master1  
> > [master1 - Pastebin.com](http://pastebin.com/PZ1saiL5)
> > 
> > master2  
> > [master2 - Pastebin.com](http://pastebin.com/KV2Jmqby)
> > 
> > master3  
> > [master3 - Pastebin.com](http://pastebin.com/296Lh5Dy)
> > 
> > data  
> > [data1 - Pastebin.com](http://pastebin.com/C74vgG5e)
> > 
> > So basically my question is:
> > 
> > Each master it's making it's own shards, and if I'm write, in my cluster  
> > setup I will have:
> > 
> > master1 shard + master2 shards + master3 shard = 7 + 6 + 5 = 18 shards.
> > 
> > Thanks,
> > 
> > --  
> > 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/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/58b23d59-12a8-4294-b1b8-a56f968206c4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/XzR6iEPIQ24/unsubscribe](https://groups.google.com/d/topic/elasticsearch/XzR6iEPIQ24/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAEM624YaCyjULQuEwWHSkS%2Brgt8FqiqsJez%3Dxpyh42jNGhxbQw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624YaCyjULQuEwWHSkS%2Brgt8FqiqsJez%3Dxpyh42jNGhxbQw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAEM624YaCyjULQuEwWHSkS%2Brgt8FqiqsJez%3Dxpyh42jNGhxbQw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEM624YaCyjULQuEwWHSkS%2Brgt8FqiqsJez%3Dxpyh42jNGhxbQw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CALd9uJ-riXxEssDrJS\_\_oP4f7OF42VGk5E-BWtghNdY\_Fw6%3D%2Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALd9uJ-riXxEssDrJS__oP4f7OF42VGk5E-BWtghNdY_Fw6%3D%2Bw%40mail.gmail.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:13am UTC](https://discuss.elastic.co/t/multimaster-architecture/18857/4 "2017-07-06T01:13:08Z")

</div>

Closed on July 6, 2017, 1:13am UTC


