# My Elasticsearch experiences freezing 3 to 4 times a day

**URL:** <https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438>\
**Category:** Elasticsearch\
**Created:** [November 4, 2023, 2:59pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438 "2023-11-04T14:59:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ihatecrypto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ihatecrypto/32/127222_2.png) [@ihatecrypto](https://discuss.elastic.co/u/ihatecrypto)\
**Post date:** [November 4, 2023, 2:59pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/1 "2023-11-04T14:59:18Z")

</div>

Hello everyone,

I'm currently facing an issue that's not well defined.

 ![111](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7d4e7c7babc2224d75cef74c0e78adfa5a541cdf.png)  
. The freezing periods last approximately 30 to 60 seconds. During these periods, I'm unable to query it using Kibana or the Nodejs client. I've monitored the system, and I can see interruptions as shown in the graph.

There's nothing unusual in the logs. Has anyone in the community encountered this problem before and could provide guidance on how to resolve it?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 4, 2023, 3:17pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/2 "2023-11-04T15:17:55Z")

</div>

What are the configuration of your cluster? How many nodes do you have?

You need to provide more context.

---

<div class="post-metadata">

**Author:** ![ihatecrypto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ihatecrypto/32/127222_2.png) [@ihatecrypto](https://discuss.elastic.co/u/ihatecrypto)\
**Post date:** [November 4, 2023, 11:08pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/3 "2023-11-04T23:08:34Z")

</div>

So sorry. Here my info:  
Custer health:

```auto
{
  "cluster_name": "elasticsearch",
  "status": "yellow",
  "timed_out": false,
  "number_of_nodes": 1,
  "number_of_data_nodes": 1,
  "active_primary_shards": 52,
  "active_shards": 52,
  "relocating_shards": 0,
  "initializing_shards": 0,
  "unassigned_shards": 30,
  "delayed_unassigned_shards": 0,
  "number_of_pending_tasks": 0,
  "number_of_in_flight_fetch": 0,
  "task_max_waiting_in_queue_millis": 0,
  "active_shards_percent_as_number": 63.41463414634146
}

```

Node and Server Information

 ![01](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b3d811a25303d0ab4ddde34c4c7b1958b941a83.png)

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 4, 2023, 11:16pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/4 "2023-11-04T23:16:18Z")

</div>

So you have a single-node cluster running on a machine with ~ 32 GB/10 vCPU.

What is the disk type? SSD or HDD? Your CPU utilization is low, but your load is pretty high in some moments, this suggests thar you have some I/O issues.

Did you configure Elasticsearch JVM Heap or are you using the default (which is 50%)?

Also, are you running anything else in this same server? And what is the version you are using?

---

<div class="post-metadata">

**Author:** ![ihatecrypto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ihatecrypto/32/127222_2.png) [@ihatecrypto](https://discuss.elastic.co/u/ihatecrypto)\
**Post date:** [November 4, 2023, 11:34pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/5 "2023-11-04T23:34:40Z")

</div>

> [@leandrojmp](#):
>
> So you have a single-node cluster running on a machine with ~ 32 GB/10 vCPU.
> 
> What is the disk type? SSD or HDD? Your CPU utilization is low, but your load is pretty high in some moments, this suggests thar you have some I/O issues.
> 
> Did you configure Elasticsearch JVM Heap or are you using the default (which is 50%)?
> 
> Also, are you running anything else in this same server? And what is the version you are using?

I don't sure Hard disk type. With lsblk command is show HDD but on seller page they said SSD (netcup)

```auto
lsblk -d -o name,rota,size,type
NAME ROTA SIZE TYPE
sda 1 2T disk
sr0 1 1024M rom

```

Did you configure Elasticsearch JVM Heap or are you using the default (which is 50%)?  
No, i use default config.

Also, are you running anything else in this same server?  
I installed mariadb but it's not used much

And what is the version you are using?  
And here is information:

```auto
{
  "name" : "v2202212170493212509",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "00001",
  "version" : {
    "number" : "8.5.3",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "4ed5ee9afac63de92ec98f404ccbed7d3ba9584e",
    "build_date" : "2022-12-05T18:22:22.226119656Z",
    "build_snapshot" : false,
    "lucene_version" : "9.4.2",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

```

---

<div class="post-metadata">

**Author:** ![ihatecrypto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ihatecrypto/32/127222_2.png) [@ihatecrypto](https://discuss.elastic.co/u/ihatecrypto)\
**Post date:** [November 4, 2023, 11:45pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/6 "2023-11-04T23:45:25Z")

</div>

Here about JVM Heap

 ![112233](https://us1.discourse-cdn.com/elastic/original/3X/4/0/40671ff6e40d7bd690fb4d6a40fd1e91e60d1d80.png)

I see that the problem still occurs when the CPU is below 20%.  
Maybe as you said, the problem lies with the hard disk

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 5, 2023, 12:05am UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/7 "2023-11-05T00:05:43Z")

</div>

> [@ihatecrypto](#):
>
> I see that the problem still occurs when the CPU is below 20%.  
> Maybe as you said, the problem lies with the hard disk

Yeah, low cpu but high load is an indication of high iowait, in this image you shared the CPU image stays pretty low, below 20%, but the load reached almost 60 at one point, which is an issue since you have only 10 vCPU.

HDD drives can impact a lot in Elasticsearch performance, you need to check this.

What is the filesystem, xfs or ext4/3? If it is ext4 maybe you can try to improve things a little changing some mount parameters.

---

<div class="post-metadata">

**Author:** ![ihatecrypto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ihatecrypto/32/127222_2.png) [@ihatecrypto](https://discuss.elastic.co/u/ihatecrypto)\
**Post date:** [November 5, 2023, 1:35am UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/8 "2023-11-05T01:35:02Z")

</div>

> [@leandrojmp](#):
>
> xfs or ext4/3

What is the filesystem, xfs or ext4/3?  
/dev/sda3 ext4 2.0T 533G 1.4T 28% /  
/dev/sda2 ext4 974M 198M 709M 22% /boot  
I saw ext4, how can i improve it ?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 5, 2023, 2:57am UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/9 "2023-11-05T02:57:16Z")

</div>

> [@ihatecrypto](#):
>
> I saw ext4, how can i improve it ?

You need to check if the mount options already include the `noatime` option, if not, you can add it, this can give you a little boost in performance, but it is not guaranteed that it will solve your issue since HDD disks are still not good for Elasticsearch.

But please read about it first because any mistake can impact your system and put it on a state where the system may not be able to boot.

One reference [article is this one](https://opensource.com/article/20/6/linux-noatime).

---

<div class="post-metadata">

**Author:** ![ihatecrypto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ihatecrypto/32/127222_2.png) [@ihatecrypto](https://discuss.elastic.co/u/ihatecrypto)\
**Post date:** [November 6, 2023, 8:39pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/10 "2023-11-06T20:39:49Z")

</div>

> [@leandrojmp](#):
>
> You need to check if the mount options already include the `noatime` option, if not, you can add it, this can give you a little boost in performance, but it is not guaranteed that it will solve your issue since HDD disks are still not good for Elasticsearch.
> 
> But please read about it first because any mistake can impact your system and put it on a state where the system may not be able to boot.

Thank you very much, your advice is very good

---

<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 4, 2023, 8:40pm UTC](https://discuss.elastic.co/t/my-elasticsearch-experiences-freezing-3-to-4-times-a-day/346438/11 "2023-12-04T20:40:15Z")

</div>

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