High Latencies for Redis Operation #2378
Labels
status: feedback-reminder
We've sent a reminder that we need additional information before we can continue
status: waiting-for-feedback
We need additional information before we can continue
Bug Report
There are high latencies for Redis Operations - EXPIRE for creating and fetching the session.
Current Behavior
Our project is based on Reactor, Kotlin Coroutines and Netty.
We're using Spring Session Data Redis with LettuceClient for Redis related operations.
Our APM tool DataDog show cases that while creating/fetching the session, EXPIRE ops have very high latencies ranging in minutes. Rest of the operations like HGETALL, DELETE, EXISTS and HMSET 99th percentile is within 100ms.
Our Redis Infra latencies looks good. So we suspect DataDog showing high latencies in spans could be due to thread waiting.
There is only one NIO thread created - lettuce-nioEventLoop-5-1
Redis Operations logs
Session Flow
Any Session fetch is associated with below Redis Ops
HGETALL -> New Session -> DELETE -> save -> HMSET -> EXPIRE
HGETALL -> Existing Session -> Expired -> DELETE -> save -> HMSET -> EXPIRE
HGETALL -> Existing Session -> Non Expired -> EXISTS -> save -> HMSET -> EXPIRE
Expected behavior/code
The Redis operations latencies should be in admissible ranges, few Millis.
Environment
Spring Redis config in use
The issue is intermittent. It has been observed under very low load as well.
The application recovers itself after some time and is able to serve high traffic usually.
The text was updated successfully, but these errors were encountered: