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

JGroups : Infinite invocation of Callable's call method on remote node even if it is invoked once using the RPCDispatcher's callRemoteMethod method

I have created a cluster with 2 nodes (Node1 and Node2) using jgroups library. The cluster is formed successfully. But while invoking callable from Node1 to Node2, it is getting executed infinite times in Node2 and one time in Node1. Jgroups…
Indu
  • 21
  • 2
2
votes
2 answers

Connect two machines using jgroups

I'm trying to run the Draw example and communicate between two different machines. It works fine on same machine using this command: java -Djgroups.bind_addr=127.0.0.1 -Djava.net.preferIPv4Stack=true org.jgroups.demos.Draw Now I tried giving the…
Sibtain
  • 1,436
  • 21
  • 39
2
votes
3 answers

Infinispan server ignores jgroups bind_addr

I'm trying to get to work simple Infinispan Server cluster containing two nodes. The problem is that Infinispan ignores my bind_addr jgroups setting in clustered.xml file. I can specify this setting using -Djgroups.bind_addr=GLOBAL -- it works, but…
ars
  • 1,509
  • 3
  • 18
  • 29
2
votes
1 answer

Is JGroups intended for local use only (LANs), or can it coordinate hosts across the internet?

Given JGroups’ seeming default to using multicast, I'm wondering if it's purpose is to coordinate a cluster of hosts/nodes locally in a LAN. Or is JGroups practical for coordinating across the internet such as between servers housed in coloslocated…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
2
votes
2 answers

What are the main differences between Netty and JGroups?

JGroups seems to be in existence since late 90's. Why do we need Netty when we have JGroups? Is it because JGroups is based on thread pooling while Netty is asynchronous? Is that the only difference?
pphanireddy
  • 1,109
  • 2
  • 12
  • 17
2
votes
1 answer

SEVERE: JGRP000019: failed passing message to receiver: %s

I'm trying to multicast a Serializable object containing a number of ResultSets using JGroups. The object appears to be received ok as this if statement is followed: if(msg.getObject() instanceof State) However when I try to run an operation on a…
James
  • 741
  • 1
  • 11
  • 28
2
votes
1 answer

Hibernate Search JGroups configuration under JBoss 7

I'm part of a team writing a web app that uses Hibernate Search, and we've recently tried to start to implement the use of JGroups to keep Lucene indexes on different nodes in sync with each other. However, I've been unable to get past the most…
Jon
  • 3,510
  • 6
  • 27
  • 32
2
votes
2 answers

JGroups RPC: NoSuchMethodException

Have a view consisting of 3 server nodes (American Samoa, Alaska, Alabama) and 1 client node (VoterClient). Whenever I try to invoke the vote method in the first server within the view which in the below case is American Samoa, I get a…
Amar Premsaran Patel
  • 1,293
  • 7
  • 17
  • 26
2
votes
2 answers

Jgroup examples

Is there a website which shows any jgroup code examples? The tutorial and manual on jgroups.org is not very good, and several cursory searches via Google, does not come up with much. I'm looking for examples of serializing objects and sending them…
1
vote
2 answers

EhCache + JGroups give "Exception on flushing of replication queue: null"

I'm trying to configure EhCache with JGroups-based replication, but I get log flooded with the following exception as soon as first element is added to the cache: 12061 [Replication Thread] ERROR…
Andrey Adamovich
  • 20,285
  • 14
  • 94
  • 132
1
vote
1 answer

How to get message statistics sent/received between members when using JGroups (TCP/UDP)?

I am using JGroups TCP protocol to maintain cluster. I have been trying to get some statistics of number of messages sent and received and size of each message to create some reports. Is there a way I can capture this information? Thanks in advance.
Developer
  • 27
  • 1
  • 10
1
vote
0 answers

WildFly with embedded ActiveMQ AMQ224091 error fills logs in Kubernetes cluster after restart

As discussed in this question, I setup a cluster with embedded ActiveMQ on WildFly 25 in Kubernetes. The configuration for the ActiveMQ subsystem is as follows:
sprockets
  • 981
  • 1
  • 6
  • 16
1
vote
1 answer

observer-only jgroups cluster members?

We are using jGroups to build two clusters: "server" and "app". They are independent clusters, running on different machines (communicating with each-other over JMS). Some of our code needs to run on only one node in a cluster, so we use the…
Neeme Praks
  • 8,956
  • 5
  • 47
  • 47
1
vote
1 answer

infinispan embedded Cache with Invalidation mode and putForExternalRead

We are running a cluster of 30+ servers with massive caching to improve our performance. We use Spring Boot. We have hibernate 2LC replicated with invalidation mode Local Application Caches without any clustering and Application Caches with…
Janning Vygen
  • 8,877
  • 9
  • 71
  • 102
1
vote
0 answers

Artemis live-only cluster scale-down fails to move messages

We are moving Artemis from a VM to K8s. As a testament to the resilience of the broker itself, the VM-based broker rarely if ever abends. Typically, it runs continuously for our full 3-month release cycle. In K8s, we have a StatefulSet of 3…