# Performance issues when pushing data using the elastic API

**URL:** https://discuss.elastic.co/t/performance-issues-when-pushing-data-using-the-elastic-api/253743
**Category:** Elasticsearch
**Created:** [October 29, 2020, 7:07pm UTC](https://discuss.elastic.co/t/performance-issues-when-pushing-data-using-the-elastic-api/253743 "2020-10-29T19:07:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hugohendriks](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hugohendriks](https://discuss.elastic.co/u/hugohendriks)
#### Post date: [October 29, 2020, 7:07pm UTC](https://discuss.elastic.co/t/performance-issues-when-pushing-data-using-the-elastic-api/253743/1 "2020-10-29T19:07:14Z")

</div>

Hi,

we are using a service on-prem to post data to our elastic cluster in the cloud...hosted by elastic. Not so long ago we had 1 instance running on AWS in frankfurt to which we pushed data. We never experienced timeouts or anything on the api calls. A couple of weeks ago we switched to a new Azure instance. Immediately after the switch we noticed quite a bad performance of the api. We see frequent response times of 10 to 20 seconds. At high time we push about 8k of small messages per minute. The health of the cluster all seems well...no out of memory, no weird cpu spikes but still i get these massive timeouts which cause hundreds of messages to fail. I'm using a datastream with a template to roll over from hot to warm but I'm still in my first index. Anyone might have an idea why the api calls are so slow sometimes?

Best regards,  
Hugo

---

<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: [November 3, 2020, 12:01am UTC](https://discuss.elastic.co/t/performance-issues-when-pushing-data-using-the-elastic-api/253743/2 "2020-11-03T00:01:27Z")

</div>

Are you talking about our Elasticsearch Service?

---

<div class="post-metadata">

### Author: ![hugohendriks](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hugohendriks](https://discuss.elastic.co/u/hugohendriks)
#### Post date: [November 3, 2020, 8:04am UTC](https://discuss.elastic.co/t/performance-issues-when-pushing-data-using-the-elastic-api/253743/3 "2020-11-03T08:04:31Z")

</div>

the elastic cloud yes.

I did see error on instances like:

|Oct 31, 2020, 2:01:08 AM UTC|ERROR|i5@westeurope-3|[instance-0000000005] collector [job\_stats] timed out when collecting data|  
|Oct 31, 2020, 2:01:06 AM UTC|ERROR|i2@westeurope-2|[instance-0000000002] collector [node\_stats] timed out when collecting data|  
|Oct 31, 2020, 1:23:18 AM UTC|ERROR|i5@westeurope-3|[instance-0000000005] collector [cluster\_stats] timed out when collecting data|

After i resized the warm part of the cluster to something larger....4 Gb to 15 Gb the response times dropped and returned to normal....and I didn't see the ERROR messages anymore. Could it be that with a fresh provisioning the erronous instances were discarded?

---

<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: [November 4, 2020, 5:26am UTC](https://discuss.elastic.co/t/performance-issues-when-pushing-data-using-the-elastic-api/253743/4 "2020-11-04T05:26:31Z")

</div>

You may have hit resource limits on the original nodes, so upgrading gave you more to work with.

---

<div class="post-metadata">

### Author: ![hugohendriks](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hugohendriks](https://discuss.elastic.co/u/hugohendriks)
#### Post date: [November 4, 2020, 7:52am UTC](https://discuss.elastic.co/t/performance-issues-when-pushing-data-using-the-elastic-api/253743/5 "2020-11-04T07:52:57Z")

</div>

I browsed through all the monitoring stats but I couldn't see any of it which seemed concerning. Is there something of a matrix which shows available threads/iops or something per size of the node. Now I can see only the amount of memory in Gb which also translates to storage.

---

<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: [December 2, 2020, 7:53am UTC](https://discuss.elastic.co/t/performance-issues-when-pushing-data-using-the-elastic-api/253743/6 "2020-12-02T07:53:02Z")

</div>

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