Hazelcast discovery on AWS

166 views
Skip to first unread message

rishav.s...@moonshinetechnology.com

unread,
Jul 1, 2019, 4:10:28 PM7/1/19
to Hazelcast
Getting " com.hazelcast.aws.AwsDiscoveryStrategy WARNING: No EC2 instances found!" after running my application on EC2 instance. I am running the application on 2 instances but they are not discovering each other. 

I have gone through the GitHub post related to the same issue but the correct hazelcast.xml config link is broken. Can someone please help?

Below is my Hazelcast.xml file :-

<aws enabled="true">
                <access-key>***************</access-key>
                <secret-key>***************</secret-key>
                <!--optional, default is us-east-1 -->
                <region>us-east-2</region>
                <!--optional, default is ec2.amazonaws.com. If set, region shouldn't be set as it will override this property -->
                <host-header>ec2.amazonaws.com</host-header>
                <!-- optional, only instances belonging to this group will be discovered, default will try all running instances -->
                <security-group-name>mySecurityGroup</security-group-name>
                <tag-key>myKey</tag-key>
                <tag-value>myValue</tag-value>
                <hz-port>5701-5718</hz-port>
            </aws>

            <interfaces enabled="true">
                <interface>172.31.*.*</interface>
            </interfaces>

The other discovery mechanisms are disabled.

rishav.s...@moonshinetechnology.com

unread,
Jul 2, 2019, 2:59:38 AM7/2/19
to Hazelcast
Please ignore this post. This issue got resolved just now :)

im...@codegen.net

unread,
Oct 1, 2019, 11:43:40 AM10/1/19
to Hazelcast
Hi,

Could you please tell us, the action you take to fix this..
We also troubling on this issue.

Rafal Leszko

unread,
Oct 2, 2019, 2:53:49 AM10/2/19
to haze...@googlegroups.com
Hi, 

Can you share the issue you have? Your configuration, etc. 

Cheers,
Rafał

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/456110ef-d9e3-44f3-969e-51a903c3ca40%40googlegroups.com.


--
Rafał Leszko
Software Engineer
@RafalLeszko

rishav.s...@moonshinetechnology.com

unread,
Oct 3, 2019, 2:31:17 AM10/3/19
to Hazelcast
My region value was incorrect. My EC2 instances were running in different regions but i had provided default region value i.e us-east-2. You can check the values you provided in hazelcast.xml. There might be something wrong. Also, try keeping only necessary tags like access-key, secret-key, region, SG name, port etc and remove the optional tags.

Reply all
Reply to author
Forward
0 new messages