zoukankan      html  css  js  c++  java
  • TPS/QPS

    有很多人,自己TPS和QPS的关系都搞不清。
    如下为基本的查询方式是,与计算公式! 拿走不谢!

    MariaDB [(none)]> show global status like 'questions';
    +---------------+----------+
    | Variable_name | Value |
    +---------------+----------+
    | Questions | 70991770 |
    +---------------+----------+
    1 row in set (0.00 sec)

    MariaDB [(none)]> show global status like 'uptime';
    +---------------+--------+
    | Variable_name | Value |
    +---------------+--------+
    | Uptime | 485352 |
    +---------------+--------+
    1 row in set (0.00 sec)

    Questions/ Uptime
    QPS:146

    MariaDB [(none)]> show global status like 'com_commit';
    +---------------+---------+
    | Variable_name | Value |
    +---------------+---------+
    | Com_commit | 8960761 |
    +---------------+---------+
    1 row in set (0.00 sec)

    MariaDB [(none)]> show global status like 'com_rollback';
    +---------------+-------+
    | Variable_name | Value |
    +---------------+-------+
    | Com_rollback | 117 |
    +---------------+-------+
    1 row in set (0.00 sec)

    MariaDB [(none)]> show global status like 'uptime';
    +---------------+--------+
    | Variable_name | Value |
    +---------------+--------+
    | Uptime | 485432 |
    +---------------+--------+
    1 row in set (0.00 sec)

    Com_commit + Com_rollback / Uptime
    TPS:18

    转载于:https://blog.51cto.com/hexudong/2104011

  • 相关阅读:
    TCP协议实现双工通信
    搭建本地FTP服务器
    CSS 3 选择器root、not、empty、target
    CSS 3 中的伪类选择器
    CSS 3 中的属性选择器
    Entity Framework Code First属性映射约定
    Entity Framework数据库初始化四种策略
    HTML 5 Base 64 编码
    HTML 5 离线程序
    HTML5 本地数据库IndexedDB数据库
  • 原文地址:https://www.cnblogs.com/siweiyidu/p/12898797.html
Copyright © 2011-2022 走看看