Code Monkey home page Code Monkey logo

Comments (4)

flyerhzm avatar flyerhzm commented on August 11, 2024

@isaiah I forgot the reason, but you're right, I should add it back.

from redis-sentinel.

sheldonh avatar sheldonh commented on August 11, 2024

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.

reist avatar reist commented on August 11, 2024

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.

flyerhzm avatar flyerhzm commented on August 11, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.