Comments (4)
@isaiah I forgot the reason, but you're right, I should add it back.
from redis-sentinel.
I just saw this with some testing. I added an action to my rack app, to test writability with a simple SET and GET. Then I spammed that action while a background process was sending "SENTINEL failover mymaster" to a sentinel every 20 seconds. Eventually, the SET operation fails.
It occurs to me that I could have the resilience I want without +switch-master event monitoring, if the redis-sentinel gem responded to failures as follows:
- Issue the INFO command.
- If it succeeds, and the output indicates that the instance is not master, rediscover current master and retry.
Rediscovery would probably enjoy a configurable delay.
What do you think?
from redis-sentinel.
Hi, I just had it happen with a resque-only redis in a production environment with down-after-milliseconds that seems to have been set a bit too low, as sentinel failed it over randomly after 3 days of running with no problems.
This is a pretty serious issues - after the switch, all I could do was restart every process using redis in the cluster (which is most of them) and try to rescue missed jobs.
Is there any plan to track sentinel promotions again?
from redis-sentinel.
@isaiah @sheldonh @reist sorry for the late commit, finally I added "subscribe +switch-master" back again, please let me know if it works for you.
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
- 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.