# \[Solved\] Elasticseach stuck at 213 documents and losing data

**URL:** <https://discuss.elastic.co/t/solved-elasticseach-stuck-at-213-documents-and-losing-data/151517>\
**Category:** Elasticsearch\
**Created:** [October 8, 2018, 8:12pm UTC](https://discuss.elastic.co/t/solved-elasticseach-stuck-at-213-documents-and-losing-data/151517 "2018-10-08T20:12:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_montenegro\_car](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lucas_montenegro_car/32/36264_2.png) [@Lucas\_montenegro\_car](https://discuss.elastic.co/u/Lucas_montenegro_car)\
**Post date:** [October 8, 2018, 8:12pm UTC](https://discuss.elastic.co/t/solved-elasticseach-stuck-at-213-documents-and-losing-data/151517/1 "2018-10-08T20:12:17Z")

</div>

I have an elasticsearch setup with 1 node and no replica nodes sharing a droplet with a Kibana setup in digital ocean. My droplet has 2GB ram and enough CPU. My elasticsearch JVM is set to use 768MB RAM (so kibana can have its share).

My problem is that I seem to be losing data since my node is stuck at 213 documents and I have already noticed that some important documents are gone.

I couldn't find documentation on how this works. The only thing I found about this is that more ram is better when dealing with large amounts of data, and that having a secondary node to store replicas is a good practice.

Should I allocate more ram? How can I know if my data is beeing deleted to allocate more? Is this some sort of pagination? Can this be a kibana problem?

My cluster health: { "cluster\_name" : "\*\*\*", "status" : "yellow", "timed\_out" : false, "number\_of\_nodes" : 1, "number\_of\_data\_nodes" : 1, "active\_primary\_shards" : 20, "active\_shards" : 20, "relocating\_shards" : 0, "initializing\_shards" : 0, "unassigned\_shards" : 5, "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" : 80.0 }

---

<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:** [October 9, 2018, 8:11am UTC](https://discuss.elastic.co/t/solved-elasticseach-stuck-at-213-documents-and-losing-data/151517/2 "2018-10-09T08:11:50Z")

</div>

What does `_cat/indices` show?

---

<div class="post-metadata">

**Author:** ![Lucas\_montenegro\_car](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lucas_montenegro_car/32/36264_2.png) [@Lucas\_montenegro\_car](https://discuss.elastic.co/u/Lucas_montenegro_car)\
**Post date:** [October 9, 2018, 2:43pm UTC](https://discuss.elastic.co/t/solved-elasticseach-stuck-at-213-documents-and-losing-data/151517/3 "2018-10-09T14:43:28Z")

</div>

I solved it. It was the documents id. I was manually generating them, and each time my sistem updated, the ids where reset. I'm researching now how to generate id correctly.

---

<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:** [November 6, 2018, 2:43pm UTC](https://discuss.elastic.co/t/solved-elasticseach-stuck-at-213-documents-and-losing-data/151517/4 "2018-11-06T14:43:28Z")

</div>

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