当前位置:网站首页>Master-slave delay reason and solution
Master-slave delay reason and solution
2022-08-08 23:08:00 【Also believe that light?】
Reason: The main library is single-threaded and the slave library is multi-threaded
Solution:
1, read data from cache
2, improve the configuration from the library
3, disable the binary log from the library bin_log
4, modify sync_binlog=0 in the configuration 0: The system judges to synchronize immediately after receiving the update 1: The efficiency is 5 times that of 0, but the performance takes up a lot
5,log_slave_update_log
6, use the middleware mysql _proxy
7, force to fetch data from the main library
边栏推荐
猜你喜欢
随机推荐
浅析WLAN——无线局域网
Introduction to Qt (5) - file operation, hotkey and mouse reading (implementation of txt window)
CTF攻防世界
PHP 正则给img的src添加域名
(2022牛客多校五)D-Birds in the tree(树形DP)
待完善:tf.name_scope() 和 tf.variable_scope()的区别
Kubernetes与OpenStack
2022牛客多校六 B-Eezie and Pie (dfs)
MySQL indexes a field in a table
(2022牛客多校四)K-NIO‘s Sword(思维)
动手写prometheus的exporter-01-Gauge(仪表盘)
ndk和JNI的使用初探
Kubernetes资源编排系列之四: CRD+Operator篇
2022杭电多校六 1007-Shinobu loves trip(同余方程)
STM8L 液晶数码管驱动,温度计液晶屏显示
Pyhton面对对象
每日一R「01」跟着大佬学 Rust
JSDay1-合并两个有序数组
设计分享|基于单片机的P0口驱动LED闪烁
(2022牛客多校三)J-Journey(dijkstra)