50% 할인 모든 플랜, 기간 한정. 시작 가격 $2.48/mo
Elasticsearch

Elasticsearch

Elasticsearch는 분산형 검색 및 분석 엔진입니다. 페타바이트 규모의 데이터에서 전문 검색, 집계, 실시간 인덱싱을 지원합니다. Wikipedia, GitHub, eBay, Slack에서 사이트 검색과 로그 분석에 활용되고 있으며, 데이터베이스 외부 전문 검색의 사실상 표준입니다.

버전

최신

운영 체제

Ubuntu Server 24.04 LTS

최소 RAM

8 GB

IP 유형

IPV4,IPV6

Elasticsearch API 접근

  • URL: http://<server-ip>:9200
  • 클러스터 내부 통신: 127.0.0.1:9300 (외부에 노출하지 마세요)

자격증명

  • 사용자: elastic
  • 비밀번호: 안전하게 저장된 위치 /root/.cloudzy-creds

중요 디렉토리

  • 구성: /etc/elasticsearch
  • 데이터: /var/lib/elasticsearch
  • 로그: /var/log/elasticsearch
  • 이진 파일: /usr/share/elasticsearch/bin
  • 플러그인: /usr/share/elasticsearch/plugins

서비스 관리

사용법 systemctl 명령:

systemctl status elasticsearch
systemctl restart elasticsearch
systemctl stop elasticsearch
systemctl start elasticsearch

Kibana 등록 (선택 사항)

Kibana를 별도로 설치할 계획이라면, Elasticsearch에서 등록 토큰을 생성하고 이를 사용해 Kibana를 안전하게 구성해야 합니다.

1. Elasticsearch 서버에서 등록 토큰 생성:

/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

2. 생성된 토큰을 복사한 후 Kibana 서버에서 다음을 실행하세요:

/usr/share/kibana/bin/kibana-setup --enrollment-token "<your-token>"

이 과정을 통해 Kibana가 Elasticsearch에 안전하게 등록됩니다.

Elasticsearch 명령어 예시

클러스터 상태 확인:

curl -X GET -k "https://localhost:9200/_cluster/health?pretty" 
  -u elastic:<password> 
  --cacert /etc/elasticsearch/certs/http_ca.crt

모든 인덱스 목록 조회:

curl -X GET -k "https://localhost:9200/_cat/indices?v" 
  -u elastic:<password> 
  --cacert /etc/elasticsearch/certs/http_ca.crt

모니터링에서 더보기

관련 앱.

지금 Elasticsearch를 배포하세요. 월 $2.48부터.