Redis Keyspace Scanning Entire Question
tmedford opened this issue · 1 comments
"It is recommended that a production deployment of resque-scheduler be hosted on a dedicated Redis database. While making and managing scheduled tasks, resque-scheduler currently scans the entire Redis keyspace, which may cause latency and stability issues if resque-scheduler is hosted on a Redis instance storing a large number of keys (such as those written by a different system hosted on the same Redis instance)"
Can you please refer to the section of code that does this? Would it be advised to keep session storage in one redis database and queuing jobs in another on the same redis instance?
It is here
resque-scheduler/lib/resque/scheduler/delaying_extensions.rb
Lines 188 to 211 in 78c5325
I'd not mix session storage and queuing job in the same redis stance. They have different resiliency requirements.