如何在Loopback和非Loopback接口上绑定Elasticsearch 2.0? [英] How to bind Elasticsearch 2.0 on both Loopback and Non-Loopback interfaces?

查看:189
本文介绍了如何在Loopback和非Loopback接口上绑定Elasticsearch 2.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从版本2.0开始Elasticsearch默认情况下绑定环回接口( _local _ )。

Starting from version 2.0 Elasticsearch binds only on the loopback interface by default (_local_ in terms of configuration).

文档说有一种方法来切换到另一个网络,例如, _non_loopback _ 绑定到第一个非环回接口。工作正常

The documentation says that there is a way to switch to another network, for example, _non_loopback_ binds to the first non-loopback interface. It works fine.

但是我不知道如何组合这些设置,以便Elasticsearch同时绑定环回和非环回接口?

But I cannot figure out how do I combine these settings so that Elasticsearch binds on both loopback and non-loopback interfaces simultaneously?

PS。我的原因是我在每个Elasticsearch实例上使用Logstash,通过localhost连接到它,但我也希望其他Elasticsearch实例看到彼此以形成集群...

PS. My reason is that I use Logstash on each Elasticsearch instance that connects to it via localhost, but I also want other Elasticsearch instances to see each other to form the cluster...

推荐答案

对于2.0,您将需要使用

For 2.0 you would need to use

network.bind_host: 0

这篇关于如何在Loopback和非Loopback接口上绑定Elasticsearch 2.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆