In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Reference connection: http://www.bubuko.com/infodetail-971804.html
Background: the latency of the slave database of a project is very large, combined with the large number of wsec/s in iostat, it is almost certain that the culprit of the high load of IO is redo log's flush, not data page's flush.
View innodb log buffer status
Mysql > show global status where variable_name in ('Innodb_log_waits','Innodb_buffer_pool_wait_free')
+-+ +
| | Variable_name | Value |
+-+ +
| | Innodb_buffer_pool_wait_free | 0 | |
| Innodb_log_waits | 2560 | # the number of waits to write logs due to too small log buffer. The unit is the second time.
+-+ +
Increase the values of log_buffer_pool and innodb_log_file_size, restart the database, and find that iowait decreases and slave begins to drop!
Summary: several reasons why the optimization io is too high:
1. Reference article on whether the buffer pool is too small: Ye Jinrong-what causes the disk io to be too http://mp.weixin.qq.com/s/sAGFo-h2GCBhad1r1cEWTg
two。 Is it caused by sql?
Effect of 3.innodb_io_captiy on the Stability of io http://blog.itpub.net/29096438/viewspace-2134208/
4. Other system reasons
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.