# Determining Performance Bottleneck

**URL:** <https://discuss.elastic.co/t/determining-performance-bottleneck/286779>\
**Category:** Elastic Search\
**Created:** [October 14, 2021, 9:51pm UTC](https://discuss.elastic.co/t/determining-performance-bottleneck/286779 "2021-10-14T21:51:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgetz-riskalyze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dgetz-riskalyze/32/94342_2.png) [@dgetz-riskalyze](https://discuss.elastic.co/u/dgetz-riskalyze)\
**Post date:** [October 14, 2021, 9:51pm UTC](https://discuss.elastic.co/t/determining-performance-bottleneck/286779/1 "2021-10-14T21:51:42Z")

</div>

What is the best way to determine the performance bottleneck of the Enterprise Search stack?

We have been getting ETIMEDOUT errors when connecting to App Search via Node.js. It happens intermittently. I am able to simulate this and have run the following scenarios:

1. Start at 5 requests per second for 60 seconds. Grow from 5 requests per second to 50 requests per second for 120 seconds. Send a sustained 50 requests per second for 600 seconds.

2. Send a sustained 8 requests per second for 300 seconds.

In the first test, we start seeing massive spikes in the median response time and number of ETIMEDOUT errors. I also saw in the Elastic dashboard that one or both of our Enterprise Search nodes were failing.

The second test is closer to what we're doing in our dev environment now. I didn't catch any failures of Enterprise Search nodes, but we did get about 5% of the requests failed with ETIMEDOUT.

When I run the first test directly against Elasticsearch, they complete successfully so that leads me to believe it's something with Enterprise Search. The CPU does spike, but it's not getting over 35% as you can see at [Performance - Droplr](https://d.pr/i/mvhGW5).

One thing I should note is that our current usage is based on filters as opposed to searching. I'm not sure if more filters makes a difference.

Where should I be looking and what should I be looking to improve?

Also, does that graph in Elastic Cloud show Enterprise Search instances or Elasticsearch instances? It's showing instance 0 and 1, but doesn't specify whether it's Enterprise Search or Elasticsearch.

---

<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 4, 2022, 8:32am UTC](https://discuss.elastic.co/t/determining-performance-bottleneck/286779/2 "2022-11-04T08:32:41Z")

</div>

Closed on November 4, 2022, 8:32am UTC


