update
This commit is contained in:
@@ -69,9 +69,5 @@
|
||||
"ports": {
|
||||
"9203/tcp": 9203,
|
||||
"9303/tcp": 9303
|
||||
},
|
||||
"environment": {
|
||||
"OPENSEARCH_JAVA_OPTS": "-Xms${options[opensearch_heap]} -Xmx${options[opensearch_heap]}",
|
||||
"OPENSEARCH_INITIAL_ADMIN_PASSWORD": "MyOpenSearch25!!"
|
||||
}
|
||||
}
|
@@ -18,7 +18,13 @@ if [ -f "$OPTIONS_FILE" ]; then
|
||||
NODE_ROLES=$(jq -r '.node_roles // ["coordinating_only"] | join(",")' "$OPTIONS_FILE" 2>/dev/null || echo "coordinating_only")
|
||||
fi
|
||||
|
||||
export OPENSEARCH_JAVA_OPTS="-Xms$2g -Xmx$2g"
|
||||
# Read options from Supervisor
|
||||
admin_password=$(bashio::config 'admin_password')
|
||||
opensearch_heap=$(bashio::config 'opensearch_heap')
|
||||
|
||||
# Export as environment variables for OpenSearch
|
||||
export OPENSEARCH_INITIAL_ADMIN_PASSWORD="${admin_password}"
|
||||
export OPENSEARCH_JAVA_OPTS="-Xms${opensearch_heap} -Xmx${opensearch_heap}"
|
||||
|
||||
echo "[s6-run] Starting OpenSearch node: $os-coord-1 roles:$coordinating_only heap:$2g http:$9203 transport:$9303"
|
||||
|
||||
|
Reference in New Issue
Block a user