Questions tagged [jgroups]

JGroups is a Java networking library that supports reliable group communication over UDP (IP Multicast) or TCP.

JGroups is a toolkit for reliable messaging. It can be used to create clusters whose nodes can send messages to each other.

The most powerful feature of JGroups is its flexible protocol stack, which allows developers to adapt it to exactly match their application requirements and network characteristics.

JGroups comes with a large number of protocols, for example:

  • Transport protocols: (IP Multicast) or
  • Fragmentation of large messages
  • Reliable unicast and multicast message transmission
  • Failure detection: crashed nodes are excluded from the membership
  • Flow control to prevent slow receivers to get overrun by fast senders
  • Ordering protocols: FIFO, Total Order
  • Membership
  • Encryption
  • Compression
368 questions
2
votes
1 answer

Infinispan Distributed Cache Communication Issue in Jboss Multiple Nodes

I have a multiple nodes of Jboss on different VMs running in standalone mode. I am using Distributed Infinispan Cache. Below is the code which I'm using currently. JChannel jchannel = new…
2
votes
3 answers

Infinispan initial state transfer timout

I am working on setting up a replicated infinispan (9.4.16.Final, Wildfly 18.1) cache for two nodes (server1 and server2) and I am running into an issue where the initial state transfer times out on startup. This only happens when I am upgrading my…
Steve
  • 31
  • 1
  • 2
2
votes
1 answer

How to enable cache replication on Liferay 7.1. DXP 1.0 GA?

I have the next environment: Liferay 7.1 DXP with a clustered license (bundle with wildfly 16.0) This bundles running in the same machine (2 nodes) on the localhost but different ports Each node have the same database (postgresql) Separate running…
atford1
  • 21
  • 1
2
votes
1 answer

Invalid lambda deserialization with Infinispan Cache and computeIfAbsent

I’m toying with an basic infinispan cluster and I came across a puzzling error. I’m basically implementing a shared map, holding just one Integer Here is the code of my service package sandbox.infinispan.test.service; import…
Sxilderik
  • 796
  • 6
  • 20
2
votes
1 answer

CacheException:Unable to invoke public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport

I am using distributed caching with Infinispan-core-8.2.4.Final.jar and jgroups-3.6.7.Final.jar with Wildfly 10.1.0 but getting below exception in start up only. org.infinispan.manager.EmbeddedCacheManagerStartupException:…
Krishna
  • 795
  • 2
  • 7
  • 24
2
votes
1 answer

How to disable FIFO and restransmit protocols in JGROUPS?

I'm a newbie to Jgroups, but based on my understanding of the documentation, one of its key advantages is that one can disable the protocol elements one does not need/want (to achieve better performance). However, when I tried to disable anything…
Jonathan Sylvester
  • 1,275
  • 10
  • 23
2
votes
4 answers

Java Applications Replicating State

I have the same server side application running on multiple machines. I would like to provide a way to push changes to all the applications. I'm more interested in state/property changes to the objects themselves, and not so much replication of…
Steve
  • 53,375
  • 33
  • 96
  • 141
2
votes
2 answers

JMS messaging in Wildfly standalone mode

I am using 2 Wildfly 11 server instances in standalone mode started with standalone-full-ha.xml. Now i would like to send JMS Messages between those two by implementing a Sender and a Receiver that uses the same topic like…
Thomas
  • 620
  • 7
  • 19
2
votes
1 answer

Communication between 2 nodes in a cluster

I am trying to figure out how this will work out: client-server communication via NIO/BIO Server-server communication (replication, membership etc) via JGroups (replication of data can be a pain?) What are your suggestion, pros/cons of using such…
zengr
  • 38,346
  • 37
  • 130
  • 192
2
votes
2 answers

org.infinispan.util.concurrent.TimeoutException: Replication timeout for "node-name"

We have three services that have to be in cluster. So we used Infinispan for cluster the nodes and share data between those services. After successfully restarted, sometimes I am getting an exception and got received "View Changed" event for lefted…
jagadeesh k
  • 109
  • 1
  • 15
2
votes
1 answer

JGroups with TCPPING (static peer list)

I want to have a few instances of my Java app collaborating with one another. I tried using JGroups for that, with no success. I'm not using JBoss, just plain JGroups library 4.0.3. I tried to make a 'minimal working example' with two instances…
LordCapybara
  • 117
  • 2
  • 11
2
votes
1 answer

JGroups doesnt form a cluster while running inside docker across multiple nodes

Im running jgroups application inside docker containers. Containers are running across two nodes (A & B) and they are all connected using docker swarm mode overlay network. I referred to https://docs.docker.com/engine/swarm/networking/ Here is what…
Pragalathan M
  • 1,673
  • 1
  • 14
  • 19
2
votes
0 answers

Reliable multicast libraries

Thinking to implement Reliable Multicast for a Desktop Application. Gone through JRMS and found that there is no proper documentation for it. Is JRMS still in use?? Or otherwise how JGroups can be effective for Reliable Multicast? Is there any other…
Nisanth
  • 43
  • 4
2
votes
0 answers

Jgroups cluster works for few hours/couple of days and then fails sending messages.

We have production environment using jgroups 2.6.13. Cluster is created within a subnet with different machines. Jgroups view shows all members in cluster and works fine for few hours even sometimes couple of days. However then fails sending…
2
votes
1 answer

Jgroups cluster breaks on restart of individual cluster members

I am experiencing issue with our jgroups cluster loosing each other when a few cluster members restart. We have 13 nodes in the cluster and all of them are in the same subnet . When restarting 4 of the nodes the entire cluster breaks down. All…
Nivedita Dixit
  • 181
  • 1
  • 3
  • 12