Questions tagged [redisson]

Redisson - distributed Java objects and services (Set, Multimap, SortedSet, Map, List, Queue, BlockingQueue, Deque, BlockingDeque, Semaphore, Lock, AtomicLong, CountDownLatch, Publish / Subscribe, Bloom filter, Remote service, Spring cache, Executor service, Live Object service, Scheduler service) on top of Redis server

370 questions
1
vote
1 answer

Redis fetch takes time using redisson

I have a scenario where application need to to get operation from redis around 80 times per request. When I am hitting 1 request on that application it gives response in less than 1 seconds but when increased the request size to 100 redissonClient…
ArunavaS
  • 197
  • 1
  • 12
1
vote
1 answer

redisson.yaml environment variable

I am using Redisson with Spring-boot and I need to pass in an environment variable to redisson.yaml address: "redis://${REDIS_HOST}:6379" It's currently not working when passing environment variables. --- singleServerConfig: idleConnectionTimeout:…
Ronny Shibley
  • 2,030
  • 22
  • 25
1
vote
1 answer

Redisson cluster configuration when set of Master servers are down

I have Redisson cluster configuration below in yaml file, subscriptionConnectionMinimumIdleSize: 1 subscriptionConnectionPoolSize: 50 slaveConnectionMinimumIdleSize: 32 slaveConnectionPoolSize: 64 masterConnectionMinimumIdleSize:…
1
vote
1 answer

Redisson memory leak When I try to create client

When I try to use Redisson to Connect Redis Server, it some time show me that memory leak error. how can I fix that. The reproduce code is in below. Expected behavior It should't have memory leak. Actual behavior [main] ERROR…
sappy
  • 770
  • 2
  • 6
  • 16
1
vote
1 answer

Tomcat session manager with redisson

Trying to configure my JavaEE web project with Redisson. Setup Redis in Docker container and it works fine. Went through https://github.com/redisson/redisson/tree/master/redisson-tomcat to configure my tomcat. When i am trying to run the project…
Kodin
  • 772
  • 8
  • 23
1
vote
1 answer

Redisson + redis sentinel. how to handle failover and write into redis?

I have just edited my previous question, and I am providing more details, (hopefully someone would be able to help). I have a Redis cluster with 1 master and 2 slaves. All 3 nodes are managed by Sentinel. The failover works fine and when the new…
1
vote
1 answer

Unlock Redis Locks From CLI

I have a java app that has multiple instances over a local network. It uses Redis Redlock to manage integrity of a shared database. Issue here is this java app is still highly unstable so that it crash lot of times. When one instance crashed and it…
Gayan Viranka
  • 443
  • 1
  • 6
  • 17
1
vote
1 answer

Redisson tries to connect to internal redis IP instead of floating redis IP specified in config

I'm using redisson with ratpack. Below is the configuration I've set for redisson. Config redissionConfig = new Config(); redissionConfig.setTransportMode(TransportMode.EPOLL); redissionConfig.useClusterServers() …
hisdudeness
  • 438
  • 1
  • 5
  • 15
1
vote
1 answer

Redisson: Not able to set address in SingleServer mode

I am using the single server mode to configure the redis server and port, am I missing something here ? Config config = new Config(); config.useSingleServer().setAddress("localhost:6379"); But below exception is encountered Exception in thread…
Sunil
  • 364
  • 1
  • 14
1
vote
1 answer

Redis: Publish pipelined/batched messages - Get pipelined/batched messages

I'm using redisson as a java redis client. When I send a batch with multiple .publish(msg) commands to redis, does redis send these messages as a "batch/pipeline" back to the subscribers in ONE network connection so that redisson handles them all at…
RoboFlax
  • 135
  • 3
  • 14
1
vote
1 answer

Is Redisson map thread-safe?

I have 8 Storm Bolt-Executors running in parallel. I have a stats cache : Map> e.g. userVisitCache -> ( userId, (roomId, totalVisit)) any of the 8 parallel threads (Bolt Executor) , whenever finds an user in a room will increment the count and if…
kaniska Mandal
  • 189
  • 1
  • 12
1
vote
0 answers

The cache in redis can not be clear automatic when Redisson restart

I have set the ttl and idleTime for cache, the cache can be remove when the app is running, however when I restart app the EvictionScheduler may not work for cache, the cache can not be clear when ttl approach. error @Bean public CacheManager…
Wesly186
  • 11
  • 4
1
vote
1 answer

How to get ttl Redisson key value from Redis client

Unable to Retrieve TTL value RedissonClient client = Redisson.create(config); RMapCache map = client.getMapCache("demoMap"); map.put("abc", "xyz", 10, TimeUnit.SECONDS);
Kumar
  • 41
  • 8
1
vote
1 answer

How to get all Connected Clients of Redis Cluster?

How to get all connected clients of a redis cluster? I am using AWS elasticCache redis with non cluster mode and redission as my redis client. My Use Case: I need to run specific code from only 1 connected redis client. Thanks
user1097437
  • 111
  • 3
  • 12
1
vote
1 answer

Object deserializtion in Redisson for a class with only parameterized constructor

I've a java object(ComponentType.java) that I need to store in Redis. I'm using Redisson as client library. The object has an instance variable (ComponentType) which only has one private parameterized constructor. The ComponentType class has been…