opensearch 실행 시 아래와 같은 에러 발생하여 정상 동작하지 않음
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: OpenSearch did not exit normally - check the logs at /usr/share/opensearch/logs/opensearch-cluster.log
[2024-03-03T11:08:44,941][INFO ][o.o.n.Node ] [opensearch-cluster-master-1] stopping ...
[2024-03-03T11:08:44,953][INFO ][o.o.n.Node ] [opensearch-cluster-master-1] stopped
[2024-03-03T11:08:44,953][INFO ][o.o.n.Node ] [opensearch-cluster-master-1] closing ...
[2024-03-03T11:08:44,962][INFO ][o.o.n.Node ] [opensearch-cluster-master-1] closed
# 1. 설정 conf 파일 변경
$ vi /etc/sysctl.conf
...
# 아래줄 추가
vm.max_map_count=262144
# 2. 설정 변경
$ sudo sysctl -p
# 정상 적용 확인
$ cat /proc/sys/vm/max_map_count
262144