-
1. Re: Distributed cache xml example
nadirx Jan 19, 2017 2:43 PM (in response to idonaldson)When you say "they join together", how are you determining that ? The thing that matters is the jgroups view. You should be seeing logs like the following:
[Server:server-two] 20:39:33,664 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (jgroups-8,master:server-two) ISPN000094: Received new cluster view for channel clustered: [master:server-two|1] (2) [master:server-two, master:server-one]
[Server:server-two] 20:39:33,667 INFO [org.infinispan.CLUSTER] (jgroups-8,master:server-two) ISPN100000: Node master:server-one joined the cluster
in the end the final view should be something like [vm1:server-one, vm1:server-two, vm2:server-three, vm2:server-four, vm3:server-five, vm3:server-six]
What is the configuration of the cache ?
As for the Hot Rod client, if things are working correctly, it is sufficient to supply a handful of initial hosts and the client will retrieve all available servers on initial connection and receive topology updates if the cluster changes.
Tristan
-
2. Re: Distributed cache xml example
idonaldson Jan 19, 2017 6:17 PM (in response to nadirx)Tristan,
When I say they join together, I'm speaking solely from looking in the web management console and I can see all the nodes listed under the cache.
Looking at the log snippets that you provided, when I restart a node it looks like the following:
[Server:server-four] 19:52:39,046 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000094: Received new cluster view for channel clustered: [host1:server-four|0] (1) [host1:server-four]
[Server:server-four] 19:52:39,059 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000079: Channel clustered local address is host1:server-four, physical addresses are [172.XXX.XXX.XXX:55350]
Which to me looks like this server-four isn't getting connected to vm1, the domain controller.
The cache configuration is just a simple distributed cache that I added to the domain.xml.
I've attached the domain.xml, host.xml from the domain controller VM, and a host-slave.xml from one of the slave nodes. As well as a log capture from starting up the slave node.
Looking at the documentation again, how do I reference the default jgroups.xml as seen here: Infinispan 8.2 User Guide ?
Thank you!
Ian
-
domain.xml.zip 3.5 KB
-
host.xml.zip 1.2 KB
-
host-slave.xml.zip 1.1 KB
-
ca1-02 startup log.txt.zip 3.5 KB
-
-
3. Re: Distributed cache xml example
idonaldson Jan 20, 2017 3:00 PM (in response to idonaldson)Update time.
Turned off iptables on all VMs and VM2 and VM3 are forming a cluster with their nodes now.
[Server:server-five] 19:51:06,211 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-6) ISPN000078: Starting JGroups channel clustered
[Server:server-five] 19:51:06,247 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-6) ISPN000094: Received new cluster view for channel clustered: [host2:server-three|2] (3) [host2:server-three, host2:server-four, host3:server-five]
...
[Server:server-six] 19:51:10,057 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-6) ISPN000078: Starting JGroups channel clustered
[Server:server-six] 19:51:10,095 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-6) ISPN000094: Received new cluster view for channel clustered: [host2:server-three|3] (4) [host2:server-three, host2:server-four, host3:server-five, host3:server-six]
However I can't get the nodes that are on the same VM as the domain controller to join the rest of the group. I've ran the JGroups McastSendTest and McastReceiveTest in all different configurations and it's all working at that level.
Not sure where to go from here?
-
4. Re: Distributed cache xml example
nadirx Jan 23, 2017 7:44 AM (in response to idonaldson)Hi Ian,
I guess we'd need some more logs from the startup. Ideally the log from each node, but I guess one node per host could suffice.
-
5. Re: Distributed cache xml example
idonaldson Jan 23, 2017 4:05 PM (in response to nadirx)Tristan,
I cleared the logs and restarted all the services. The attached is the server.log from each machine as well as all the configurations from each.
Thanks again for your help with this.-
Distributed Cluster.zip 44.5 KB
-