Hello Maxray,
The circuit_breaking_exception is a mechanism used to prevent operations from causing an OutOfMemoryError. The error seems like Elasticsearch was using most of the JVM heap configured, and the total memory required for all operations was superior to the memory available, so the operation you requested was aborted.
In this case, we should suggest increasing the heap size as Elasticsearch forums/Wazuh Docu suggest:
https://documentation.wazuh.com/current/user-manual/elasticsearch/elastic-tuning.html#memory-locking
Note: If you already have 50% of the available RAM defined, it is not recommended to continue increasing it. In this situation, one of the following options should be followed:
- Consider scaling the cluster to obtain more JVM memory to support your workload. This means adding more nodes to the Wazuh-indexer/Elasticsearch cluster.
- If cluster scaling isn't possible, try reducing the number of shards by deleting old or unused indices. Because shard metadata is stored in memory, reducing the number of shards can reduce overall memory usage.
- Change the shards configuration for indices: https://www.elastic.co/es/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster
Regards.