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

@@ -69,9 +69,5 @@
"ports": { "ports": {
"9203/tcp": 9203, "9203/tcp": 9203,
"9303/tcp": 9303 "9303/tcp": 9303
},
"environment": {
"OPENSEARCH_JAVA_OPTS": "-Xms${options[opensearch_heap]} -Xmx${options[opensearch_heap]}",
"OPENSEARCH_INITIAL_ADMIN_PASSWORD": "MyOpenSearch25!!"
} }
} }

View File

@@ -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") NODE_ROLES=$(jq -r '.node_roles // ["coordinating_only"] | join(",")' "$OPTIONS_FILE" 2>/dev/null || echo "coordinating_only")
fi 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" echo "[s6-run] Starting OpenSearch node: $os-coord-1 roles:$coordinating_only heap:$2g http:$9203 transport:$9303"

View File

@@ -69,9 +69,5 @@
"ports": { "ports": {
"9204/tcp": 9204, "9204/tcp": 9204,
"9304/tcp": 9304 "9304/tcp": 9304
},
"environment": {
"OPENSEARCH_JAVA_OPTS": "-Xms${options[opensearch_heap]} -Xmx${options[opensearch_heap]}",
"OPENSEARCH_INITIAL_ADMIN_PASSWORD": "MyOpenSearch25!!"
} }
} }

View File

@@ -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") NODE_ROLES=$(jq -r '.node_roles // ["coordinating_only"] | join(",")' "$OPTIONS_FILE" 2>/dev/null || echo "coordinating_only")
fi 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-2 roles:$coordinating_only heap:$2g http:$9204 transport:$9304" echo "[s6-run] Starting OpenSearch node: $os-coord-2 roles:$coordinating_only heap:$2g http:$9204 transport:$9304"

View File

@@ -70,9 +70,5 @@
"ports": { "ports": {
"9201/tcp": 9201, "9201/tcp": 9201,
"9301/tcp": 9301 "9301/tcp": 9301
},
"environment": {
"OPENSEARCH_JAVA_OPTS": "-Xms${options[opensearch_heap]} -Xmx${options[opensearch_heap]}",
"OPENSEARCH_INITIAL_ADMIN_PASSWORD": "MyOpenSearch25!!"
} }
} }

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") NODE_ROLES=$(jq -r '.node_roles // ["data,ingest"] | join(",")' "$OPTIONS_FILE" 2>/dev/null || echo "data,ingest")
fi 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-1 roles:$data,ingest heap:$5g http:$9201 transport:$9301" echo "[s6-run] Starting OpenSearch node: $os-data-1 roles:$data,ingest heap:$5g http:$9201 transport:$9301"

View File

@@ -70,9 +70,5 @@
"ports": { "ports": {
"9202/tcp": 9202, "9202/tcp": 9202,
"9302/tcp": 9302 "9302/tcp": 9302
},
"environment": {
"OPENSEARCH_JAVA_OPTS": "-Xms${options[opensearch_heap]} -Xmx${options[opensearch_heap]}",
"OPENSEARCH_INITIAL_ADMIN_PASSWORD": "MyOpenSearch25!!"
} }
} }

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") NODE_ROLES=$(jq -r '.node_roles // ["data,ingest"] | join(",")' "$OPTIONS_FILE" 2>/dev/null || echo "data,ingest")
fi 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" echo "[s6-run] Starting OpenSearch node: $os-data-2 roles:$data,ingest heap:$5g http:$9202 transport:$9302"

View File

@@ -69,9 +69,5 @@
"ports": { "ports": {
"9200/tcp": 9200, "9200/tcp": 9200,
"9300/tcp": 9300 "9300/tcp": 9300
},
"environment": {
"OPENSEARCH_JAVA_OPTS": "-Xms${options[opensearch_heap]} -Xmx${options[opensearch_heap]}",
"OPENSEARCH_INITIAL_ADMIN_PASSWORD": "MyOpenSearch25!!"
} }
} }

View File

@@ -18,7 +18,13 @@ if [ -f "$OPTIONS_FILE" ]; then
NODE_ROLES=$(jq -r '.node_roles // ["master"] | join(",")' "$OPTIONS_FILE" 2>/dev/null || echo "master") NODE_ROLES=$(jq -r '.node_roles // ["master"] | join(",")' "$OPTIONS_FILE" 2>/dev/null || echo "master")
fi fi
export OPENSEARCH_JAVA_OPTS="-Xms$1.5g -Xmx$1.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-master roles:$master heap:$1.5g http:$9200 transport:$9300" echo "[s6-run] Starting OpenSearch node: $os-master roles:$master heap:$1.5g http:$9200 transport:$9300"