BLPOP Performance

90 views
Skip to first unread message

Chase

unread,
Nov 25, 2015, 10:59:48 AM11/25/15
to Redis DB
Hi - I recently did an experiment with REDIS to test it out as a queuing system.  I modeled each queue as a list and setup a single sender to push a 2 KB message into a queue.  I also setup receivers using BLOP.  I monitored the CPU usage for various number of keys and I saw a linear relationship between number of keys on the BLPOP and the amount of CPU used.  Effectively each addition of 25 keys resulted in another 6% increase in CPU on the redis server.  For example, 100 keys added about 25% to REDIS CPU.  However, adding 4 clients that perform BLPOP of only 25 keys results in only a 6% increase in CPU.  Is this expected behavior ?  It seems as if it would be desirable to have more connections and less keys.

Chase
Reply all
Reply to author
Forward
0 new messages