# Large Data Set with Low Memory = Frozen Nodes

**URL:** https://discuss.elastic.co/t/large-data-set-with-low-memory-frozen-nodes/19587
**Category:** Elasticsearch
**Created:** [September 3, 2014, 8:32am UTC](https://discuss.elastic.co/t/large-data-set-with-low-memory-frozen-nodes/19587 "2014-09-03T08:32:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![El\_Jeffo](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@El\_Jeffo](https://discuss.elastic.co/u/El_Jeffo)
#### Post date: [September 3, 2014, 8:32am UTC](https://discuss.elastic.co/t/large-data-set-with-low-memory-frozen-nodes/19587/1 "2014-09-03T08:32:11Z")

</div>

So I've collected about 100GB of logstash logs over 3 months.

So there are roughly 100 Indexes such as logstash-2014.07.01 and so forth.

I have a cluster of 3 EC2 Instances, 1 CPU w/ 4GB RAM Each. Granted it's  
not much.

When I do queries, it's usually fast, until I run a large timespan that  
span say 10-30 indexes. At that point, I'm guessing each node has loaded  
so much index and field data that it was nearly impossible to avoid  
overrunning the heap or RAM on the cluster. I end up with nodes at 100%  
CPU, and 75% RAM usage.

I just wanted to check what was possible with tuning:

1. Given limited RAM, is it possible somehow tune my nodes such that in  
event of a large query requiring too much RAM:  
1a) The job gets killed due to timeout  
1b) Something else saves my node from becoming non-responsive?

2. Is it possible to make some indexes work fast, while others slow?  
2a) When I query historical data, I don't need an answer quickly. Just  
eventually.  
2b) When I query the last 72 hours, I really want an answer quickly, even  
if that means killing other jobs

3. Is it an unavoidable fact that as my data increases, I have no choice  
but to either:  
3a) Increase cluster RAM to hold every index/field at the same time?  
3b) Delete indexes until everything fits in RAM?

As I attempt to open opensearch to more people, they are running queries in  
Kibana that span a larger and larger timeframe. Thus leading to random  
frozen nodes.

If there was just some way to prevent frozen nodes (Maxed out CPU @ 100%  
despite ram usage at say 3gb out of 4gb) then I would have a more stable  
cluster.

As EC2 does carry a noticable cost, I was trying to minimize my EC2  
requirement. So I'm trying to find ways to selectively reduce performance  
where I don't need it.

Any ideas?

Jeff

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0883a19c-48e5-46d0-9c69-3dc9f411c2e1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0883a19c-48e5-46d0-9c69-3dc9f411c2e1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![El\_Jeffo](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@El\_Jeffo](https://discuss.elastic.co/u/El_Jeffo)
#### Post date: [September 3, 2014, 9:02am UTC](https://discuss.elastic.co/t/large-data-set-with-low-memory-frozen-nodes/19587/2 "2014-09-03T09:02:46Z")

</div>

Some notes from warkolm via #elasticsearch

searchme close index  
[17:52] warkolm: Try these urls:  
[17:52] ..  
_[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html#indices-open-close)_  
[17:52] ..  
_[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://elasticsearch.org/guide/en/elasticsearch/reference/current/indices.html#index-management)_  
[17:53] there you go  
[17:57] but check out the cat apis  
[17:57] if you're new, install monitoring plugins like elastichq  
and kopf, they will give you visual insight into things

Thanks warkolm!

On Wednesday, September 3, 2014 5:32:11 PM UTC+9, El Jeffo wrote:

> So I've collected about 100GB of logstash logs over 3 months.
> 
> So there are roughly 100 Indexes such as logstash-2014.07.01 and so forth.
> 
> I have a cluster of 3 EC2 Instances, 1 CPU w/ 4GB RAM Each. Granted it's  
> not much.
> 
> When I do queries, it's usually fast, until I run a large timespan that  
> span say 10-30 indexes. At that point, I'm guessing each node has loaded  
> so much index and field data that it was nearly impossible to avoid  
> overrunning the heap or RAM on the cluster. I end up with nodes at 100%  
> CPU, and 75% RAM usage.
> 
> I just wanted to check what was possible with tuning:
> 
> 1. Given limited RAM, is it possible somehow tune my nodes such that in  
> event of a large query requiring too much RAM:  
> 1a) The job gets killed due to timeout  
> 1b) Something else saves my node from becoming non-responsive?
> 
> 2. Is it possible to make some indexes work fast, while others slow?  
> 2a) When I query historical data, I don't need an answer quickly. Just  
> eventually.  
> 2b) When I query the last 72 hours, I really want an answer quickly,  
> even if that means killing other jobs
> 
> 3. Is it an unavoidable fact that as my data increases, I have no choice  
> but to either:  
> 3a) Increase cluster RAM to hold every index/field at the same time?  
> 3b) Delete indexes until everything fits in RAM?
> 
> As I attempt to open opensearch to more people, they are running queries  
> in Kibana that span a larger and larger timeframe. Thus leading to random  
> frozen nodes.
> 
> If there was just some way to prevent frozen nodes (Maxed out CPU @ 100%  
> despite ram usage at say 3gb out of 4gb) then I would have a more stable  
> cluster.
> 
> As EC2 does carry a noticable cost, I was trying to minimize my EC2  
> requirement. So I'm trying to find ways to selectively reduce performance  
> where I don't need it.
> 
> Any ideas?
> 
> Jeff

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/50dc4481-f060-47e3-9bea-87e0d5ce3048%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/50dc4481-f060-47e3-9bea-87e0d5ce3048%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:04am UTC](https://discuss.elastic.co/t/large-data-set-with-low-memory-frozen-nodes/19587/3 "2017-07-06T01:04:43Z")

</div>


