In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the knowledge of "how to use mysql performance indicator tps/qps". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1 tps/qps
Tps: Transactions Per Second, transactions per second
Qps: number of Queries Per Second queries per second
Method 1: calculate tps based on com_commit and com_rollback, and calculate qps based on questions.
TPS = Com_commit/s + Com_rollback/s
Among them
Com_commit / s = mysqladmin extended-status-- relative-- sleep=1 | grep-w Com_commit
Com_rollback/s = mysqladmin extended-status-- relative-- sleep=1 | grep-w Com_rollback
QPS refers to the total amount of Query executed by MySQL Server per second, which is approximately expressed by the change in the status value of Questions (number of customer queries) per second, so there are:
QPS = mysqladmin extended-status-- relative-- sleep=1 | grep-w Questions
-another way to evaluate qps tps by adding uptime
Calculate qps based on questions, calculate tps based on com_commit com_rollback
Questions = show global status like 'questions'
Uptime = show global status like 'uptime'
Qps=questions/uptime
Com_commit = show global status like 'com_commit'
Com_rollback = show global status like 'com_rollback'
Uptime = show global status like 'uptime'
Tps= (com_commit + com_rollback) / uptime
This is the end of "how to use mysql performance indicator tps/qps". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.