Giter Site home page Giter Site logo

redis-sentinel-with-docker-compose's Introduction

Redis-sentinel-with-docker-compose

redis-sentinel ha deploy using docker-compose with bridge mode, the example deploy the basic model: 1 master, 2 slave, 3 sentinel

这里随便写文字

ideas

The redis-sentinel ha deploy is progressive, please deploy master/slave first, then deploy redis sentinel with the master/slave bridge network, So the sentinels can communicate with all the redis master/slave nodes.

redis client apps

  1. deploy in the same bridge network : The redis client apps can link the same above docker bridge network that can access the whole redis-sentinel
  2. deploy independent

Sentinel, Docker, or other forms of Network Address Translation or Port Mapping should be mixed with care, The Docker offical provider a [force announce]

please force announce the redis-sentinel node ip and port with the machine Ip and bind port (not the above master container ip and cotainer expose ip)

The example show the redis container mapping 6380、6381、6382、26379、26380、26381 port

tip

  1. please config the sentinel config using the master [container ip] in the first deploy time

when redis redis app deploy independence machine, please config the sentinel.conf with the machine ip and bind port

  1. if you using requirepass set the client access pwd, please ensure usinng the masterauth set the replicas replication pwd
  2. In the sentinel docker-copose.yml, if you have set the 'requirepass' for the master, please set the 'masterauth' for the master, because the master will become a slvae when failover,then it is also need a masterauth

redis-sentinel-with-docker-compose's People

Contributors

zwbdzb 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.