Are you defining only one host/ip in TCP-IP config (as you write in snippet)?
Hi,
Using Hazelcast 2.1.2, in my configuration I have a single node which has an alias and 2 network interfaces/IPv4 addresses. This config is pure tcp-ip, no multicast or interfaces are configured. When I start up this single node, it correctly starts up on one of the interfaces, and immediately starts trying to connect to itself on it's other own IP address. This fails with "Ignoring join request, member already exists..". At this point, the node seems to get into an infinite (or very long...) loop of the same steps. The cluster with this single node never gets created. The same issue applies to multiple nodes with the same setup, essentially I can't start up my cluster at all with 2.1.2.
Is it possible to have a node recognize that multiple IPs belong to the same cluster member? I guess with setting interfaces I could be able to stop this loop, but I feel it's not very practical if you have to figure out the interfaces of every single node you may be using.
Also the same configuration worked with 2.0.3.
Can you check if you can reproduce?
Config snippet:
<network>
<port auto-increment="true">port1</port>
<join>
<multicast enabled="false"/>
<tcp-ip enabled="true">
<hostname>host1:port1</hostname>
</tcp-ip>
</join>
</network>
Thanks,
Mark
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/z8HOM99YpegJ.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
Does that alias resolves to the both of IP addresses?
Hazelcast cannot assume multiple addresses belonging to the same host are the same node, because one can start a separate node for each of interfaces.
But you can set 'hazelcast.socket.bind.any' property to false (default is true), if you don't want to define interfaces for each node.
By default, Hazelcast binds socket for all local interfaces. Because of that a node is responding to a request send to another local address.
http://hazelcast.com/docs/2.1/manual/single_html/#ConfigurationProperties
The alias resolves to one of the IP addresses, I'm told it's a Quagga-provided virtual IP.I think the issue is that the node identifies itself internally on the IP it started up, provided by java.net.NetworkInterface.getNetworkInterfaces(), however externally it tries to connect to the virtual IP resolved by InetAddress.getByName(alias). As these don't match the node keeps on trying to connect to the single node which should be present but isn't, and gets the above error as it's already running.Possibly identifying the nodes/connections by the exact identifier provided in the TCP-IP config could solve this issue, instead of using some resolved value for the identifier.In the end I was able to work around this using hazelcast.socket.bind.any=false + defining the interfaces. Fortunately in this single cluster I did not need multiple config files for multiple nodes, but I'm not sure I can get away with the same in different network topologies.Do you think this behaviour can be improved / reverted to work just like 2.0.3 worked?
Thanks,Mark
On Jun 22, 2012 1:48 PM, <> wrote:
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/x-H8jhtYQiAJ.
Related to this, A common unit test I want to be able to run is to configure two hazelcast clusters running on localhost via TCP/IP vs. multicast. Configuring two hazelcast instances in the same JVM using multi-cast works fine, but when our developers are on our corporate VPN, multicast doesn't work, and the unit tests fail. I want to convert the multi-cast config to TCP-IP config so the tests will work in a network environment that doesn't support multicast. To date, I haven't been able to successfully configure and run two hazelcast clusters running in the same JVM using TCP/IP config and "localhost" as the hostname.
On Tuesday, July 17, 2012 2:03:28 AM UTC-4, mark.kalm...@gmail.com wrote:That sounds good - is there an issue # I can follow for progress?Thanks,Mark
To unsubscribe from this group, send email to hazelcast+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/Q0AsCpM2TAkJ.
Today we have released both 2.1.3 and 2.2. Both have fixes regarding domain name handling and join issues.
...
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/XkcJ-No9_KIJ.
Mehmet,I had the time to test the new versions, and it seems they behave better - until you add a <required-member> config element to the mix. If you take the below config it works with 2.1.3, but only works with 2.2 if you remove the <required-member> part, otherwise the cluster never starts.<?xml version="1.0" encoding="UTF-8"?><hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-basic.xsd"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><network><port auto-increment="false">6666</port><join><tcp-ip enabled="true"><required-member>localhost:6666</required-member><hostname>localhost:6666</hostname></tcp-ip></join><interfaces enabled="false"/></network></hazelcast>Cheers,Mark
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/cfO9bkzUEZQJ.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/4YnOTE-3OjcJ.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/Q0AsCpM2TAkJ.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/cfO9bkzUEZQJ.--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.