Public | Automated Build

Last pushed: 7 days ago
Short Description
JGroups Gossip Router Docker Image
Full Description

JGroups Gossip Router Docker Image

Starts a JGroups Gossip Router that acts as a lookup service.
Cluster members register with under their cluster name, and new members query the GossipRouter for initial cluster membership information.

Usage

To start and bind to localhost:12001

docker run -p 12001:12001 jboss/jgroups-gossip

More at http://jgroups.org/javadoc/org/jgroups/stack/GossipRouter.html

Logging

The image uses log4j2 for logging. The level of the logger org.jgroups is configurable using a system property. To run with TRACE enabled:

docker run -it -e "LogLevel=TRACE"  jboss/jgroups-gossip

It's also possible to use a different log4j2.xml file altogether. To specify a different conf file, from a mounted volume:

docker run -it -e "LOG4J2_FILE=/mount/folder/log4j2.xml" -v /local/folder:/mount/folder jboss/jgroups-gossip
Docker Pull Command
Owner
jboss
Source Repository

Comments (2)
molshanskyzipwhip
7 months ago

3.6.11 works fine for me, however 4.0.0.CR2 doesn't. I'm running it in Rancher and can't get Gossip to work. This shows up in the logs over and over again:

2/22/2017 4:30:36 PM93699870 [ERROR] GossipRouter: JGRP000188: failed reading request
2/22/2017 4:30:36 PMjava.lang.ClassNotFoundException: Class for magic number 0 cannot be found
2/22/2017 4:30:36 PM at org.jgroups.conf.ClassConfigurator.create(ClassConfigurator.java:122) ~[jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.util.Util.readOtherAddress(Util.java:1415) ~[jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.util.Util.readAddress(Util.java:1364) ~[jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.stack.GossipData.readFrom(GossipData.java:168) ~[jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.stack.GossipRouter.readRequest(GossipRouter.java:291) [jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.stack.GossipRouter.receive(GossipRouter.java:246) [jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.util.Util.bufferToArray(Util.java:942) [jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.blocks.cs.ReceiverAdapter.receive(ReceiverAdapter.java:25) [jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.blocks.cs.NioConnection._receive(NioConnection.java:236) [jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.blocks.cs.NioConnection$Reader._run(NioConnection.java:453) [jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at org.jgroups.blocks.cs.NioConnection$Reader.run(NioConnection.java:441) [jgroups.jar:4.0.0.CR2]
2/22/2017 4:30:36 PM at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]

caskolkm
a year ago

It should be nice if we can get more logging.