redis3.0 There was sentinel mode before ,3.0 Then there was cluster( Fragmentation cluster ), The official does not recommend the use of !! The main reason is that manual slot splitting is needed after single node failure ...

Cluster is a mature solution codis, The company uses sentinel mode , Concurrency is not that strong , Generally, microblog with large amount of visits may be used for fragment deployment , Fragmentation deployment requires more services .. This paper mainly records the server configuration and use in sentry mode .. Make a note .

in general , Server deployment is very simple

Deployment environment :windows7 Turn on four virtual machines ( Three stations redis example , A sentinel is monitoring , Generally speaking, sentinels also need to be a group , There is no cluster here )      operating system centos7.0

1. Each machine is installed according to redis after , Won't it , Reference resources https://www.cnblogs.com/jinjian91/p/9326958.html

2( Configure master and slave ).slave example cd To redis.conf    modify  slaveof <masterip> <masterport>  ( Fill in master ip port)

3. modify sentinel.conf modify

sentinel monitor <master-name> <ip> <redis-port> <quorum>  (quorum For the number of votes , Since only one sentry is deployed , Fill in the numbers here 1, Express 1 Just pass the vote )

4. Check whether the master will be selected , To master Turn it off redis example . Go to slave The implementation of each instance ./redis-cli command , perform   info replication see master Information Or check the console log at the sentry console !

redis Learning notes 2( The use of sentry mode in cluster ) More articles about

  1. redis Learning notes -cluster Cluster building

    One . Download the latest version redis compile The latest version is 3.0.7, Download address :http://www.redis.io/download Compiling is simple , One make Command is enough , Students who don't know , Please refer to my previous notes : red ...

  2. Redis 3.2.3: colony 3 Sentinel mode

    brief introduction Redis It's a use ANSI C Write open source . Support network . Memory based . Optional persistent key value pair to store database . from 2015 year 6 Month begins ,Redis The development of the Redis Labs sponsorship , and 2013 year 5 Month to 2015 year 6 Monthly period ...

  3. Quartz Learning notes : Cluster deployment &amp; High availability

    Quartz Learning notes : Cluster deployment & High availability Cluster deployment One Quartz Each node in the cluster is an independent Quartz application , It manages other nodes . This means that you have to start or stop each node separately .Quartz colony ...

  4. ( 6、 ... and ) Docker Deploy Redis High availability cluster (sentinel Sentinel mode )

    Reference and thanks Official documents https://hub.docker.com/_/redis GitHub https://github.com/antirez/redis happyJared https:/ ...

  5. redis Sentry mode of cluster 【 primary 】

    redis Sentry of the cluster (sentinel) Pattern Ideal state of sentry mode need >=3 individual redis service ,>=3 individual redis sentry , Every redis Service with a sentry . In this example 3 individual redis Service as an example : In limine ...

  6. Redis colony --Redis Sentry mode of cluster

    echo Edit and organize , Welcome to reprint , Please state the source of the article . Welcome to add echo WeChat ( WeChat ID :t2421499075) Communication and learning . Invincible in all battles , I don't call myself a winner , A hundred defeats never fail , I'm going to push on .-- That's the real power !!! build R ...

  7. Redis Master slave cluster and sentry mode

    The experimental environment is going to be simulated by a server 3 platform redis The server ,1 Lord 2 from Build a master-slave cluster First step : install Redis install Redis, Refer to the previous installation Redis article , Make sure there is no problem with the single machine . The second step : Configuration server file Locate the ...

  8. Dubbo -- System learning note -- Example -- Cluster fault tolerance

    Dubbo -- System learning note -- Catalog Example Want to run completely , Please see the : Quick start , Only the configuration methods of various scenarios are listed here Cluster fault tolerance When the cluster call fails ,Dubbo A variety of fault tolerance schemes are provided , Default is failover heavy ...

  9. redis colony sentinel Sentry mode construction and practical application

    Reference material :https://blog.csdn.net/men_wen/article/details/72724406 The environment used before keepalived+redis vip Cluster pattern , Now we switch Services ...

Random recommendation

  1. chrome debugging SASS

    First step : perform sass Precompiled orders Let's start with my project folder structure : -> Get into sass /css Under the document -> open cmd command -> Input sass --watch --scss  test.scss: ...

  2. XAF How to: Achieve one WCF Application Server And configure its client application

    This topic describes how to implement a  WCF  Middle tier application server and how to configure it  XAF The client connects to this server . Be careful This topic demonstrates code that can be automatically generated by the solution wizard . When performing an operation , If you want to be in the existing  XAF  In the solution ...

  3. Learning c section 1

    #include<stdio.h> void main() { puts("hello world"); int x=4; //the %p format will p ...

  4. HD2025 Find the largest element

    Find the largest element Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submis ...

  5. codeforces 390E Inna and Large Sweet Matrix

    The main algorithm of this problem is interval update and interval sum : You can use line tree and tree array to do : I feel it's too troublesome to write the line segment tree , See the official solution that can be done with a tree array , I think it's amazing , Tree arrays used before are all single point maintenance , Sum of intervals : In fact, the tree array is also ...

  6. makefile And cmake introduction

    cmake It's a generation makefile Software for : It's generating makefile Before , The first is to write a CMakeLists.txt file : Here is a typical example : First look at the catalogue tree, stay test Folder has :include Catalog , ...

  7. Python3 Common data type Syntax

    1.int type int There is no length limit to the type of data , Its maximum length is only related to the memory of the computer . bin(i)      Returns a binary representation of the result , hex(i)      Hexadecimal , int(i)       Integers ( ...

  8. Kubernetes note 09 DaemonSet I'm a watchdog

    This article is published in my official account Linux Cloud computing network (id: cloud_dev), Focus on dry goods sharing , There is 10T Books and video resources , The background to reply 「1024」 Can receive , Welcome to pay attention , Qr code text can be swept at the end . Hi, Hello everyone , ...

  9. .NET Automated test tool :Selenium Grid

    In production environment ,QA You can run dozens or hundreds of them at the same time test case. If you use single machine serial , It's a very time-consuming thing , It's not much faster than hand order . With parallel solutions , There are two ways , One is to write your own parallel framework , One is ready-made Seleni ...

  10. Scala Advanced road -Scala Advanced types in

    Scala Advanced road -Scala Advanced types in author : Yin Zhengjie Copyright notice : Original works , Declined reprint ! Otherwise, the legal liability will be investigated . One . type (Type) With the class (Class) The difference between stay Java in , Until jdk1.5 Before , We said ...