Class OpenSearchIndexPerformanceTuner
java.lang.Object
com.atlassian.confluence.plugins.opensearch.indexmanager.OpenSearchIndexPerformanceTuner
Tunes OpenSearch index performance for a specific context, following recommendations from https://opensearch.org/docs/latest/search-plugins/knn/performance-tuning
- Since:
- 9.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Provides the ability to restore index settings to the original state -
Constructor Summary
ConstructorDescriptionOpenSearchIndexPerformanceTuner
(org.opensearch.client.opensearch.OpenSearchClient client) -
Method Summary
Modifier and TypeMethodDescriptiontuneForReindexing
(String index) Tune the specified index to improve performance when indexing a large number of documents, using settings recommended in https://opensearch.org/docs/latest/search-plugins/knn/performance-tuning#indexing-performance-tuning
-
Constructor Details
-
OpenSearchIndexPerformanceTuner
public OpenSearchIndexPerformanceTuner(org.opensearch.client.opensearch.OpenSearchClient client)
-
-
Method Details
-
tuneForReindexing
public OpenSearchIndexPerformanceTuner.Restorable tuneForReindexing(String index) throws IOException Tune the specified index to improve performance when indexing a large number of documents, using settings recommended in https://opensearch.org/docs/latest/search-plugins/knn/performance-tuning#indexing-performance-tuning- Parameters:
index
-- Returns:
- a
OpenSearchIndexPerformanceTuner.Restorable
for restoring index to its original settings - Throws:
IOException
-