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
0
votes
1 answer

JGroups not forming a cluster with UDP

I am trying to create a leader election protocol using JGroups so that N instances of my program can elect a master and all clients get the ip of this master. More or less the current implementation relies on each instance trying to acquire a lock…
dendini
  • 3,842
  • 9
  • 37
  • 74
0
votes
1 answer

jGroups jar giving Exception

We have a legacy project and we are using jgroups-all 2.2.9.1 jar. We are facing a issue from the past few days where our server crashes giving following exception : java.lang.IllegalArgumentException: timeout value is negative at…
kanhai shah
  • 1,193
  • 10
  • 14
0
votes
1 answer

the configuration for jgroup

I started two jgroup process in single machine using JChannel channel=new JChannel(); It will use default XML configuration file in jgroups-all.jar called udp.xml. Then I viewed port usage by executing netstat command. The result is…
liam xu
  • 2,892
  • 10
  • 42
  • 65
0
votes
1 answer

How to use FD_PING with tcp in Jgroups

I am trying to use FD_PING with jgroups but its failing. I have added FD_PING in the protocol list in jg-protocol-id.xml after which it has started to recognize FD_PING but when it calls the command for in FD_PING it sends the name of the node…
Ranger
  • 435
  • 1
  • 4
  • 19
0
votes
1 answer

Is jgroup using checksum to become reliable on UDP?

I try to understand how jgroup realized reliable multicast. I've read the manual and learned that they are using negative acks. But what happens when a cluster-member receives a corrupted message? I can't find anything about that in the official…
stormsam
  • 179
  • 1
  • 2
  • 10
0
votes
2 answers

Establishing a new service leader and informing the lead

I have a distributed system design problem. The problem brief is We have many clients to a service. The service needs to be fault-tolerant and so it will have many replicas. When a client can no longer access the service it will switch to a…
Andrew Gilmartin
  • 1,776
  • 12
  • 12
0
votes
1 answer

In need of an example of RpcDispatcher for remote method invocation

I am writing a Java application which will be using Jgroups. I have downloaded the JGroups jar and everything looks good from a basic functionality standpoint. I am able to create a simple cluster, and then lanch multiple java JVMS/nodes via…
-1
votes
1 answer

Jgroups Simple Chat application peer to peer communication in external networks or two different subnets

I am using jgroups demo Simple chat application, its working fine in same networks as i am using this command using UDP.xml: java -Djgroups.bind_addr=MY_IP -Djava.net.preferIPv4Stack=true SimpleChat but, how to use for external networks with…
1 2 3
24
25