[Elasticsearch] elasticsearch.yml / jvm.options환경설정

HI·2022년 4월 27일
0

elasticsearch 운영

목록 보기
3/7

elasticsearch cluster 의 주요 환경설정 옵션

1. elasticsearch.yml

 cluster.name : my-cluster
 node.name: node-1
node.master: true
 node.data : true
node.ingest: false
 network.host: 0.0.0.0
transport.publish_host: 서버 호스트(ex 1.1.1.1)
transport.port: 9300
 transport.bind_host: 서버 호스트(ex 1.1.1.1)
 http.port:9200
 idscovery.seed_host:["1.1.1.1","1.1.1.2","1.1.1.3"]
 cluster.initial_master_nodes:["my-cluster","my_cluster2","my_cluster3"] 
 indices.query.bool.max_clause_count:2000000
 http.max_content_length: 1024mb


thread_pool:
    #색인 queue
    write:
        queue_size: 500
    #검색 queue
    search:
        queue_size: 5000

**모니터링 클러스터를 따로 설정시

xpack.monitoring.exporters:
   id1:
       type: http
       host: ["http://1.1.1.1:9200"]
xpack.monitoring.history.duration: 30d
xpack.security.enabled: false

jvm.options

 -Xms30g
 -Xmx30g

jvm heap 메모리를 30g쓴다는 내용.
최대값이 30g이다.

profile
https://github.com/gaeunban

0개의 댓글