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

$1.class and $2.class not Serializable exception in jgroups

I am creating a demo stock exchange distributed program in Java using jgroups as middleware. My Stock class has a priority queue which has a comparator, and results in Stock$1.class and Stock$2.class along with Stock.class. Jgroups can send only…
Yogesh
  • 11
  • 2
1
vote
1 answer

Setup ehcache with jgroups replication on kubernetes

I'm trying to setup a small springboot application using ehcache with jgroups replication in kubernetes, but somehow not able to discover the other members to form a cluster. The bootstrap request to find other nodes is not working, as the message…
KB Prodigy
  • 231
  • 5
  • 13
1
vote
1 answer

Wildfly Clustering using JBoss

I'm trying to set up a Wildfly 11 cluster but I'm not able to make it work. Basically, I have 2 instances of Wildfly with one instance having port-offset=2 running on my local machine. Here are the publisher and MDB: @JMSDestinationDefinitions(value…
czetsuya
  • 4,773
  • 13
  • 53
  • 99
1
vote
1 answer

Injecting an existing Jgroups channel into Infinispan configuration

My application started to use Jgroups long ago for cluster event synchronization. Now we are introducing Spring @Cache annotation for distributed caching, and we chose Infinispan as our main cache provider. I am in the process of learning Infinispan…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
1
vote
2 answers

How to secure Infinispan cluster

I am trying to prepare a secure Infinispan cluster using SimpleToken as described in here JGroup . Although I provided the required configuration, new nodes are able to join the cluster even if they have different 'auth_value' value. Here is my…
1
vote
1 answer

Custom hashing function in infinispan

I am using Infinispan version 8.2 .I already knew when an Node puts an entry to an Cache.It uses its internal hashing on the key and chooses a primary node in an cluster. I know that we can override this hashing with our custom hash function.But I…
1
vote
1 answer

Can't run two standalone instances on one server that use local Infinispan containers

It seems I am unable to run two standalone servers on one server, for an application that uses local Infinispan containers. This fails because both instances will start up the same default local Infinispan cache containers, and one tries to register…
1
vote
2 answers

JGroups sending large data is very slowly

I tried to send 10M data to cluster via JGroups by udp-multicast, it takes tens of seconds, I have changed some udp properties, but it does not work, here is my udp.xml file. We test in local network. there no problem while sending small data.
Rinoux
  • 11
  • 3
1
vote
1 answer

Exception:Error loading metadata for index file: segments_2j|M|field... while running infinispan in 2 machines

I tried running infinispan in two machines and persisted the index data in one machine. When i try to run simultaneously in 2 machines with indexing and persisting(cache-store) into the database, i am getting the following exception, Caused by:…
1
vote
2 answers

How to force jGroups to bindt to specified interface when have more than one interface

I want to run jGroups within a machine with more than one interface. Consider these two interfaces and two IPs: ens256 -> 172.16.2.2 ens128 -> 192.168.1.2 I want to force my program to bind jGroups channel to ens256 with this command java -jar…
littleali
  • 408
  • 1
  • 6
  • 22
1
vote
0 answers

Cant get infinispan distribution cache using EmbeddedCacheManager object when try to get same cache again in second node

I am using infinispan 8.1.3 for my SIP application server which was created with plain java. My server always get stuck when i start server as a secondth node. it always stuck when loading "particular cache" from embedded cachemanager. how to solve…
jagadeesh k
  • 109
  • 1
  • 15
1
vote
1 answer

JGroups, TCP_NIO multiple messages sent to nowhere

Messages sent to ports I never specified in my configuration file. this is my config: [10-Jan-2011 11:02:22.917 GMT] ERROR org.jgroups.protocols.TCP_NIO - failed sending message to 192.168.50.41:8851 (116 bytes): java.lang.Exception: connection to…
user408687
1
vote
1 answer

jgroups demo project logging is not working

I want to logging to know about how jgroups is working internally.So,i made two cluster by following http://jgroups.org/tutorial/index.htmt website .cluster formed successfully but i can't logging FD protocol keep alive message,sharing message to…
jagadeesh k
  • 109
  • 1
  • 15
1
vote
1 answer

Ehcache Jgroups replication using TCP not working in AWS cloud with 2 node cluster

Below is ehcache configuration we are using. We use Jgroups for cache replication. ehcache.xml
Rohit Thakur
  • 244
  • 2
  • 12
1
vote
0 answers

OutOfMemoryError : org.jgroups.protocols.pbcast.NAKACK

I have memory leak with jgroup replication and ehcache that makes an OutOfMemoryError. We tried different configuration for CahceManager but we're running out of idea. If someone already encounter the problem. Packages versions : ehcache :…