Quarkus - Redis | Implement scheduler for cache refresh - getting ConnectionPoolTooBusyException on key scan #41991
-
Hello, I have implemented a scheduler in my Quarkus application that runs every 2 minutes to refresh the cache (The cache items have a TTL, but a higher value, in order of days). The relevant code snippet is as follows:
The issue I'm encountering is that performing an entire key scan like above results in the following exception: Additionally, I have observed a near one-to-one relationship between the Could you please provide guidance on:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
/cc @Ladicek (redis), @cescoffier (redis), @gwenneg (cache), @machi1990 (redis), @manovotn (scheduler), @mkouba (scheduler) |
Beta Was this translation helpful? Give feedback.
-
Closing this as the underlying issue was having multiple Uni instances created for interacting with Redis, and not related to scheduler/ get keys, that exhausted the connection pool resources. |
Beta Was this translation helpful? Give feedback.
Closing this as the underlying issue was having multiple Uni instances created for interacting with Redis, and not related to scheduler/ get keys, that exhausted the connection pool resources.