Skip to content

Commit 548abb5

Browse files
authored
fix opensearch db fail to start issue (#1884)
Signed-off-by: letonghan <letong.han@intel.com>
1 parent b1ae19c commit 548abb5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • comps/third_parties/opensearch/deployment/docker_compose

comps/third_parties/opensearch/deployment/docker_compose/compose.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ services:
1212
- host_ip=${host_ip}
1313
- cluster.name=opensearch-cluster
1414
- node.name=opensearch-vector-db
15-
- discovery.seed_hosts=opensearch-vector-db
16-
- cluster.initial_master_nodes=opensearch-vector-db
15+
- discovery.type=single-node
1716
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
1817
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
1918
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD} # Sets the demo admin user password when using demo configuration, required for OpenSearch 2.12 and later
@@ -22,7 +21,7 @@ services:
2221
soft: -1
2322
hard: -1
2423
nofile:
25-
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
24+
soft: 262144
2625
hard: 262144
2726
ports:
2827
- "${OPENSEARCH_PORT1:-9200}:9200"

0 commit comments

Comments
 (0)