当前位置:网站首页>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
边栏推荐
- 根据快递单号查询物流查询更新量
- [popular science] CRC verification (I) what is CRC verification?
- Raspberry pie uses root operation, and the graphical interface uses its own file manager
- Machine learning practice - naive Bayes
- Xlslib use
- 【C语言进阶11——字符和字符串函数及其模拟实现(2))】
- Scrollto and scrollby
- JVM的类加载过程
- 迁移学习进阶
- MySQL学习第五弹——事务及其操作特性详解
猜你喜欢
Esp32 (UART event) - serial port event learning (1)
7、 DOM (Part 2) - chapter after class exercises and answers
Getting started with vcpkg
Raspberry pie uses root operation, and the graphical interface uses its own file manager
[mathematical modeling] - analytic hierarchy process (AHP)
mysql_ Download and installation of Linux version
Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)
ESP32 LVGL8. 1 - roller rolling (roller 24)
Esp32 (UART ecoh) - serial port echo worm learning (2)
微搭低代码零基础入门课(第三课)
随机推荐
Iptables - L executes slowly
Use of kotlin collaboration in the project
2022.04.23 (the best time for lc_714_to buy and sell stocks, including handling charges)
How about CICC wealth? Is it safe to open an account up there
Chondroitin sulfate in vitreous
ESP32 LVGL8. 1 - checkbox (checkbox 23)
Esp32 (UART ecoh) - serial port echo worm learning (2)
After opening the original normal project, the dependency package displays red and does not exist.
From technical system to business insight, the closing chapter of the practice of small and medium-sized R & D team structure
Download xshell 6 and xftp6 official websites
Machine learning practice - naive Bayes
K210 serial communication
Is it safe to open an account in Bohai futures.
On iptables
SSDB基础
Sentinel规则持久化进Nacos
The type initializer for ‘Gdip‘ threw an exception
Yyds dry goods inventory stringprep --- Internet string preparation
2022.04.23 (lc_763_divided into letter interval)
解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本