Elasticsearch(엘라스틱서치)

[Elasticsearch] Linux에 설치시 설정값 정리

yong_zz 2021. 8. 18. 16:03

엘라스틱 구동시 에러 발생 처리 방법을 까먹을까봐 정리해둔다.

 

 

1.  max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [524288] 에러가 발생하는 경우

 

vi /etc/sysctl.conf
vm.max_map_count = 524288

 

2. bootstrap checks failed memory locking requested for elasticsearch process but memory is not locked

 

vi /etc/security/limits.confe

elasticsearch       soft    nofile         65536
elasticsearch       hard    nofile         65536
elasticsearch       soft    nproc          65536
elasticsearch       hard    nproc          65536
elasticsearch       soft    memlock        unlimited
elasticsearch       hard    memlock        unlimited