elasticsearch - ElasticSearch rest客户端会自动发现集群节点吗?

标签 elasticsearch elasticsearch-5

I am using Rest Client of Elastic Search and Elastic Search will have Nodes in a cluster.

If I connect to one node then will it automatically find other nodes of cluster while processing the request and do load balancing ?



还是在创建Rest Client时需要照顾它?

最佳答案

如果“嗅探器”处于 Activity 状态,则在请求(在后台)之前,客户端将更新您的内部节点数据列表。它适用于default clientRest Client
主节点(在集群配置中定义)将执行load balancing

关于elasticsearch - ElasticSearch rest客户端会自动发现集群节点吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46677922/

相关文章:

elasticsearch - Elasticsearch 结合 bool /过滤查询

python - 无法使用Python Elasticsearch Client解析主机

python - 在 python 中将 Elasticsearch 查询转换为 Elasticsearch-dsl

java - Elasticsearch:在 java.lang.OutOfMemoryError:Java 堆空间后重新启动节点

elasticsearch - Kibana 5.6.3中的日期范围查询不适用于@timestamp

elasticsearch - 如何为词组建议者添加权重(或预过滤器)?

elasticsearch - 首先获取包含搜索词的文档,然后获取其同义词[Elastic]

csv - 在 Logstash 中从 CSV(纬度和经度列)创建地理点对象

elasticsearch - ES自定义动态映射字段名称更改

elasticsearch - 分析器的拼写错误