当前位置:网站首页>Rediscluster setup and capacity expansion
Rediscluster setup and capacity expansion
2022-07-25 15:10:00 【The prettiest programmer】
https://blog.csdn.net/chuanchengdabing/article/details/109226115
In the case of the Internet , Or ECs :
Open cluster port , also Every port +10000 The port of should also be open
After opening , Modify the... Of each node nodes.conf Put the intranet IP Change to extranet IP
16384 Slots
(1) If the slot is 65536, Send heartbeat message header to 8k, The heartbeat packet sent is too large .
As mentioned above , In the header , What takes up the most space is myslots[CLUSTER_SLOTS/8].
When the slot is 65536 when , The size of this piece is :
65536÷8÷1024=8kb
Because every second ,redis The node needs to send a certain number of ping Messages as heartbeat packets , If the slot is 65536, This ping The message header is too big , Waste bandwidth .
(2)redis The number of cluster primary nodes of cannot exceed 1000 individual .
As mentioned above , More cluster nodes , The more data the heartbeat packet carries in its message body . If the node passes 1000 individual , It can also lead to network congestion . therefore redis author , Don't suggest redis cluster The number of nodes exceeds 1000 individual .
that , For the number of nodes in 1000 Inside redis cluster colony ,16384 There are enough slots . There is no need to expand to 65536 individual .
边栏推荐
猜你喜欢

Splice a field of the list set into a single string

Realsense ROS installation configuration introduction and problem solving

EDA chip design solution based on AMD epyc server

outline和box-shadow实现外轮廓圆角高光效果

流程控制(上)

ice 100G 网卡分片报文 hash 问题

Leo-sam: tightly coupled laser inertial odometer with smoothing and mapping

【JS高级】js之正则相关函数以及正则对象_02

Leetcode combination sum + pruning

41 picture background synthesis - colorful navigation map
随机推荐
(original) customize a scrolling recyclerview
I2C device driver hierarchy
RedisCluster搭建和扩容
pkg_resources动态加载插件
"How to use" observer mode
浏览器工作流程(简化)
《三子棋》C语言数组应用 --n皇后问题雏形
golang复习总结
"Ask every day" how locksupport realizes thread waiting and wakeup
Thymeleaf notes
API health status self inspection
Add the jar package under lib directory to the project in idea
"Ask every day" briefly talk about JMM / talk about your understanding of JMM
6月产品升级观察站
JS 同步、异步,宏任务、微任务概述
As methods for viewing and excluding dependencies
EDA chip design solution based on AMD epyc server
[C topic] Li Kou 206. reverse the linked list
Realsense ROS installation configuration introduction and problem solving
"How to use" agent mode