[ElasticSearch] 엘라스틱 설치 전 서버설정

ehwnghks·2022년 8월 11일
0

elasticsearch

목록 보기
1/9

elasticsearch 실행을 위한 서버 필수 설정

1. Disable swapping

sudo swapoff -a
sudo vi /etc/fstab

swap 관련 내용 삭제해야함

2. Configuring system settings

sudo su
ulimit -n 65535
su 계정

sudo vi /etc/security/limits.conf 로 밑에 내용 추가

*            hard            stack      10240
*            soft            stack      10240
*            hard            nofile     65536
*            soft            nofile      65536
*            hard            nproc      65536
*            soft            nproc     65536
*            hard            memlock      unlimited
*            soft            memlock    unlimited

3. Virtual memory

sysctl -w vm.max_map_count=524288

sudo vi /etc/sysctl.conf 로 밑에 내용 추가


참고

https://www.elastic.co/guide/en/elasticsearch/reference/current/system-config.html

profile
반갑습니다.

0개의 댓글