Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94f5a48

Browse files
committed
OCT update 目录
1 parent 6ac4ca3 commit 94f5a48

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

JAVA.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[TOC]
2+
13

24

35
# 一、基础篇
@@ -4129,7 +4131,7 @@ public void write(String key,Object data){
41294131

41304132
#### 4、集群模式=写多
41314133

4132-
![image-20210418174340944](/Users/suhongliu/Library/Application Support/typora-user-images/image-20210418174340944.png)
4134+
41334135

41344136
​ 为了避免单一节点负载过高导致不稳定,集群模式采用**一致性哈希算法或者哈希槽的方法**将 Key 分布到各个节点上。其中,每个 Master 节点后跟若干个 Slave 节点,用于**出现故障时做主备切换**,客户端可以**连接任意 Master 节点**,集群内部会按照**不同 key 将请求转发到不同的 Master** 节点
41354137

0 commit comments

Comments
 (0)