-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception=redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out #2105
Comments
We are using a similar stack (jedis 3.0.1, java 11.0.3, spring boot and aws redis 5.0.3) Same symptoms: network in spikes, the clients cannot get resources from the jedis pool, the number of new connections on redis go as high as 1.3k (during normal operation it's in 1 digit area) What we also observed is that the jvm crashes afterwards. Can you check if this is also happening on your side ? |
Please refer to: redis/redis#11420 This PR cancels calling the quit command when the Jedis internal link is abnormal, but the user interface `Jedis.quit()` is not affected. This optimizes Jedis connection pool performance and fixes: redis#2105 redis#2108
Please refer to: redis/redis#11420 This PR cancels calling the quit command when the Jedis internal link is abnormal, and deprecate the user interface `Jedis.quit()`. This optimizes Jedis connection pool performance and fixes: redis#2105 redis#2108
* Jedis avoid using QUIT command Please refer to: redis/redis#11420 This PR cancels calling the quit command when the Jedis internal link is abnormal, and deprecate the user interface `Jedis.quit()`. This optimizes Jedis connection pool performance and fixes: redis#2105 * Update src/main/java/redis/clients/jedis/Connection.java Co-authored-by: M Sazzadul Hoque <[email protected]> * Apply suggestions from code review Co-authored-by: M Sazzadul Hoque <[email protected]> --------- Co-authored-by: M Sazzadul Hoque <[email protected]> --------- Conflicts: src/main/java/redis/clients/jedis/Connection.java src/main/java/redis/clients/jedis/ConnectionFactory.java src/main/java/redis/clients/jedis/Jedis.java src/main/java/redis/clients/jedis/Protocol.java
Backport of #3353 --------- Please refer to: redis/redis#11420 This PR cancels calling the quit command when the Jedis internal link is abnormal, and deprecate the user interface `Jedis.quit()`. This optimizes Jedis connection pool performance and fixes: #2105 --------- Conflicts: src/main/java/redis/clients/jedis/Connection.java src/main/java/redis/clients/jedis/ConnectionFactory.java src/main/java/redis/clients/jedis/Jedis.java src/main/java/redis/clients/jedis/Protocol.java * more changes * Modify makeObject() for Jedis 3.x --------- Co-authored-by: bodong.ybd <[email protected]>
Sometimes I am getting these exceptions on my application connecting to Redis.
I am running a service with 40 containers (spring-boot)
Env: AWS
Redis: AWS managed
Jedis version: 3.1.0
connect.timeout: 700
write.timeout: 1000
maxIdle: 20
minIdle: 20
maxActive: 20
Node type:cache.r4.large
Engine Version: 4.0.10
Java version 1.8
Traffic on the service: 5-7000 Transactions per second.
Issue frequency: Sometimes in 10 days sometimes once a week, No consistency observed. No changes in the incoming traffic pattern at that time.
Observations: New connections at Redis side spikes to 25-30k and the whole system becomes unstable. Huge spike in network packets in during the issue.
Need help in debugging the issue, This causes a live site the service availability going down.
@configuration
@ConfigurationProperties(prefix = "redis")
public class CacheConfiguration {
}
The text was updated successfully, but these errors were encountered: