Regarding the issue of
"circuit_breaking_exception", I found that this exception is a mechanism used to prevent operations from causing an OutOfMemoryError. It seems like Wazuh-Indexer 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.
Please, check our documentation to verify this:
The steps for Wazuh-Indexer are very similar to the above documentation, and are the followings:
1. Edit /etc/wazuh-indexer/opensearch.yml file, add or edit the following value:
- bootstrap.memory_lock: true
2. Create the following directory:
- mkdir -p /etc/systemd/system/wazuh-indexer.service.d
3. Create this file and add the following value with this command:
cat > /etc/systemd/system/wazuh-indexer.service.d/wazuh-indexer.conf << EOF
[Service]
LimitMEMLOCK=infinity
EOF
4. Edit /etc/wazuh-indexer/jvm.options with the memory values you desire, you have to modify the -Xms and -Xmx values and remember that the min and max values should be the same.:
# Xms represents the initial size of total heap space # Xmx represents the maximum size of total heap space
-Xms4g
-Xmx4g
5. Reload and restart the wazuh-indexer service
- systemctl daemon-reload
- systemctl restart wazuh-indexer
6. Check that the memory lock is set, (use your IP and credentials)
- curl -k -u admin:{password} "https://{indexer_ip}:9200/_nodes?filter_path=**.mlockall&pretty"
You should see something like this:
{ "nodes" : {
"Mu8NLTv3SqKeWtisKU8Y6A" : {
"process" : {
"mlockall" : true
}
}
}
}
Please, let me know if you solve the error with this procedure.
Regards.