Преглед на файлове

OpenSearch container fails to start due to memory heap size configura… (#1137)

Mark Shust преди 1 година
родител
ревизия
aa7297c648
променени са 3 файла, в които са добавени 8 реда и са изтрити 11 реда
  1. 8 4
      compose/compose.yaml
  2. 0 3
      compose/env/elasticsearch.env
  3. 0 4
      compose/env/opensearch.env

+ 8 - 4
compose/compose.yaml

@@ -78,8 +78,10 @@ services:
       ## More info at https://github.com/markshust/docker-magento/issues/488
       - "cluster.routing.allocation.disk.threshold_enabled=false"
       - "index.blocks.read_only_allow_delete"
-      ## Uncomment the following line to increase the virtual memory map count
-  #   - "max_map_count=262144"
+      ## Uncomment to set custom heap size to avoid memory errors
+      #- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"
+      ## Uncomment to increase the virtual memory map count
+      #- "max_map_count=262144"
 
   ## If you wish to use Elasticsearch, comment out opensearch image above and
   ## uncomment this block. Do the same in the composer.healthcheck.yaml file.
@@ -98,8 +100,10 @@ services:
   #    ## More info at https://github.com/markshust/docker-magento/issues/488
   #    - "cluster.routing.allocation.disk.threshold_enabled=false"
   #    - "index.blocks.read_only_allow_delete"
-  #    ## Uncomment the following line to increase the virtual memory map count
-  #    - "max_map_count=262144"
+  #    ## Uncomment to set custom heap size to avoid memory errors
+  #    #- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
+  #    ## Uncomment to increase the virtual memory map count
+  #    #- "max_map_count=262144"
 
   rabbitmq:
     image: markoshust/magento-rabbitmq:3.12-0

+ 0 - 3
compose/env/elasticsearch.env

@@ -1,5 +1,2 @@
 ES_HOST=elasticsearch
 ES_PORT=9200
-
-## Set custom heap size to avoid memory errors
-ES_JAVA_OPTS="-Xms1g -Xmx1g"

+ 0 - 4
compose/env/opensearch.env

@@ -1,9 +1,5 @@
 OPENSEARCH_HOST=opensearch
 OPENSEARCH_PORT=9200
-OPENSEARCH_HEALTHCHECK_TIMEOUT=100
-
-## Set custom heap size to avoid memory errors
-OPENSEARCH_JAVA_OPTS="-Xms1g -Xmx1g"
 
 # Prevent security patch conflicts with core M2 code
 DISABLE_SECURITY_PLUGIN=true