# Sending Data to Nodes

**URL:** <https://discuss.elastic.co/t/sending-data-to-nodes/149573>\
**Category:** Elasticsearch\
**Created:** [September 23, 2018, 2:18am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573 "2018-09-23T02:18:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![lkenetadmin](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lkenetadmin](https://discuss.elastic.co/u/lkenetadmin)\
**Post date:** [September 23, 2018, 2:18am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/1 "2018-09-23T02:18:17Z")

</div>

We have 2 data nodes but we want to use first node-2 until the storage is full then send the data to node-3. Is there anyway to address the way we want to send data to elasticsearch? Thank you.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/5/953edd24486d0780f624772f3e9599cf45e7ca7e.png)

---

<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:** [September 23, 2018, 3:09am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/2 "2018-09-23T03:09:30Z")

</div>

No. That's not how elasticsearch works.  
Why do you want to do this?

---

<div class="post-metadata">

**Author:** ![lkenetadmin](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lkenetadmin](https://discuss.elastic.co/u/lkenetadmin)\
**Post date:** [September 23, 2018, 3:21am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/3 "2018-09-23T03:21:53Z")

</div>

We just want to use all the disk space in our node-2 first before we use the node-3. But if it's not possible we will just use the 2 nodes.

---

<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:** [September 23, 2018, 3:41am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/4 "2018-09-23T03:41:26Z")

</div>

The question is not what you want to do but why you want to do that? What is the use case or the technical reason?  
What problem do you want to solve?

---

<div class="post-metadata">

**Author:** ![lkenetadmin](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lkenetadmin](https://discuss.elastic.co/u/lkenetadmin)\
**Post date:** [September 23, 2018, 3:44am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/5 "2018-09-23T03:44:56Z")

</div>

If we use it without any modifications, the data is distributed to both nodes. Once node-3 is down, some of the data will be missing from our monitoring. What we want is to use only 1 node first before we consume the other node.

---

<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:** [September 23, 2018, 7:27am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/6 "2018-09-23T07:27:10Z")

</div>

I'm afraid I don't understand. What's the problem with node3?

---

<div class="post-metadata">

**Author:** ![lkenetadmin](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lkenetadmin](https://discuss.elastic.co/u/lkenetadmin)\
**Post date:** [September 23, 2018, 11:48pm UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/7 "2018-09-23T23:48:47Z")

</div>

There's nothing wrong with node-3. We are just thinking is when node-3 goes down all the data from node-3 will be missing hence our kibana monitoring will have missing data also.

---

<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:** [September 24, 2018, 1:46am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/8 "2018-09-24T01:46:52Z")

</div>

Why would that happen? By default, every shard is replicated in the cluster. So if node 3 dies, another node will have the data anyway.

---

<div class="post-metadata">

**Author:** ![lkenetadmin](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lkenetadmin](https://discuss.elastic.co/u/lkenetadmin)\
**Post date:** [September 25, 2018, 12:44am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/9 "2018-09-25T00:44:52Z")

</div>

We didn't enable our replicate shards since our resources is only limited.

---

<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:** [September 25, 2018, 1:58am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/10 "2018-09-25T01:58:22Z")

</div>

So you want a "safe" cluster but without any safe option like replication?

I'm afraid this is not going to work.

Coming back to your initial question, you can force allocate the shards based on tags that you'd put on your nodes. See [https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-allocation-filtering.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-allocation-filtering.html)

All that will be manual of course.

---

<div class="post-metadata">

**Author:** ![lkenetadmin](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lkenetadmin](https://discuss.elastic.co/u/lkenetadmin)\
**Post date:** [September 25, 2018, 2:42am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/11 "2018-09-25T02:42:59Z")

</div>

We will apply our replicate shards once we have the proper resources. Thank you for your help 🙂

---

<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:** [October 23, 2018, 2:43am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573/12 "2018-10-23T02:43:08Z")

</div>

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