ElasticSearch和stunnel

时间:2014-08-21 19:43:12

标签: elasticsearch stunnel

我已经设法使用stunnel为单节点配置设置ElasticSearch,它的工作非常棒。但我在尝试为多节点zen单播做这件事时遇到了问题。

在服务器1上我有......

Stunnel config

[es-server-native]
accept = 10.0.0.xx0:9300
connect = 127.0.0.1:9300
cert = stunnel.pem

elasticsearch.yml

network.host: 127.0.0.1
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["what do I put here since now the nodes are not accessible externally"]

在服务器2上我有......

Stunnel config

[es-server-native]
accept = 10.0.0.xx1:9300
connect = 127.0.0.1:9300
cert = stunnel.pem

elasticsearch.yml

network.host: 127.0.0.1
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["what do I put here since now the nodes are not accessible externally"]

如果我尝试让本地es机器成为自己的客户端,并启动ElasticSearch,我会收到绑定地址错误而ElasticSearch无法启动。

在服务器1上

[es-client-native]
client = yes
accept = 127.0.0.1:9300
connect = 10.0.0.xx1:9300

在服务器2上

[es-client-native]
client = yes
accept = 127.0.0.1:9300
connect = 10.0.0.xx0:9300

有没有人曾使用stunnel使用单播在集群中设置ElasticSearch?

0 个答案:

没有答案