How can I add connection pooling to my Redis setup?
for some reason I can't seem to find any information on this. I'm using redis (3.2.0) set up like so: (you can assume resque_uri and cache_uri has been parsed ahead of this c)
for resque:
$REDIS_BACKGROUND_JOB = Redis.new(:host => resque_uri.host,
:port => resque_uri.port,
:password => resque_uri.password)
later in the initialization sequence, we do
Resque.redis = $REDIS_BACKGROUND_JOB
We have a 2nd Redis instance with a different memory, connection limit, and eviction policy, for the Rails cache
$REDIS_CACHE = Redis.new(:host => cache_uri.host,
:port => cache_uri.port,
:password => cache_uri.password)
UPDATE 2017-02-16@20-17EST: I am running two redis instances, one for resque (1.25.2) and another for the caching layer using redis-rails (5.0.1). I have updated the setup examples above. I suspect something is misconfigured in the initialization or there is a fundamental setup mismatch.
UPDATE 2017-02-16@21-37EST:
environments/development.rb
has
config.cache_store = :redis_store, 'redis://localhost:6379/1/cache_store'