Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resque: Redis Timeout Error ... #8

Open
JohnBat26 opened this issue Mar 12, 2013 · 1 comment
Open

Resque: Redis Timeout Error ... #8

JohnBat26 opened this issue Mar 12, 2013 · 1 comment

Comments

@JohnBat26
Copy link

Hi all.
I have used resque with redis-sentinel.
All works OK, except after long unicorn idle time, resque console begin to raise Redis Timeout error.
If I do service unicorn reload, then Resque console opens correctly.
My redis init configuration:

  Resque.redis = Redis.new(master_name: 'redis-master',
                               sentinels: [
                                   {:host => 'server1', :port => 26379},
                                   {:host => 'server2', :port => 26379}
                               ],
                               failover_reconnect_timeout: 30)

my redis-sentinel.conf

sentinel monitor redis-master 172.21.78.138 6379 2
sentinel down-after-milliseconds redis-master 5000
sentinel failover-timeout redis-master 900000
sentinel can-failover redis-master yes
sentinel parallel-syncs redis-master 1

@taf2
Copy link

taf2 commented Jan 22, 2015

You probably need to set tcp keepalive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants