# I have a question about elasticsearch configuration

**URL:** <https://discuss.elastic.co/t/i-have-a-question-about-elasticsearch-configuration/234142>\
**Category:** Elasticsearch\
**Created:** [May 25, 2020, 11:36am UTC](https://discuss.elastic.co/t/i-have-a-question-about-elasticsearch-configuration/234142 "2020-05-25T11:36:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![111344](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111344/32/68997_2.png) [@111344](https://discuss.elastic.co/u/111344)\
**Post date:** [May 25, 2020, 11:36am UTC](https://discuss.elastic.co/t/i-have-a-question-about-elasticsearch-configuration/234142/1 "2020-05-25T11:36:36Z")

</div>

I need to configure the service with 2 web servers and 2 servers assigned for elasticsearch.

I'm going to make cluster configuration with 2 elasticsearch server like below.

Server 1 : 1 Master node, 2 data node  
Server 2 : 1 Master node, 2 data node

Does it have any issue if there are 2 master nodes?

To make odd number of master node, I considered to install one more master node in a web server.

However, 2 webservers are configured by redundancy(Active - Standby), so it is impossible to install a master node in one webserver.

If I install master node in 2 webservers, master nodes will be 4 and one master node should be offline.

I'd like to know this configuration is OK.

---

<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:** [May 26, 2020, 12:37am UTC](https://discuss.elastic.co/t/i-have-a-question-about-elasticsearch-configuration/234142/2 "2020-05-26T00:37:31Z")

</div>

Ideally you have 3 master nodes in each cluster. Running one on another server might be an option.

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [May 26, 2020, 12:54am UTC](https://discuss.elastic.co/t/i-have-a-question-about-elasticsearch-configuration/234142/3 "2020-05-26T00:54:39Z")

</div>

7.x changed master election, it might work if you make both web servers voting only nodes for master election.

---

<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:** [June 23, 2020, 12:54am UTC](https://discuss.elastic.co/t/i-have-a-question-about-elasticsearch-configuration/234142/4 "2020-06-23T00:54:43Z")

</div>

Closed on June 23, 2020, 12:54am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
