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
1
vote
1 answer

ActiveMQ Artemis cluster on Docker Swarm

I am trying to setup simple cluster of 2 ActiveMQ Artemis brokers within Docker Swarm environment. Stack configuration version: "3.7" services: broker_1: image: broker-local build: context: ./activemq …
M.Puk
  • 762
  • 9
  • 25
1
vote
1 answer

Does Alfresco 3.4e CE support clustering?

I have just a simple question to answer ! Does Alfresco 3.4e Community Edition support clustering ? If yes, then what are the supported clustering methods (e.g is JGroups supported?) ? Regards,
Al-Mothafar
  • 7,949
  • 7
  • 68
  • 102
1
vote
0 answers

Server won't send message to JGroups Cluster

I am trying to figure out how to save my server state by sending it to a JGroups cluster whenever there is an update. For this purpose I am using the following while loop in my Server's main: while (true) { if (updated) { …
MIT27
  • 23
  • 3
1
vote
1 answer

How can isolate Keycloak Infinispan between namespaces in one Kubernetes cluster to prevent KC pod from discovering and synchronizing from one other

Currently, I have one Kubernetes with 2 namespaces: NS1 and NS2. I’m using jboss/keycloak Docker image. I am operating 2 Keycloak instances in those 2 namespaces and I expect that will run independently. But it is not true for Infinispan caching…
bkl
  • 35
  • 1
  • 7
1
vote
2 answers

Trying to use TCPPING for JGroups in a Infinispan env fail as address is Transport.getAddress() is null

I am trying to setup a replicated Infinispan embedded cache. When using the demo code for programatically setup the cache, everything works, as expected…
iXô
  • 1,133
  • 1
  • 16
  • 39
1
vote
0 answers

Keycloak clustering - JGROUP_PING - refresh token failed

Trying to run Keycloak (Keycloak 9 with RedHat SSO 7.4 (rh-sso-7/sso74-openshift-rhel8 image, version 7.4)) in Openshift using JGROUP_PING configuration. Nodes are seemed to be discovered (database table is updated basing on running pods, so they…
user3475366
  • 113
  • 1
  • 11
1
vote
1 answer

What will happen if an updated jgroups view message missed by a member?

In our code, we have attached custom org.jgroups.ReceiverAdapter to the channel for the callback. private JChannel channel = new JChannel(is) channel.setReceiver(new JGroupsListener()); class JGroupsListener extends ReceiverAdapter { …
Subhashc
  • 53
  • 10
1
vote
0 answers

Ehcache jgroup replication issue [FIND_INITIAL_MBRS FIND_MBRS ] are required by GMS, but not provided

Our project moved from tradition tomcat deployment to kubernetes just now. Previously, Ehache replication was working using RMI Replicator. RMI relication is also now not working with Kubernetes so I am trying to replicate ehcache kubernetes using…
1
vote
1 answer

Achieve high availability and failover in Artemis Cluster with shared-store HA policy through JGroups protocol

In the documentation of Artemis ActiveMQ it is stated that if high availability is configured for the replication HA policy then you can specify a group of live servers that a backup server can connect to. This is done by configuring group-name in…
Apurva
  • 63
  • 1
  • 6
1
vote
1 answer

where to place test-jgroups-jdbc_ping.xml jgroup file in JGroups configuration

In Artemis ActiveMQ Cluster documentation, it is specified that jgroups-file attribute. This is the name of JGroups configuration file. It will be used to initialize JGroups channels. Make sure the file is in the java resource path so that Apache…
Apurva
  • 63
  • 1
  • 6
1
vote
1 answer

JGroups : explain mcast_addr for dummies

Using the following command to listen in for MCast messages. java -cp $CLASSPATH:./jgroups-all.jar org.jgroups.tests.McastReceiverTest -mcast_addr 228.1.1.1 -port 55555 Based on this image, the 228.1.1.1 should be a valid IP for multicasting. Now…
Unhandled Exception
  • 1,427
  • 14
  • 30
1
vote
1 answer

Integration Testing Distributed Java EE Applications

We are having a setup of 3 different Java EE Servers, all communicating with both JGroups and RMI. We are heavily unit testing our code and the whole team is totally in favor of TBD, but we are facing problems when it comes to integration testing…
Erik
  • 11,944
  • 18
  • 87
  • 126
1
vote
2 answers

Need to solve JGroups non-grouping behavior for a two-host group

I'm using JGroups to make a cluster of two machines by having them join the same-named group, and I'm getting erratic grouping behavior, and I'm asking if there's either a JGroups configuration change or a server configuration change I need to do to…
LPower
  • 11
  • 4
1
vote
1 answer

Using custom JGroups module in JBoss EAP

I have JBoss EAP 6.4 and JGroups 3.2.13 in it. To migrate the application to Amazon ECS using Service Discovery I need DNS_PING protocol (article about migration). The issue is that DNS_PING was added only in JGroups 4.0.12 (github link) so I can…
dmkov
  • 334
  • 2
  • 11
1
vote
1 answer

JGroups: Discovery num_discovery_runs is not working

I have my own Protocol[] which looks like this Protocol[] prot_stack = { new UDP(), new PING() .setValue("num_discovery_runs", 10) …
Murat Karagöz
  • 35,401
  • 16
  • 78
  • 107