Random timeout connection on v 3.0.2 and predis

165 views
Skip to first unread message

Jose Ramon

unread,
Sep 23, 2015, 3:23:42 PM9/23/15
to Redis DB
Hello, i'm getting Connection timed out error on my redis server with the command "hincrby key field 1"
The connection is from same machine, my redis version is 3.0.2.
The connection timeout is set at 60 seconds.
Some stats:
Database size 15mb
clients connected: 175
command per minute: 17000
HINCRBY per minute: 6500

My client is predis 1.0.3
How can solve the issue?
Thanks

Greg Andrews

unread,
Sep 23, 2015, 4:23:19 PM9/23/15
to redi...@googlegroups.com
Does your client make a new connection to the Redis server for each command?  I.e., connect to Redis, issue 'hincrby KEY FIELD 1', get the reply, and disconnect from Redis.  If so, perhaps the timeouts are on the connection rather than the 'hincrby' command itself.

  -Greg

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Jose Ramon Fernandez

unread,
Sep 25, 2015, 1:35:57 AM9/25/15
to Redis DB
i'm using permanent connections,
around 175 concurrent connections

Greg Andrews

unread,
Sep 25, 2015, 2:29:30 AM9/25/15
to redi...@googlegroups.com
Have you enabled the Redis slow log and checked it after one of these timeout events?  Does it list a command that's slow during the events?  What do your server performance graphs say is happening with the Redis machine's cpu, memory, disk, and network during an event?

  -Greg

On Thu, Sep 24, 2015 at 2:24 PM, Jose Ramon Fernandez <ad...@turecarga.com> wrote:
i'm using permanent connections,
around 175 concurrent connections
Reply all
Reply to author
Forward
0 new messages