Git Product home page Git Product logo

redis's Introduction

redis

redis-sentinel 监控的主从复制配置

sentinel客户端的切换过程: 1.通过配置文件中的sentinel来获取master节点(每个sentinel服务中包含着所有的主、从服务器节点信息) 2.根据配置的sentinel个数来创建对应个数的线程,每个线程模拟一个redis客户端,实时的在监测订阅的频道+switch-master发送的信息, 如果有故障迁移,则会收到sentinel通过频道发布的信息,然后jedis会调用相应的factory,重新生成pool master redis

#rediscluster rediscluster客户端切换过程 每个redis节点都会生成一个对应的jedispool对象 根据配置的HostAndPort列表去生成对应的redis客户端,分别获取该节点对应能处理的槽位,然后以slot-jedispool的结构存储redis连接对象 某个solts对应有jedispool,根据Key的hash值,获取到对应的槽位,然后从对应槽位的jedispool中获取一个jedis链接

redis's People

Contributors

henuzyy avatar

Watchers

 avatar

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.