'elasticsearch'에 해당되는 글 1건

  1. 2019.03.29 ElasticSearch - bootstrap checks failed 2
카테고리 없음2019. 3. 29. 17:55

ERROR: [2] bootstrap checks failed

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

 

ElasticSearch를 설치하고 기도하는 과정에서 위와 같은 에러가 발생하였다.

max file descriptors, max map count의 설정값을 바꿔주면 해결 되었다.

 

max file descriptors에 해당하는 설정은 /etc/security/limits.conf 파일을 수정하면 된다.

해당 파일의 하단에 아래와 같이 입력하고 저장.

 

ec2-user         hard    nofile          65536

ec2-user         soft    nofile          65536

ec2-user         hard    nproc           65536

ec2-user         soft    nprod           65536

 

max map count에 해당하는 설정은 /etc/sysctl.conf 파일을 수정하면 된다.

해당 파일의 하단에 아래와 가이 입력하고 저장.

 

vm.max_map_count = 262144

 

모두 저장이 완료 되었다면 서버 재시작을 하면 된다.

Posted by Z700zZz