At the sentry sentinel In mechanism , Can solve redis High availability problem , When master After failure, it can automatically change slave Upgrade to master, So as to guarantee redis The normal use of the service , But it can't be solved redis The bottleneck of single machine write , Stand alone redis Write performance is limited by the memory size of a single machine 、 Concurrent number 、 Network card speed and other factors .
Redis Cluster The characteristics are as follows :
- all Redis Node usage (PING Mechanism ) interconnection
- Whether a node in the cluster fails , More than half of the nodes in the whole cluster fail to monitor , It's a real failure
- Client does not need proxy You can connect directly to redis, The application needs to be configured with all redis The server IP
- redis cluster Put all the redis node Average maps to 0-16383 Slots (slot) On , Read and write to the specified redis node Operation on top , So how many redis node amount to redis How many times has concurrency been extended , Every redis node To undertake 16384/N Slots
- Redis cluster Pre allocation 16384 individual (slot) Slot position , When need is in redis Write a key -value When , Will use CRC16(key) mod 16384 The value after , It was decided that key Which slot of the value is written to determine which one to write Redis Node , So as to effectively solve the single machine bottleneck .
sketch redis More related articles on the implementation principle of cluster
- breakthrough Java interview -Redis The principle of cluster mode
1 Interview questions Redis Let's talk about the working principle of cluster mode ? In cluster mode ,key How to address ? What are the algorithms for addressing ? Understanding consistency hash Do you ? 2 Test point analysis Redis Continuous development -Redis cluster Cluster pattern , Sure ...
- Redis Offline installation and principle understanding of cluster
One . This article mainly records Redis Cluster in linux Offline installation steps under the system , After all, in the production environment, it is generally impossible to connect to the Internet ,Redis Of clusters Ruby The environment installation process is still very troublesome , There are many dependent installations involved , So I wrote an article ...
- redis The cluster theory
redis A single thread , But generally used as a cache ,redis enough , Because its reading and writing speed is too fast . A simple official test : The test is done 50 Individual concurrent execution 100000 A request . The values set and obtained are one 256 Byte string ...
- It's easy to understand redis Cluster principle and construction and use
This morning due to zookeeper and redis The cluster is not in the same virtual machine, resulting in a small error ( artificial ), So here's a summary redis The cluster is set up so that it can be needed in the future. At the same time, I hope it can help you . The pen owner here uses Centos7. If ...
- Support microblog billion level social platform , Xiaobai can play Redis colony ( Principles )
Redis As a memory database with excellent performance , Supporting microblog billion level social platform , Also become the standard of many Internet companies . Here will be Redis Cluster Cluster as the core , Up to date Redis5 edition , From principle to practice , Get along well with Redis colony ...
- 7.redis Can you explain the working principle of cluster mode ? In cluster mode ,redis Of key How to address ? What algorithms do distributed addressing have ? Understanding consistency hash Algorithm ?
author : Chinese stone fir Interview questions redis Can you explain the working principle of cluster mode ? In cluster mode ,redis Of key How to address ? What algorithms do distributed addressing have ? Understanding consistency hash Algorithm ? Psychological analysis of interviewers In a few years ago , ...
- Redis sentry 、 Copy 、 The design principle and difference of cluster
One Preface talk about Redis High availability of servers , How to ensure that the backup machine is a complete backup of the original server ? This is where sentinels and replicators are needed . sentry (Sentinel): Can manage multiple Redis The server , It provides monitoring , Reminders and automatic troubleshooting ...
- Redis | It's easy to understand redis Cluster principle and construction and use
Reprint :https://juejin.im/post/5ad54d76f265da23970759d3 author :SnailClimb Here's a summary redis The cluster is set up so that it can be needed in the future. At the same time, I hope it can help you . ...
- Redis The principle and construction of cluster ( Reprint )
Reprint source :https://www.jianshu.com/p/c869feb5581d Redis The principle and construction of cluster Preface Redis It's the caching middleware we use on a large scale , Because of its powerful, efficient and convenient functions , have to ...
- Redis High availability details of :Redis sentry 、 Copy 、 Cluster design principle , And the difference
talk about Redis High availability of servers , How to ensure that the backup machine is a complete backup of the original server ? This is where sentinels and replicators are needed . sentry (Sentinel): Can manage multiple Redis The server , It provides monitoring , Reminders and automatic failover capabilities . ...
Random recommendation
- Spring Remote call technology <2>-Hessian and Burlap
The first part talks about RMI technology , add Spring Encapsulation , It's very convenient to use , But there are some limitations there Hessian and Burlap It solves the limitation mentioned in the previous article , Because they are based on http Lightweight remote services . Hessian, and RMI equally ...
- 0427 scrum & Journal entry
5.Scrum Team building 5.1 Team name , Team goals . Team slogan . Team photo : 5.2 Role assignment 6. Team project topics See the team blog for details :http://www.cnblogs.com/alfredzhu/ htt ...
- SpringDataJPA Several usage records of
public Page<XMGLFileTemplateDTO> findXMGLFileTemplateByConditions(XMGLFileTemplateDTO xmglFile ...
- Java Fragmented knowledge ( note )
1. stay java There is goto, But this is only a reserved word , Not available (const It's also ). stay eclipse The error message in is ”Syntax error on token "goto", throw e ...
- redis Service and extension installation (windows)
Windows Lower installation redis And in php Use in phpredis Expand Original address :http://m.oschina.net/blog/281058 Junn Published on 2 Years ago , share 0 comments 1.redi ...
- eCos Interrupt model
http://blog.csdn.net/chychc/article/details/8313458 http://www.cnblogs.com/RandyQ/archive/2013/04/14 ...
- python Some common things ——sys、os etc.
1. Common built-in functions :( no need import You can use it directly ) help(obj) Online Help , obj But of any kind callable(obj) View one obj Can I call it like a function ...
- Calendar The calendar control uses
<link rel="stylesheet" href="__STATIC__/js/calendar/calendar-blue.css"/> & ...
- Android Define your own TextView drawableTop Align the icon to the left of the text ( design sketch )
public class DrawableTopLeftTextView extends TextView { private Paint mPaint; private float fFontHei ...
- SQL Practice the exchange of two column values
SELECT * FROM dbo.test2