Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this cluster currently has [1000]/[1000] maximum shards open #1437

Open
dp466 opened this issue Jul 16, 2024 · 1 comment
Open

this cluster currently has [1000]/[1000] maximum shards open #1437

dp466 opened this issue Jul 16, 2024 · 1 comment

Comments

@dp466
Copy link

dp466 commented Jul 16, 2024

Hi All!

ive seen this issue on the standard deployment but not via Docker

i get the following error from the Dashboard container:
An OpenSearch Dashboards keystore already exists. Overwrite? [y/N] Created OpenSearch Dashboards keystore in /usr/share/wazuh-dashboard/config/opensearch_dashboards.keystore FATAL {"error":{"root_cause":[{"type":"validation_exception","reason":"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;"}],"type":"validation_exception","reason":"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;"},"status":400}

i dont know how to fix that issue

@soundmountain
Copy link

As a temporary fix you can increase the amount of shards. exec into to the shell of wazuh-indexer and then run this command (change user and pw accordingly):
curl -u admin:SecretPassword -X PUT https://localhost:9200/_cluster/settings -H "Content-Type: application/json" -d '{ "persistent": { "cluster.max_shards_per_node": "3000" } }' -k
after that i suggest you look at the documentation https://documentation.wazuh.com/current/user-manual/wazuh-indexer/index-life-management.html and configure a retention policy and apply it to your indices otherwise the same problem will occur later down the road once 3000 shards are open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants