# Which role does the master act as and if a master down, how to select a new master?

**URL:** <https://discuss.elastic.co/t/which-role-does-the-master-act-as-and-if-a-master-down-how-to-select-a-new-master/12271>\
**Category:** Elasticsearch\
**Created:** [June 5, 2013, 1:24am UTC](https://discuss.elastic.co/t/which-role-does-the-master-act-as-and-if-a-master-down-how-to-select-a-new-master/12271 "2013-06-05T01:24:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dancer](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@dancer](https://discuss.elastic.co/u/dancer)\
**Post date:** [June 5, 2013, 1:24am UTC](https://discuss.elastic.co/t/which-role-does-the-master-act-as-and-if-a-master-down-how-to-select-a-new-master/12271/1 "2013-06-05T01:24:06Z")

</div>

I find something about that, or does anybody tell me where the source code  
is?  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 5, 2013, 6:10am UTC](https://discuss.elastic.co/t/which-role-does-the-master-act-as-and-if-a-master-down-how-to-select-a-new-master/12271/2 "2013-06-05T06:10:43Z")

</div>

Basically, you don't to worry about it.  
If the master node dies, another node will be elected as master.

Master is responsible for taking some decision such as: rebalancing shards when a node die, create new index, ... In short, master is managing the cluster state.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 5 juin 2013 à 03:24, dancer [chuanhua.deng@gmail.com](mailto:chuanhua.deng@gmail.com) a écrit :

## I find something about that, or does anybody tell me where the source code is? 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dancer](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@dancer](https://discuss.elastic.co/u/dancer)\
**Post date:** [June 5, 2013, 7:08am UTC](https://discuss.elastic.co/t/which-role-does-the-master-act-as-and-if-a-master-down-how-to-select-a-new-master/12271/3 "2013-06-05T07:08:01Z")

</div>

thanks your reply, it is very useful for me, but I would like to know how  
it works.  
在 2013年6月5日星期三UTC+8下午2时10分43秒，David Pilato写道：

> Basically, you don't to worry about it.  
> If the master node dies, another node will be elected as master.
> 
> Master is responsible for taking some decision such as: rebalancing shards  
> when a node die, create new index, ... In short, master is managing the  
> cluster state.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 5 juin 2013 à 03:24, dancer \<[chuanh...@gmail.com](mailto:chuanh...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> I find something about that, or does anybody tell me where the source  
> code is?  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:32am UTC](https://discuss.elastic.co/t/which-role-does-the-master-act-as-and-if-a-master-down-how-to-select-a-new-master/12271/4 "2017-07-06T02:32:52Z")

</div>


