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

  • 相关阅读:
    Centos 安装配置iscsi
    Centos 部署Keepalive高可用软件
    Centos 编译安装Haproxy
    Centos 安装 Moosefs文件系统
    docker 存储
    hadoop碰到的 一个问题
    使用curl命令操作elasticsearch
    kafka集群下线broker节点实践方法(broker topic 迁移)
    kafka 安装
    redis3.2.11 安装
  • 原文地址:https://www.cnblogs.com/siweiyidu/p/12898797.html
Copyright © 2011-2022 走看看