簡體   English   中英

Kubernetes 中的 Elasticsearch 1.7.6 集群發現

[英]Elasticsearch 1.7.6 cluster discovery in Kubernetes

我有一個在 Kubernetes (EKS) 上運行的 ES 集群。 我正在努力讓發現發揮作用。

我已驗證我在 9200,9300 上的 Pod 之間具有網絡訪問權限(在集群上運行 Calico。已驗證策略允許 9200,9300)

我想實現發現,我想知道我是否遺漏了什么。

  1. Elasticarch 1.7 是否支持除了多播/單播之外的更多發現方法?

我們更喜歡避免單播,因為這是一個 Kubernetes 集群。

  1. 有沒有辦法在 Calico 中使用多播?

以下是配置供參考:

彈性搜索.yml

 cluster.name: <CLUSTER_NAME>
 node.name: "${MY_POD_NAME}"
 node.master: true
 node.data: true
 bootstrap.mlockall: false
 discovery.zen.ping.multicast.enabled: true
 indices.memory.index_buffer_size: 30%
 indices.cache.filter.size: 20%
 indices.fielddata.cache.size: 20%
 index.translog.flush_threshold_ops: 8192
 threadpool.bulk.queue_size: 1546
 http.max_initial_line_length: 16K
 script.engine.groovy.inline.aggs: off
 script.engine.groovy.inline.search: off
 index.number_of_replicas: 1
 threadpool.search.queue_size: 10000
 index.number_of_shards: 3
 threadpool.bulk.queue_size: 10000

對於 Elasticsearch v7+, discovery.zen.*不再使用。 相反,請使用以下設置:

彈性搜索.yml:

cluster.initial_master_nodes: es-cluster-0,es-cluster-1,es-cluster-2 # node name with master roles
discovery.seed_hosts: es-cluster # k8s headless service that point to all pods/nodes

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM