Description
Describe the bug
If a startup error such as insufficient memory occurs, the error is never shown, making it difficult to debug
for example, this error occurs using docker run but doesn't show up in docker-compose up
[Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory](https://forum.opensearch.org/t/native-memory-allocation-mmap-failed-to-map-1073741824-bytes-for-committing-reserved-memory/4258)
To Reproduce
Steps to reproduce the behavior:
- Use the standard docker-compose.yml from the documentation
- Use a machine with only 1GB of memory such as an AWS t2.micro
- type
docker-compose up opensearch-node1
to start only one of the nodes - The process will exit with no useful error message
- Compare to this command, which shows a useful error
docker run -d -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" opensearchproject/opensearch:latest
Expected behavior
The same errors should result, so that issues with docker-compose.yml
can be debugged.
Plugins
none
Screenshots
see error messages noted above
Host/Environment (please complete the following information):
AWS t2.micro using recent wizard
Linux 5.10.157-139.675.amzn2.x86_64 opensearch-project/OpenSearch#1 SMP Thu Dec 8 01:29:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Docker version 20.10.17, build 100c701
Docker Compose version v2.15.1
Additional context
docker-compose install isn't done by yum on AWS linux, used instructions from here