You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently enabled pingBeforeActivateConnection to try and avoid issues where when one of our redis nodes restarts, lettuce is able to connect to the newly started node before it is done loading the data from the master node, resulting in LOADING exceptions. Figured since PING commands also fail in this scenario that it would be a good solution.
I noticed today that immediately following a redis node restarting (more specifically the k8s pod was killed and it came up elsewhere with a new IP) I saw a number of these stack traces in my logs which also coincided with a higher than normal connection count (to the node that just came up) as reported by my redis cluster's prometheus. Restarting my service brought the connection count back down to normal levels.
Is it possible that lettuce does not properly handle the case where a connection is successfully made to a redis node but then subsequently fails the "ping before activation" step? Either it should be closing the connection then and there, or it should try to reuse it next time.
FWIW I'm also doing something equivalent to this to get individual node connections:
mp911de
changed the title
Connection leak using pingBeforeActivateConnection when PING fails?
Connection leak using pingBeforeActivateConnection when PING fails
Apr 27, 2020
Bug Report
I recently enabled pingBeforeActivateConnection to try and avoid issues where when one of our redis nodes restarts, lettuce is able to connect to the newly started node before it is done loading the data from the master node, resulting in LOADING exceptions. Figured since PING commands also fail in this scenario that it would be a good solution.
I noticed today that immediately following a redis node restarting (more specifically the k8s pod was killed and it came up elsewhere with a new IP) I saw a number of these stack traces in my logs which also coincided with a higher than normal connection count (to the node that just came up) as reported by my redis cluster's prometheus. Restarting my service brought the connection count back down to normal levels.
Is it possible that lettuce does not properly handle the case where a connection is successfully made to a redis node but then subsequently fails the "ping before activation" step? Either it should be closing the connection then and there, or it should try to reuse it next time.
FWIW I'm also doing something equivalent to this to get individual node connections:
Current Behavior
Stack trace
Environment
The text was updated successfully, but these errors were encountered: