# Data not ingested into master node

**URL:** <https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649>\
**Category:** Elasticsearch\
**Created:** [March 14, 2023, 10:32am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649 "2023-03-14T10:32:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![truekonrads](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/truekonrads/32/28104_2.png) [@truekonrads](https://discuss.elastic.co/u/truekonrads)\
**Post date:** [March 14, 2023, 10:32am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649/1 "2023-03-14T10:32:48Z")

</div>

Hello,  
I have a three node cluster set up with no explicitly defined roles for each nodes. I can see by disk usage and index document count that no data was ingested into master node - only non-master nodes have data on them. How do I equally distribute the data across all three nodes.

```auto
GET /_cat/nodes
10.0.2.98 73 99 6 0.70 0.45 0.22 cdfhilmrstw * esnode03
10.0.2.97 3 94 0 0.23 0.29 0.19 cdfhilmrstw - esnode02
10.0.2.96 17 50 6 0.48 0.65 0.47 cdfhilmrstw - esnode01

```

---

<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:** [March 14, 2023, 11:00am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649/2 "2023-03-14T11:00:20Z")

</div>

What is the full output of the [cluster stats API](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/cluster-stats.html)?

---

<div class="post-metadata">

**Author:** ![truekonrads](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/truekonrads/32/28104_2.png) [@truekonrads](https://discuss.elastic.co/u/truekonrads)\
**Post date:** [March 15, 2023, 5:20am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649/3 "2023-03-15T05:20:12Z")

</div>

[Here's the full output](https://pastebin.com/vkpdYAzi). Originally and at the time of ingestion esnode01 was the master, but after I bounced it esnode03 was elected master. The original jvm size for esnode01 was 32GB just as 02 and 03. The data was sent to the API of esnode01.

---

<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:** [March 15, 2023, 6:05am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649/4 "2023-03-15T06:05:51Z")

</div>

That does not look like the output from the API I linked to. Are you sure you ran the correct API?

Note that when you are indexing data into Elasticsearch data can be sent to any node and the master role does not participate in request processing unles something results in a change to the cluster state, e.g. new index is created or mappings changed. Which node is master at any time does therefore have no imapct at all on which node you index data into nor where the data ends up.

---

<div class="post-metadata">

**Author:** ![truekonrads](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/truekonrads/32/28104_2.png) [@truekonrads](https://discuss.elastic.co/u/truekonrads)\
**Post date:** [March 15, 2023, 7:49am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649/5 "2023-03-15T07:49:10Z")

</div>

Sorry! Here's the right output: [{ "\_nodes": { "total": 3, "successful": 3, "failed": 0 }, - Pastebin.com](https://pastebin.com/h00C5Bqt)

---

<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:** [March 15, 2023, 7:55am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649/6 "2023-03-15T07:55:39Z")

</div>

What is the configuration of the nodes? Are they all identical?

---

<div class="post-metadata">

**Author:** ![truekonrads](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/truekonrads/32/28104_2.png) [@truekonrads](https://discuss.elastic.co/u/truekonrads)\
**Post date:** [March 15, 2023, 7:57am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649/7 "2023-03-15T07:57:19Z")

</div>

They are all identicial, but I suspect I've made a rookie mistake and didn't add enough shards. I'll try to reindex and see how it goes

```auto
{
  "_shards": {
    "total": 2,
    "successful": 2,
    "failed": 0
  },

```

---

<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:** [April 12, 2023, 7:57am UTC](https://discuss.elastic.co/t/data-not-ingested-into-master-node/327649/8 "2023-04-12T07:57:39Z")

</div>

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