This commit is contained in:
ai-dev
2025-09-21 20:01:39 +02:00
parent a31f5e466d
commit d9c1841ede
10 changed files with 35 additions and 25 deletions

View File

@@ -18,7 +18,13 @@ if [ -f "$OPTIONS_FILE" ]; then
NODE_ROLES=$(jq -r '.node_roles // ["data,ingest"] | join(",")' "$OPTIONS_FILE" 2>/dev/null || echo "data,ingest")
fi
export OPENSEARCH_JAVA_OPTS="-Xms$5g -Xmx$5g"
# 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-data-2 roles:$data,ingest heap:$5g http:$9202 transport:$9302"