docker elasticsearch shutdown cause
2022, Sep 21
docker elasticsearch
problem 1
ERROR: [2] bootstrap checks failed. You must address the points described in the following [2] lines before starting Elasticsearch.
bootstrap check failure [1] of [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
bootstrap check failure [2] of [2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
solved
window의 m.max_map_count는 cmd창 열어서
1) wsl -d docker-desktop
2) sysctl -w vm.max_map_count=262144
ElasticSearch in Windows docker image vm max map count
problem 2
the default discovery settings are unsuitable for production use;
at least one of [discovery.seed_hosts, discovery.seed_providers,
cluster.initial_master_nodes] must be configured
docker-compose.yml에 아래 추가
environment:
discovery.seed_hosts: "elasticsearch"
cluster.initial_master_nodes: "node"