# HIgh availability of ES

**URL:** <https://discuss.elastic.co/t/high-availability-of-es/155975>\
**Category:** Elasticsearch\
**Created:** [November 9, 2018, 5:13am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975 "2018-11-09T05:13:55Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![Yogesh\_BG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_bg/32/70018_2.png) [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Post date:** [November 16, 2018, 9:44am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/21 "2018-11-16T09:44:53Z")

</div>

Sorry i meant, one master node and one data node. It can happen? and what could be the issue? i had set zen.discovery to 1 in this case

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 16, 2018, 10:30am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/22 "2018-11-16T10:30:54Z")

</div>

> [@Yogesh\_BG](#):
>
> metrics-2018.11-10 1 p UNASSIGNED NODE\_LEFT  
> metrics-2018.11.09 1 p UNASSIGNED NODE\_LEFT

This means that there was another node holding the primaries of these shards, and that node left the cluster.

---

<div class="post-metadata">

**Author:** ![Yogesh\_BG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_bg/32/70018_2.png) [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Post date:** [November 20, 2018, 5:28am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/23 "2018-11-20T05:28:08Z")

</div>

I think i understood, initially data node had node.name as node1 and when restarted it came up with node.name as node2. Does this can cause the issue?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 20, 2018, 7:57am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/24 "2018-11-20T07:57:08Z")

</div>

> [@Yogesh\_BG](#):
>
> I think i understood, initially data node had node.name as node1 and when restarted it came up with node.name as node2. Does this can cause the issue?

I don't think so, but I've not tried it. When you fixed the name did it solve the problem?

---

<div class="post-metadata">

**Author:** ![Yogesh\_BG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_bg/32/70018_2.png) [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Post date:** [November 20, 2018, 8:57am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/25 "2018-11-20T08:57:54Z")

</div>

Have not tested it, am suspecting this could be issue. and again am testing the same. if it works i will share the result.

If it doesnt fix the issue, then how it can happen. because i have only one data node and the restart happened. as u said "there was another node holding the primaries of these shards" this can not happen at all, as i dont have an other data node in cluster at all.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 20, 2018, 9:20am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/26 "2018-11-20T09:20:18Z")

</div>

> [@Yogesh\_BG](#):
>
> If it doesnt fix the issue, then how it can happen. because i have only one data node and the restart happened. as u said "there was another node holding the primaries of these shards" this can not happen at all, as i dont have an other data node in cluster at all.

There were, at some point, three data nodes in your cluster:

> [@Yogesh\_BG](#):
>
> ```auto
> {
> "cluster_name" : "metrics-datastore",
> "status" : "red",
> "timed_out" : false,
> "number_of_nodes" : 6,
> "number_of_data_nodes" : 3,
> "active_primary_shards" : 10,
> "active_shards" : 30,
> "relocating_shards" : 0,
> "initializing_shards" : 0,
> "unassigned_shards" : 24,
> "delayed_unassigned_shards" : 0,
> "number_of_pending_tasks" : 0,
> "number_of_in_flight_fetch" : 0,
> "task_max_waiting_in_queue_millis" : 0,
> "active_shards_percent_as_number" : 55.55555555555556
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![Yogesh\_BG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_bg/32/70018_2.png) [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Post date:** [November 20, 2018, 9:22am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/27 "2018-11-20T09:22:14Z")

</div>

This is different example, these are two independent setup, sorry i mixed both setup qns here

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 20, 2018, 9:28am UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/28 "2018-11-20T09:28:12Z")

</div>

> [@Yogesh\_BG](#):
>
> This is different example, these are two independent setup, sorry i mixed both setup qns here

You've asked a number of unrelated questions in this thread. It'd be useful if, when a question is resolved, you mark it as resolved and open a new thread if you have a new question. These long meandering threads are not very useful for other people who may be looking for similar information at a later date.

---

<div class="post-metadata">

**Author:** ![Yogesh\_BG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_bg/32/70018_2.png) [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Post date:** [November 21, 2018, 2:54pm UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/29 "2018-11-21T14:54:17Z")

</div>

yeah sure, thank you

---

<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:** [December 19, 2018, 2:54pm UTC](https://discuss.elastic.co/t/high-availability-of-es/155975/30 "2018-12-19T14:54:32Z")

</div>

Closed on December 19, 2018, 2:54pm UTC

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

[Previous page](https://discuss.elastic.co/t/high-availability-of-es/155975.md?page=1)
