Improve heap configuration controls

This commit is contained in:
Your Name
2025-11-07 06:25:38 -06:00
parent 8fc7e89cdd
commit 183dcf5072
3 changed files with 107 additions and 11 deletions

View File

@@ -93,10 +93,17 @@ Look for `analysis-icu` in the output before running `occ fulltextsearch:index`.
The package automatically configures Elasticsearch based on the container's available resources:
- Java heap size is set to 50% of available memory
- Java heap size defaults to 50% of the app's memory allocation
- GC optimization for container environments
- Index settings tuned for single-node operation
You can override the automatic heap sizing when necessary:
- Define `ES_JAVA_HEAP` (e.g. `export ES_JAVA_HEAP=8g`) in `/app/data/.env`
- Provide a full `ES_JAVA_OPTS` string in `/app/data/.env` to take complete control
- Add explicit `-Xms`/`-Xmx` entries in `/app/data/config/jvm.options.d/heap.options`
- Set `ES_SKIP_AUTO_HEAP=1` in `/app/data/.env` to rely solely on the configuration files
## Limitations
- This package is for internal use only and is not exposed to the web by default