Skip to content

Commit

Permalink
Set the number of ml system index primary shards to 1 (opensearch-pro…
Browse files Browse the repository at this point in the history
…ject#2137)

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>
  • Loading branch information
b4sjoo authored Feb 20, 2024
1 parent a31215d commit 7bcef02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class ConversationMetaIndex {
private Client client;
private ClusterService clusterService;

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

private String getUserStrFromThreadContext() {
return client.threadPool().getThreadContext().getTransient(ConfigConstants.OPENSEARCH_SECURITY_USER_INFO_THREAD_CONTEXT);
Expand Down

0 comments on commit 7bcef02

Please sign in to comment.