当前位置:网站首页>RedisCluster搭建和扩容
RedisCluster搭建和扩容
2022-07-25 15:07:00 【程序员中最靓的仔】
https://blog.csdn.net/chuanchengdabing/article/details/109226115
在外网情况下,或者是云服务器:
开放集群端口,并且 每个端口+10000的端口也要开放
开放后,修改每个节点的nodes.conf 将内网IP修改为外网IP
16384个槽位
(1)如果槽位为65536,发送心跳信息的消息头达8k,发送的心跳包过于庞大。
如上所述,在消息头中,最占空间的是myslots[CLUSTER_SLOTS/8]。
当槽位为65536时,这块的大小是:
65536÷8÷1024=8kb
因为每秒钟,redis节点需要发送一定数量的ping消息作为心跳包,如果槽位为65536,这个ping消息的消息头太大了,浪费带宽。
(2)redis的集群主节点数量基本不可能超过1000个。
如上所述,集群节点越多,心跳包的消息体内携带的数据越多。如果节点过1000个,也会导致网络拥堵。因此redis作者,不建议redis cluster节点数量超过1000个。
那么,对于节点数在1000以内的redis cluster集群,16384个槽位够用了。没有必要拓展到65536个。
边栏推荐
- [Nacos] what does nacosclient do during service registration
- sql to linq 之存储过程偏
- Implementation of redis distributed lock
- Pl/sql creates and executes ORALCE stored procedures and returns the result set
- Boosting之GBDT源码分析
- Object.prototype.hasOwnProperty() 和 in
- LeetCode_字符串_中等_151.颠倒字符串中的单词
- Scala110-combineByKey
- L1和L2正则化
- Handle Oracle deadlock
猜你喜欢

《三子棋》C语言数组应用 --n皇后问题雏形

L1 and L2 regularization

npm的nexus私服 E401 E500错误处理记录

如何解决Visual Stuido2019 30天体验期过后的登陆问题

IP address classification, which determines whether a network segment is a subnet supernetwork

06. Neural network like

Resource not found: rgbd_ Launch solution

MySQL之事务与MVCC

44 Sina navigation, Xiaomi sidebar exercise

Add the jar package under lib directory to the project in idea
随机推荐
pkg_resources动态加载插件
"Ask every day" how locksupport realizes thread waiting and wakeup
27 classification of selectors
SQL Server forcibly disconnects
万能通用智能JS表单验证
6线SPI传输模式探索
AS查看依赖关系和排除依赖关系的办法
LeetCode_字符串_中等_151.颠倒字符串中的单词
LeetCode第 303 场周赛
Copy files / folders through Robocopy
Melody + realsense d435i configuration and error resolution
Yarn: the file yarn.ps1 cannot be loaded because running scripts is prohibited on this system.
ice 100G 网卡分片报文 hash 问题
(original) customize a scrolling recyclerview
MySQL sort
Visual Studio 2022 查看类关系图
"How to use" observer mode
"Ask every day" briefly talk about JMM / talk about your understanding of JMM
【JS高级】js之正则相关函数以及正则对象_02
[C topic] Li Kou 206. reverse the linked list