# Performance issues on EC2/EBS

**URL:** <https://discuss.elastic.co/t/performance-issues-on-ec2-ebs/12059>\
**Category:** Elasticsearch\
**Created:** [May 21, 2013, 7:43pm UTC](https://discuss.elastic.co/t/performance-issues-on-ec2-ebs/12059 "2013-05-21T19:43:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_J\_Bottar](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Christopher\_J\_Bottar](https://discuss.elastic.co/u/Christopher_J_Bottar)\
**Post date:** [May 21, 2013, 7:43pm UTC](https://discuss.elastic.co/t/performance-issues-on-ec2-ebs/12059/1 "2013-05-21T19:43:31Z")

</div>

Hello,

We are not getting the desired performance out of our Elasticsearch  
cluster. Here is the setup:

- 4 nodes
- each node is an EC2 m1.large, 2 cpu, 7.5 gb memory
- data on EBS volumes
- 1 index, 2,956,699 documents, 30 shards, 0 replicas
- HAProxy round robin to each node, 1 second connection timeout, 5  
second response timeout
- A document consists of 15 to 50 fields
- Fields are mostly not analyzed strings, longs, floats and a few dates.  
We have no analyzed strings at all.
- ES\_HEAP\_SIZE = 5gb (each node has total of 7.5 gb)
- bootstrap.mlockall: true
- 
- indices.memory.index\_buffer\_size: 50%
- index.refresh\_interval: 30
- index.translog.flush\_threshold\_ops: 50000

The profile of our work is many small jobs of:

1. Retrieve document (not search)
2. Change a field
3. Index document

When HAProxy reports a session rate of about 100 (which is to be read as  
100 requests/sec, I think), we start getting connection timeouts and  
response timeouts.

100 indexes/sec seems pretty low, even in spite of our very modest hardware.

We keep trying new things (adding more nodes, tuning, etc) and our  
next experiment is to take the data off the EBS volumes. It takes a lot of  
time and effort to try these experiments, so I was hoping to post our setup  
here and maybe get a push in the right direction, rather than stumbling  
around blindly.

Thanks for the help.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [May 22, 2013, 4:25pm UTC](https://discuss.elastic.co/t/performance-issues-on-ec2-ebs/12059/2 "2013-05-22T16:25:45Z")

</div>

Christopher J. Bottaro wrote:

> We are not getting the desired performance out of our  
> Elasticsearch  
> cluster. Here is the setup:
> 
> - 4 nodes
> - each node is an EC2 m1.large, 2 cpu, 7.5 gb memory
> - data on EBS volumes
> - 1 index, 2,956,699 documents, 30 shards, 0 replicas
> - HAProxy round robin to each node, 1 second connection timeout,  
> 5  
> second response timeout

[...]

> - index.refresh\_interval: 30

You probably mean 30s. Up this to minutes or even disable it (-1)  
if you can afford the delay in docs showing up in search.

> - index.translog.flush\_threshold\_ops: 50000

Don't set this; the default should be fine.

> When HAProxy reports a session rate of about 100 (which is to be  
> read  
> as 100 requests/sec, I think), we start getting connection  
> timeouts  
> and response timeouts.

This is the rate of new connections through the proxy. You want  
this number to be as _low_ as possible, around a handful per data  
node. Make sure your HTTP client is using keep-alives.

EBS likely isn't your bottleneck here. You probably have some  
client issues you could work out on a laptop first and avoid the  
overhead of the deployment loop.

Drew

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:35am UTC](https://discuss.elastic.co/t/performance-issues-on-ec2-ebs/12059/3 "2017-07-06T02:35:21Z")

</div>


