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
our redis has one master and two slaves. master is used for writing and slaves for read
the load of two slaves are not balanced.
one of the slaves shows memery increasion and reaches 64G in nearly one week
is it a known issue?
Yes that's my guess, that for some reason queries are sent but replies not consumed.
I guess that pconnect may be the culprit in some way or the other.
Activity
ranweisky commentedon Apr 19, 2013
the number of client_longest_output_list is very large in this slave while it's 0 in the other one
antirez commentedon Apr 19, 2013
Yes the
client_longest_output_listis the problem.Looks like there is one client that is not reading back what the server sends, please could you run CLIENT LIST and send the output here? Thanks.
With Redis 2.6 you can configure output buffer limits for different classes of clients, so that Redis will automatically drop the connection.
Are you using Pub/Sub?
ranweisky commentedon Apr 20, 2013
yeah... client list shows two clients has long oll,
addr=x.x.x.x:x fd=41 idle=4 flags=N db=0 sub=0 psub=0 qbuf=0 obj=0 oll=1010684 events=rw cmd=lindex
addr=x.x.x.x:x fd=44 idle=0 flags=N db=0 sub=0 psub=0 qbuf=0 obj=0 oll=1005451 events=rw cmd=get
not using Pub/Sub... will there be any other possible root cause? like executing a slow query?
antirez commentedon Apr 20, 2013
Not related to slow queries, are you using a non-blocking client? It looks like there are queries sent but never "consumed" by the client.
ranweisky commentedon Apr 22, 2013
"Consume"... uh.. do u mean the client sent a request to redis, but didn't get the result back? i'm using php redis extention and use pconnect
antirez commentedon Apr 22, 2013
Yes that's my guess, that for some reason queries are sent but replies not consumed.
I guess that pconnect may be the culprit in some way or the other.
ranweisky commentedon Apr 22, 2013
u guys are really cool.. i appreciate that
ranweisky commentedon Apr 22, 2013
so may i avoid this issue by using phpredis connect instead of pconnect? if i won't find out the criminal client logic...
Squashed 'deps/hiredis/' changes from f8de9a4bd..b6a052fe0
Fix module / script call CLUSTER SLOTS / SHARDS fake client check cra…
Use fake client flag to replace not conn check (redis#1198)
Merge pull request redis#1063 from Cyan4973/dependabot/github_actions…