Replies: 1 comment 3 replies
-
Likely, the netty thread pool needs to start up. If you limit the I/O/worker thread pools to a single thread, then you should see a much better startup performance |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My app used to have 1.5 seconds as the connection timeout and 2 seconds as socket timeout. But our aws lambda function kept throwing Redis Initial connection timeout exception. After I bumped up the connection timeout to 3 seconds, and added bunch of logs, the exception stopped and I notices that many initial connection from lambda function took more than 1.5 seconds (but less than 1.7 seconds).
The time is spent on this method inside the RedisClient.java:
public <K, V> StatefulRedisConnection<K, V> connect(RedisCodec<K, V> codec) {
}
Wonder why it could take this long to establish a connection. Our app only uses one redis client and the client just opens one connection (it does not use connection pool). I turned on the "io.lettuce.core" trace log and did not see anything major. The "Hello" command ran fast.
Is this a lambda specific thing or the our redis on aws side is just slow (network?).
If you have some ideas or suggestions, please share with me. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions