# Performance issue in Azure

**URL:** <https://discuss.elastic.co/t/performance-issue-in-azure/279026>\
**Category:** Elasticsearch\
**Created:** [July 19, 2021, 7:24am UTC](https://discuss.elastic.co/t/performance-issue-in-azure/279026 "2021-07-19T07:24:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kai\_Shen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kai_shen/32/91808_2.png) [@Kai\_Shen](https://discuss.elastic.co/u/Kai_Shen)\
**Post date:** [July 19, 2021, 7:24am UTC](https://discuss.elastic.co/t/performance-issue-in-azure/279026/1 "2021-07-19T07:24:08Z")

</div>

Hi, a customer is running into performance issues on Azure.  
His environment: 3 nodes cluster, 8 GB RAM each. 1 index (around 10 fields), 4 GB storage for this index, so very small.  
Here are his observations:  
A query in dev tools/console takes about 1 sec to complete, first run. Second run can be very fast (10ms) or very slow (again 1 sec).  
Same query in search profiler will always run very fast.  
After a while (one day later), the same query will run slow again.  
The same query on AWS always (!) ran very fast.  
Here is a performance dashboard screenshot:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/43e4e6131ba13f89c7a883776814cbf6b7c7a8c9.png)

Here is the query:

```auto
GET _search
{
  "sort": [
    {
      "timestamp": {
        "order": "desc"
      }
    }
  ],
  "profile": "true",
  "query": {
    "bool": {
      "filter": {
        "bool": {
          "must": [
            {
              "term": {
                "organizationId": "560eb72b-b96e-48a0-a193-02612c069570"
              }
            },
            {
              "terms": {
                "deviceId": [
                  "863723ae-67d9-43ca-8ed1-781bbd3710b7"
                ]
              }
            },
            {
              "range": {
                "timestamp": {
                  "gte": "2021-07-14T12:52:01.044Z"
                }
              }
            }
          ]
        }
      }
    }
  }
}

```

Is this normal behaviour?

---

<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:** [August 16, 2021, 7:24am UTC](https://discuss.elastic.co/t/performance-issue-in-azure/279026/2 "2021-08-16T07:24:08Z")

</div>

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