# Elastic Data Node leaves the cluster after force merge

**URL:** https://discuss.elastic.co/t/elastic-data-node-leaves-the-cluster-after-force-merge/276672
**Category:** Elasticsearch
**Created:** [June 22, 2021, 3:00pm UTC](https://discuss.elastic.co/t/elastic-data-node-leaves-the-cluster-after-force-merge/276672 "2021-06-22T15:00:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![gdd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gdd/32/99260_2.png) [@gdd](https://discuss.elastic.co/u/gdd)
#### Post date: [June 22, 2021, 3:00pm UTC](https://discuss.elastic.co/t/elastic-data-node-leaves-the-cluster-after-force-merge/276672/1 "2021-06-22T15:00:00Z")

</div>

Elasticsearch version 7.3.2, JVM 12.0.2; Heap 15 GB.  
The machine remains blocked and it's not possible to access by ssh.  
These the node statististics just before the issue.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5d0b8271e1c215d0cad034f15d39699eee49fa43.png)  
And these are the system metrics:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e2e7bfc2c9c7e78a61ae9ef434738db6db9602e.png)

Anybody experienced similar problems?

In the same environment I had the same problem making a massive reindex. I could solve the problem increasing index.translog.sync\_interval  
(for target nodes) and reducing the size of the search (for source nodes).

---

<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: [June 22, 2021, 10:57pm UTC](https://discuss.elastic.co/t/elastic-data-node-leaves-the-cluster-after-force-merge/276672/2 "2021-06-22T22:57:07Z")

</div>

Welcome to our community! 😃

> [@gdd](#):
>
> Elasticsearch version 7.3.2

Please upgrade, 7.3 is now [EOL](https://www.elastic.co/support/eol) and there has been numerous improvements between that and latest - 7.13.

What is the output from the `_cluster/stats?pretty&human` API?

---

<div class="post-metadata">

### Author: ![gdd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gdd/32/99260_2.png) [@gdd](https://discuss.elastic.co/u/gdd)
#### Post date: [June 24, 2021, 8:16am UTC](https://discuss.elastic.co/t/elastic-data-node-leaves-the-cluster-after-force-merge/276672/3 "2021-06-24T08:16:38Z")

</div>

Thank you Mark.

Unfortunately I couldn't catch `_cluster/stats?pretty&human ` at that time.  
This is the result now.

```auto
{
  "_nodes" : {
    "total" : 10,
    "successful" : 10,
    "failed" : 0
  },
  "cluster_name" : "cluster",
  "cluster_uuid" : "fatpm6PdQPG-5mBLykcASw",
  "timestamp" : 1624530375346,
  "status" : "green",
  "indices" : {
    "count" : 41,
    "shards" : {
      "total" : 95,
      "primaries" : 47,
      "replication" : 1.0212765957446808,
      "index" : {
        "shards" : {
          "min" : 1,
          "max" : 6,
          "avg" : 2.317073170731707
        },
        "primaries" : {
          "min" : 1,
          "max" : 3,
          "avg" : 1.146341463414634
        },
        "replication" : {
          "min" : 0.0,
          "max" : 4.0,
          "avg" : 1.024390243902439
        }
      }
    },
    "docs" : {
      "count" : 354812060,
      "deleted" : 22793
    },
    "store" : {
      "size" : "807.3gb",
      "size_in_bytes" : 866848224226
    },
    "fielddata" : {
      "memory_size" : "140.1kb",
      "memory_size_in_bytes" : 143464,
      "evictions" : 0
    },
    "query_cache" : {
      "memory_size" : "211mb",
      "memory_size_in_bytes" : 221264112,
      "total_count" : 20095277,
      "hit_count" : 161278,
      "miss_count" : 19933999,
      "cache_size" : 13126,
      "cache_count" : 14610,
      "evictions" : 1484
    },
    "completion" : {
      "size" : "0b",
      "size_in_bytes" : 0
    },
    "segments" : {
      "count" : 1340,
      "memory" : "521.5mb",
      "memory_in_bytes" : 546893786,
      "terms_memory" : "200.8mb",
      "terms_memory_in_bytes" : 210615342,
      "stored_fields_memory" : "308.3mb",
      "stored_fields_memory_in_bytes" : 323347440,
      "term_vectors_memory" : "0b",
      "term_vectors_memory_in_bytes" : 0,
      "norms_memory" : "436.8kb",
      "norms_memory_in_bytes" : 447360,
      "points_memory" : "11.2mb",
      "points_memory_in_bytes" : 11789884,
      "doc_values_memory" : "677.5kb",
      "doc_values_memory_in_bytes" : 693760,
      "index_writer_memory" : "277.9mb",
      "index_writer_memory_in_bytes" : 291497620,
      "version_map_memory" : "283.6kb",
      "version_map_memory_in_bytes" : 290472,
      "fixed_bit_set" : "2kb",
      "fixed_bit_set_memory_in_bytes" : 2128,
      "max_unsafe_auto_id_timestamp" : 1624349184155,
      "file_sizes" : { }
    }
  },
  "nodes" : {
    "count" : {
      "total" : 10,
      "coordinating_only" : 2,
      "data" : 5,
      "ingest" : 0,
      "master" : 3
    },
    "versions" : [
      "7.3.2"
    ],
    "os" : {
      "available_processors" : 40,
      "allocated_processors" : 40,
      "names" : [
        {
          "name" : "Linux",
          "count" : 10
        }
      ],
      "pretty_names" : [
        {
          "pretty_name" : "SUSE Linux Enterprise Server 12 SP4",
          "count" : 7
        },
        {
          "pretty_name" : "SUSE Linux Enterprise Server 15 SP2",
          "count" : 3
        }
      ],
      "mem" : {
        "total" : "299.1gb",
        "total_in_bytes" : 321168334848,
        "free" : "57.4gb",
        "free_in_bytes" : 61699235840,
        "used" : "241.6gb",
        "used_in_bytes" : 259469099008,
        "free_percent" : 19,
        "used_percent" : 81
      }
    },
    "process" : {
      "cpu" : {
        "percent" : 5
      },
      "open_file_descriptors" : {
        "min" : 495,
        "max" : 946,
        "avg" : 682
      }
    },
    "jvm" : {
      "max_uptime" : "22.9d",
      "max_uptime_in_millis" : 1986666245,
      "versions" : [
        {
          "version" : "12.0.2",
          "vm_name" : "OpenJDK 64-Bit Server VM",
          "vm_version" : "12.0.2+10",
          "vm_vendor" : "Oracle Corporation",
          "bundled_jdk" : true,
          "using_bundled_jdk" : true,
          "count" : 10
        }
      ],
      "mem" : {
        "heap_used" : "34.6gb",
        "heap_used_in_bytes" : 37246643632,
        "heap_max" : "136.6gb",
        "heap_max_in_bytes" : 146753978368
      },
      "threads" : 689
    },
    "fs" : {
      "total" : "7.5tb",
      "total_in_bytes" : 8254108151808,
      "free" : "6.7tb",
      "free_in_bytes" : 7379488034816,
      "available" : "6.3tb",
      "available_in_bytes" : 6959488700416
    },
    "discovery_types" : {
      "zen" : 10
    }
  }
}

```

On the other hand I have elasticsearch metrics obtained by metricbeat.  
Two nodes down, just the ones that stored the index which was "force merged":

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50591fb525c205a13d0a561503a73565a56546b6.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/1/3194ba6c3318d3e1b921a859d7237fe86585a902.png)

The involved index consists of one pimary shard and one replica shard.  
These were the index stats just during the force merge (1 segment) before the failure

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/2/128cec529cf10d2731f15830094b45e5d76a34bd.png)  
The following is the current situation (still not merged)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ffce9262343f23d9e54f9cf9d5f13efb2f7f8524.png)

---

<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: [June 27, 2021, 10:55pm UTC](https://discuss.elastic.co/t/elastic-data-node-leaves-the-cluster-after-force-merge/276672/4 "2021-06-27T22:55:18Z")

</div>

Can you upgrade, 7.3 is [EOL](https://www.elastic.co/support/eol)?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [June 27, 2021, 11:00pm UTC](https://discuss.elastic.co/t/elastic-data-node-leaves-the-cluster-after-force-merge/276672/5 "2021-06-27T23:00:23Z")

</div>

What is the specification of the hardware used in the cluster? What type of storage are you using?

---

<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 25, 2021, 11:00pm UTC](https://discuss.elastic.co/t/elastic-data-node-leaves-the-cluster-after-force-merge/276672/6 "2021-07-25T23:00:56Z")

</div>

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