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

[v3.*] set default replicas for system indexes #148

Open
sbruzzese902 opened this issue Jul 5, 2023 · 0 comments
Open

[v3.*] set default replicas for system indexes #148

sbruzzese902 opened this issue Jul 5, 2023 · 0 comments

Comments

@sbruzzese902
Copy link
Contributor

Hi 👋

With @Deepzima and @ettoreciarcia we discovered that by default all system indexes in OpenSearch (in the form .opendistro*) have by default the replicas set at 1.

This causes all our single-node OpenSearch deploy to be in the yellow state.

We fixed the issue using the following strategy:

  • deleted the unassigned shards ( in our case they were .opendistro-ism-config and .opendistro-job-scheduler-lock
  • apply the following patch as suggested here and after that launch manually the ism-policy job
curl -H 'Content-Type: application/json' -X PUT \
    -d '{
  "priority": 0,
  "index_patterns": [
    ".*"
  ],
  "template": {
  "settings": {
    "index": {
      "auto_expand_replicas": "0-1"
    }
  }
  }
}' \
  http://<opensearch_url>/_index_template/auto_expand_replicas

Probably this should be set together with our index patterns using the cronjob or - better - from the OpenSearch configuration file, if possible.

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

1 participant