当前位置:网站首页>redis优化系列(三)解决主从配置后的常见问题
redis优化系列(三)解决主从配置后的常见问题
2022-04-23 19:04:00 【InfoQ】
读写分离概述:

1、复制数据延迟
#使用redis镜像创建一台新的redis从节点服务器``docker run --privileged -itd --name redis-slave2 --net mynetwork -p 6390:6379 --ip 172.10.0.4 redis
#安装linux下的控流工具,使用他来模拟网络延迟``yum ``install` `iproute
#进入redis-slave2容器里面``docker ``exec` `-itd redis-slave2 ``bash` `#配置这台服务器的网络延迟5秒钟``tc qdisc add dev eth0 root netem delay 5000ms` `#然后你可以使用swoole的定时器来检测查看结果` `#删除延迟网络服务器的命令如下:``tc qdisc del dev eth0 root netem delay 5000ms
2、从节点故障问题
3、配置不一致
4、避免全量复制
5、复制风暴

6、单机器的复制风暴

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://xie.infoq.cn/article/549aa4bba0b6d8d806cc665a2
边栏推荐
- Nacos cluster construction and MySQL persistence configuration
- Tencent map and high logo removal method
- Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
- 2022.04.23 (lc_763_divided into letter interval)
- 腾讯云GPU最佳实践-使用jupyter pycharm远程开发训练
- One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
- [记录]TypeError: this.getOptions is not a function
- Using Visual Studio code to develop Arduino
- Raspberry pie uses root operation, and the graphical interface uses its own file manager
- 【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
猜你喜欢
ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)
Introduction to ROS learning notes (I)
MVVM模型
ESP32 LVGL8. 1 - input devices (input devices 18)
Use Chenxi bookkeeping book to analyze the balance of revenue and expenditure of each account in a certain period of time
【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
Using Visual Studio code to develop Arduino
Druid SQL和Security在美团点评的实践
Summary of actual business optimization scheme - main directory - continuous update
[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born
随机推荐
Xlslib use
Go language GUI framework Fyne Chinese garbled or not displayed
Raspberry pie uses root operation, and the graphical interface uses its own file manager
Nacos as service registry
#yyds干货盘点#stringprep --- 因特网字符串预备
std::stoi stol stoul stoll stof stod
Recyclerview control list item layout match_ Fundamental principle of parent attribute invalidation
[记录]TypeError: this.getOptions is not a function
关于unity文件读取的操作(一)
12个例子夯实promise基础
[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born
Use of content provider
PyGame tank battle
Advanced transfer learning
mysql_linux版本的下載及安裝詳解
Sentinel规则持久化进Nacos
K210 serial communication
SSDB基础2
Practice of Druid SQL and security in meituan review
Esp01s with Arduino development environment