-
1. Re: Problem when configuring GossipRouter
goldmann Oct 15, 2010 4:01 AM (in response to ingedeut)What stack you use? TCP or UDP? Besides this you don't have configured GossipRouter correctly. See documentation.
--Marek
-
2. Re: Problem when configuring GossipRouter
ingedeut Oct 15, 2010 6:01 AM (in response to goldmann)thanks Marek,
i use TCP Stack. Support GossipRouter an automatic discovery of cluster memebrs?
--Regards
Younes
-
3. Re: Problem when configuring GossipRouter
goldmann Oct 15, 2010 7:43 AM (in response to ingedeut)Of course, but it needs to be properly configured.
--Marek
-
4. Re: Problem when configuring GossipRouter
ingedeut Oct 16, 2010 7:24 AM (in response to goldmann)Thanks Marek for your answer,
i have tried to do what is writing in the documentation, but unfortunately without succes. I have started a GossipRouter under younes.cit.tu-berlin.de like this:
younes@younes:/$ java org.jgroups.stack.GossipRouter -port 5555 -bindaddress younes.cit.tu-berlin.de GossipRouter is starting... log4j:WARN No appenders could be found for logger (org.jgroups.conf.ClassConfigurator). log4j:WARN Please initialize the log4j system properly. GossipRouter started at Sat Oct 16 13:09:56 CEST 2010 Listening on port 5555 bound on address younes.cit.tu-berlin.de/130.149.3.91
younes@younes:/$ clearyounes@younes:/$ java org.jgroups.stack.GossipRouter -port 5555 -bindaddress younes.cit.tu-berlin.deGossipRouter is starting...log4j:WARN No appenders could be found for logger (org.jgroups.conf.ClassConfigurator).log4j:WARN Please initialize the log4j system properly.GossipRouter started at Sat Oct 16 13:09:56 CEST 2010Listening on port 5555 bound on address younes.cit.tu-berlin.de/130.149.3.91Then i have started a JBoss AS under another Node in the same network like using:
younes@younes2:~/ESBCluster/jboss-soa-p.4.3.0/jboss-as/bin$ ./run.sh -b younes2.cit.tu-berlin.de -c all -Djboss.messaging.ServerPeerID=4 -Djboss.default.jgroups.stcak=tcp -g ClusterESB
I have recieved an error by node 2 saying:13:16:20,220 ERROR [GossipClient] exception connecting to host 130.149.3.91:5555
I give additionnaly log.txt and cluster.xml (configuration for node2).Please help me. (can you please give me an example of how to configure GossipRouter in cluster.xml)I use Soa-p-4.3.0Thanks in advanceYounes-
log.txt.zip 9.9 KB
-
cluster-service.xml 13.0 KB
-
-
5. Re: Problem when configuring GossipRouter
belaban Oct 18, 2010 4:46 AM (in response to ingedeut)-Djboss.default.jgroups.stcak=tcp is misspelled, it needs to be
-Djboss.default.jgroups.stack=tcp
Did you change the "tcp" entry in jgroups-channelfactory-stacks.xml to use TCP:TCPGOSSIP ?
-
6. Re: Problem when configuring GossipRouter
ingedeut Oct 18, 2010 7:04 AM (in response to belaban)Thanks Bela,
i change the tcp entry in cluster.xml ( i use JBoss AS 4.4: there is no jgroups-channelfactory-stacks.xml) to use:
<PING gossip_host="younesmysql.dyndns.org" gossip_port="5555" gossip_refresh="15000" timeout="2000" num_initial_members="3"/>
<PING gossip_host="younesmysql.dyndns.org" gossip_port="5555" gossip_refresh="15000"timeout="2000" num_initial_members="3"/><PING gossip_host="younesmysql.dyndns.org" gossip_port="5555" gossip_refresh="15000" timeout="2000" num_initial_members="3"/>The GossipRouter has reacted but unfortunately through an Exception saying:
18.10.2010 12:49:02 org.jgroups.stack.GossipRouter mainLoop SCHWERWIEGEND: failure handling a client request java.io.EOFException at java.io.DataInputStream.readFully(Unknown Source) at org.jgroups.stack.IpAddress.readFrom(IpAddress.java:274) at org.jgroups.util.Util.readAddress(Util.java:493) at org.jgroups.stack.GossipData.readFrom(GossipData.java:70) at org.jgroups.stack.GossipRouter.mainLoop(GossipRouter.java:354) at org.jgroups.stack.GossipRouter.access$000(GossipRouter.java:42) at org.jgroups.stack.GossipRouter$1.run(GossipRouter.java:243) at java.lang.Thread.run(Unknown Source)
I use JGroups-2.5.0.bin
any idea please?
- muss the GossipRouter work under port 5555 or can i use other port (e.g 8080)?
Thanks
younes
-
7. Re: Problem when configuring GossipRouter
belaban Oct 18, 2010 7:06 AM (in response to ingedeut)You need to use the same version of JGroups for the GossipRouter and the cluster nodes.
GossipRouter can run under any open port
-
8. Re: Problem when configuring GossipRouter
ingedeut Oct 18, 2010 9:36 AM (in response to belaban)Bela Ban schrieb:
-Djboss.default.jgroups.stcak=tcp is misspelled, it needs to be
-Djboss.default.jgroups.stack=tcp
what is the difference between the two expressions??
--Regards
Younes
-
9. Re: Problem when configuring GossipRouter
goldmann Oct 18, 2010 9:43 AM (in response to ingedeut)jboss.default.jgroups.stcak vs jboss.default.jgroups.stack
--Marek