0

2 つの ec2 ノードで Elasticsearch をセットアップしようとしています。プラグインがインストールされており、構成には次のものがあります。

cloud:
    aws:
        access_key: KEY
        secret_key: KEY

discovery:
    type: ec2
    ec2:
        groups: security-group

彼らは、これが指定されていて、それぞれに EIP が割り当てられている場合にのみ検出します。EIP を割り当てる必要があるのはなぜですか? 少し前に NAT インスタンスがあり、構成に EIP もクラウドも必要ありませんでした。

4

2 に答える 2

0

この構成を使用してみてください

cloud:
    aws:
        access_key: KEY
        secret_key: KEY

discovery:
    type: ec2
    ec2:
        groups: security-group
        availability_zones: ap-southeast-1a,ap-southeast-1b
        tag: 
            stage: production

そして、Instances PS にタグ「stage」を追加します。セキュリティ グループがインスタンスに割り当てるセキュリティ グループ

于 2014-01-11T07:01:00.907 に答える
0

We had some issues with getting nodes within the cluster to see each other in an AWS EC2 setup. We were seeing a timeout issue as well. It turned out that we had added a self-reference to the security group (within the AWS console) in order to get the instances to see each other.

E.g. within the security group settings have the following entry:

TCP Port(Service)    Source
0 - 65535            sg-xxxxx (security-group)

Once we added this the discovery worked as expected.

于 2014-01-09T14:40:36.327 に答える