Configuring index settings on OpenSearch
For all of the following procedures, you must be logged in as a user with the Jira System administrator global permission.
As an administrator, there are a number of settings you can configure on your OpenSearch indexes, such as the number of shards and replicas, or the refresh interval. You can refer to the Index settings page for more detail.
However, note that all settings you apply on your OpenSearch indexes will be lost when you rebuild a Jira index. This is because, when rebuilding the index, Jira will create new OpenSearch indexes, and delete the old ones.
To apply index settings permanently, after rebuilding the index, you can make use of index templates.
For example, to apply settings on the issue index, you can create an index template that targets jira-issues via the REST API:
PUT https://my-opensearch/_index_template/content-template
{
"index_patterns": [
"jira-issues*"
],
"template": {
"settings": {
"number_of_replicas": 3,
"refresh_interval": "1s"
}
}
}
This will create an index template that applies the settings for the number of replicas and the refresh interval on future issue indexes that Jira creates.
Note that you'll still need to apply the same settings to your current index as well, either via the REST API (Update settings) or by rebuilding your Jira index if that’s practical (a very large dataset will take a long time to re-index).