Skip to content

Commit b26d4ee

Browse files
b4sjoogithub-actions[bot]
authored andcommitted
Set the number of ml system index primary shards to 1 (#2137)
Signed-off-by: Sicheng Song <[email protected]> (cherry picked from commit 7bcef02)
1 parent 9567ca5 commit b26d4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memory/src/main/java/org/opensearch/ml/memory/index/ConversationMetaIndex.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class ConversationMetaIndex {
7474
private Client client;
7575
private ClusterService clusterService;
7676

77-
public static final Map<String, Object> INDEX_SETTINGS = Map.of("index.auto_expand_replicas", "0-1");
77+
public static final Map<String, Object> INDEX_SETTINGS = Map.of("index.number_of_shards", "1", "index.auto_expand_replicas", "0-1");
7878

7979
private String getUserStrFromThreadContext() {
8080
return client.threadPool().getThreadContext().getTransient(ConfigConstants.OPENSEARCH_SECURITY_USER_INFO_THREAD_CONTEXT);

0 commit comments

Comments
 (0)