--
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 post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/a10238e3-0118-4f7a-b4f2-4a178616940e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,Could you check your "public ip" for Hazelcast instances? That may be the issue. Please have a look here: https://github.com/hazelcast/hazelcast-docker#hazelcast-hello-worldOtherwise, we've registered your GH Issue: https://github.com/hazelcast/hazelcast-eureka/issues/29 . So, we'll have a look at this.Cheers,Rafał
On Fri, Apr 26, 2019 at 3:30 PM <ama...@gmail.com> wrote:
I have embedded Hazelcast members in my Spring Boot application. I am using Eureka for discovery mechanism. When I run multiple instances of my service on a single machine, the members are able to discover each other successfully. But when I run the services in docker swarm, they never detect each other and run as independent instances. However, I can see both the instances registered under Eureka (on Eureka registered apps link). Below is how I configure the members:--Config config = new Config();config.getProperties().setProperty("hazelcast.discovery.enabled", Boolean.toString(true));JoinConfig joinConfig = config.getNetworkConfig().getJoin();joinConfig.getMulticastConfig().setEnabled(false);joinConfig.getEurekaConfig().setEnabled(true).setProperty("namespace", "hazelcast").setProperty("self-registration", "true").setProperty("use-classpath-eureka-client-props", "false").setProperty("shouldUseDns", "false").setProperty("name", "hazelcast_cache").setProperty("serviceUrl.default", eurekaURL).setProperty("skip-eureka-registration-verification", "true");return Hazelcast.newHazelcastInstance(config);What am I missing here?Thank you.
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 haze...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/a10238e3-0118-4f7a-b4f2-4a178616940e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Hazelcast" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hazelcast/qj7Tp_GqTiY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/e7941930-c2e6-4a75-8ad5-1b7b4224faa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to haze...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/e7941930-c2e6-4a75-8ad5-1b7b4224faa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/15802262-47a2-4f1f-9eb6-cd90d09628e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Mark,It means that the members didn't form the cluster, so the discovery didn't work. Could you first check the public IPs of your members as mentioned in this thread. Also check if your Hazelcast port (5701) is exposed (and published) from the container. If nothing helps. please create a GH Issue here: https://github.com/hazelcast/hazelcast-eureka (please include all the information and the steps to reproduce).Cheers,Rafał
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/15802262-47a2-4f1f-9eb6-cd90d09628e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/005876e9-f1fd-4685-8658-50deedbcae07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
hazelcastConfig.getGroupConfig().setName("name of config")
final InterfacesConfig interfaces = new InterfacesConfig();
interfaces.setEnabled(true);
interfaces.addInterface("10.10.0.*");
hazelcastConfig.getNetworkConfig().setInterfaces(interfaces);
hazelcastConfig.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
hazelcastConfig.getNetworkConfig()
.getJoin()
.getEurekaConfig()
.setEnabled(true)
.setProperty("self-registration", "true")
.setProperty("use-classpath-eureka-client-props", "true")
.setProperty("shouldUseDns", "false")
.setProperty("namespace", "hazelcast")
.setProperty("use-metadata-for-host-and-port", "true");
hazelcastConfig.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);Hi Mark,
You need to have the same name set in eureka-client.properties (field: hazelcast.name). This is probably the issue you encounter.Read more at:Cheers,Rafał
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/005876e9-f1fd-4685-8658-50deedbcae07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/04c2f544-e5b6-429f-b802-219b23894468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$ java -jar hazelcast-separate-client/target/hazelcast-separate-client-0.1-SNAPSHOT.jar --server.port=8080 --hazelcast.port=5701 --spring.application.name=app1
$ java -jar hazelcast-separate-client/target/hazelcast-separate-client-0.1-SNAPSHOT.jar --server.port=8081 --hazelcast.port=5703 --spring.application.name=app2
Hi Mark,
Yes, please read the following part: https://github.com/hazelcast/hazelcast-eureka#embedded-propertiesHope it helps,Rafał
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/04c2f544-e5b6-429f-b802-219b23894468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/28ccc1fe-befd-44ed-80d8-32b5931f1bd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Mark,
Your configuration for the second example (Metadata) does not include serviceUrl.default and other parameters like defined here: https://github.com/hazelcast/hazelcast-code-samples/blob/master/hazelcast-integration/eureka/springboot-embedded/hazelcast-separate-client/src/main/resources/eureka-client.properties.Cheers,Rafał
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/28ccc1fe-befd-44ed-80d8-32b5931f1bd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/570f343b-7792-4866-a07c-e1922a97baa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.