【问题标题】:Elasticsearch cluster on Azure using ubuntu. The nodes don't see each otherAzure 上使用 ubuntu 的 Elasticsearch 集群。节点看不到对方
【发布时间】:2015-03-13 13:48:27
【问题描述】:

我一直在使用 Ubuntu VM,按照 github 上插件页面 (elasticsearch-cloud-azure) 上的教程在 Azure 中设置 Elasticsearch 集群。我已经设法配置了所有东西,并且运行了 elasticsearch,但是我有 3 个 1 个节点的集群,而不是 1 个 3 个节点的集群。我猜问题出在:

cloud: azure: keystore: /path/to/keystore password: your_password_for_keystore subscription_id: your_azure_subscription_id service_name: your_azure_cloud_service_name discovery: type: azure

我不确定“your_azure_cloud_service_name”应该是什么。我的所有节点都在一个虚拟网络中,因此它们可以相互通信。默认情况下,每次创建 VM 时,都会在 Azure 上创建一个仅包含该 VM 的新云服务。对于集群中的每个节点,该值是否应该不同?

我对那个有点迷茫......

【问题讨论】:

    标签: ubuntu azure elasticsearch


    【解决方案1】:

    创建虚拟机时,您必须提供云服务名称,即第一个红框。

    第一个红色框中的值是“your_azure_cloud_service_name”。为了使用 elasticsearch-cloud-azure 插件,您需要在同一个云服务中创建所有虚拟机。

    或者,您可以使用弹性搜索附带的zen discover,但这需要您以主机相互指向的方式编辑 elasticsearch.yml。请注意,您不能在 Azure 中使用多播选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-03
      • 1970-01-01
      • 2018-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多