Configuring index settings on OpenSearch
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 content index, you can create an index template that targets issues via the REST API:
PUT https://my-opensearch/_index_template/content-template
{
"index_patterns": [
"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).
During OpenSearch EAP, we recommend setting max_result_window to 2147483647 as some features are still attempting to retrieve over 10,000 hits.