Comments (7)
I'm not completely sure what "too large fdsets" really means, but it seems to deal with file descriptors. The commit that was merged in a bit ago for pull request #3 fixed a leaky file descriptor. Try using the master branch and see if that fixes the problem.
from redis-sentinel.
@JohnBat26 why the error indicates you are using hiredis but I didn't see it from you code?
from redis-sentinel.
@flyerhzm this is part of my Gemfile:
gem 'resque', '1.23.0', :require => 'resque/server'
gem 'resque-scheduler', '2.0.0'
gem 'resque-retry'
gem 'redis-namespace', '1.2.1'
gem 'resque-workers-lock'
gem 'redis-sentinel'
gem 'hiredis', '0.4.5'
gem 'redis', '~>3.0.2', :require => %W(redis/connection/hiredis redis)
gem 'redis-rails'
this is my resque_auth.rb (from config/initializers):
require 'yaml'
require 'resque'
require 'resque_scheduler'
require 'resque/scheduler'
require 'resque_scheduler/server'
Resque::Scheduler.dynamic = true
Resque.redis = Redis.new(master_name: "webcol-med01", sentinels: [{host: "webcol-med01", port: 26379}, {host: "webcol-med02", port: 26379}])
# Resque.redis = 'webcol-med01:6379' # tell Resque where redis lives
from redis-sentinel.
@JohnBat26, I have reproduced your issue only when redis sentinel servers are not up, can you make sure your redis sentinel servers works?
redis-cli -h webcol-med01 -p 26379
redis-cli -h webcol-med02 -p 26379
from redis-sentinel.
redis-cli -h webcol-med01 -p 26379
redis webcol-med01:26379>
redis-cli -h webcol-med02 -p 26379
redis webcol-med02:26379>
I have installed git version of redis-sentinel gem but now after start resque, redis-sentinel proccess use 50 ะกPU! and resque hungs without logs :(
from redis-sentinel.
It's hard for me to reproduce. How many CPU usage before using redis-sentinel?
If resque hung, there must be something wrong with the connection, could you confirm if your ruby process connects to redis sentinel server and also it connects to redis master server?
from redis-sentinel.
Sorry, it is my mistake.
I inserted wrong master_name. :)
Now, all works correctly.
from redis-sentinel.
Related Issues (20)
- Version 1.3 HOT 2
- License missing from gemspec
- Wrong setup of sentinels raise exception HOT 3
- Stacktrace due to offline sentinel during reconnect HOT 3
- Subscribe to switch master message is necessary HOT 4
- Work with Redis sentinel 2.8.X HOT 7
- ERR Wrong number of commands for 'sentinel is-master-down-by-addr' (Redis::CommandError) HOT 3
- Use with Rails.config.cache_store? HOT 2
- Reconnects broken since 1.4 HOT 5
- Inconsistent failover when there is no failover timeout set
- No route to host - connect(2)
- Not possible to set db: ? HOT 2
- undefined method `values_at' for nil:NilClass HOT 4
- Handle +sentinel messages HOT 1
- Incorrect master name causes endless flood of connection attempts HOT 3
- Round robin to redis slaves HOT 1
- Add information that redis-sentinel should not be used with redis >= 3.2 HOT 3
- Failure to define :sentinels option results in error when calling 'slaves'
- Bubble up error so that I can kill my server if there is no redis sentinel connection
- Logging to syslog HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-sentinel.