紹介 of anemometer

Download 紹介 of Anemometer

Post on 16-Apr-2017

1.924 views

Category:

Technology

1 download

Embed Size (px)

TRANSCRIPT

  • of Anemometer

    2016/01/22

    yoku0825MySQL Casual Talks vol.9

  • 1/33

  • MySQL Cluster Casual Talks

    #32/33

  • 3/33

  • NDBCLUSTER

    4/33

  • M ySQL C luster

    C asualT alks

    5/33

  • MCCT

    6/33

  • 7/33

  • vol.8

    8/33

  • DB

    2 9/33

  • MySQL

    10/33

  • 1MySQL 100

    11/33

  • ||

    12/33

  • 13/33

  • 14/33

  • default_password_lifetime= 0

    MySQL Bugs: #77277: defaultpasswordlifetime should be set 0 as implicit default value-An update on defaultpasswordlifetime | MySQL Server Blog

    -

    secure by default

    MySQL Bugs: #79939: defaultpasswordlifetime > 0 should print warning at startup

    -

    MySQL Bugs: #79959: SYS should have a view of user accounts expiring

    -

    15/33

    https://bugs.mysql.com/bug.php?id=77277http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_default_password_lifetimehttp://mysqlserverteam.com/an-update-on-default_password_lifetime/https://bugs.mysql.com/bug.php?id=79939https://bugs.mysql.com/bug.php?id=79959

  • default_password_lifetime= 0

    affects me @morgo @Rkajiyama

    16/33

    https://twitter.com/morgohttps://twitter.com/RKajiyama

  • MySQL Bugs: #76553: Sushi-Beer issue of MySQL with utf8mb4MySQL Bugs: #79977: utf8mb4unicode520ci dont make sense for Japanese FTSWhat would you like to see in MySQL 5.8? | Master MySQL

    17/33

    https://bugs.mysql.com/bug.php?id=76553http://bugs.mysql.com/bug.php?id=79977http://www.tocker.ca/2015/09/14/what-would-you-like-to-see-in-mysql-5-8.html

  • yoku0825DBA---

    ---

    Twitter: @yoku0825Blog: MyNA ML: MySQL

    18/33

    https://twitter.com/yoku0825https://yoku0825.blogspot.jphttp://mysql.gr.jp/

  • of Anemometer

    19/33

  • Anemometer

    pt-query-digestpt-query-digestMySQL(--history, --review)box/Anemometer: Box SQL Slow Query Monitor

    20/33

    https://github.com/box/Anemometer

  • Anemometer

    Home box/Anemometer Wiki21/33

  • Anemometer

    pt-query-digestTime range

    # Query 14: 0.00 QPS, 0.00x concurrency, ID 0xAF17C328E1020443 at byte 10391443# This item is included in the report because it matches --outliers.# Scores: V/M = 13.70# Time range: 2015-11-02 10:55:08 to 2015-12-18 15:20:14# Attribute pct total min max avg 95% stddev median# ============ === ======= ======= ======= ======= ======= ======= =======# Count 0 13# Exec time 0 163s 2s 51s 13s 29s 13s 9s# Lock time 0 5ms 271us 445us 354us 424us 65us 301us# Rows sent 9 544.87k 3.91k 104.73k 41.91k 97.04k 33.62k 46.68k# Rows examine 0 12.00M 238.87k 3.04M 945.00k 1.46M 808.81k 725.01k# Query size 0 24.29k 1.87k 1.87k 1.87k 1.86k 0.00 1.86k

    22/33

  • Anemometer

    UNIQUE KEY (hostname_max, checksum, ts_min, ts_max)Anemometerts_mints_min

    mysql> SELECT * FROM global_query_review_history LIMIT 1\G*************************** 1. row *************************** hostname_max: xxx db_max: xxx checksum: 1233945238822708500 sample: xxx ts_min: 2015-09-14 11:32:12 ts_max: 2015-10-28 15:51:01 ts_cnt: 31 Query_time_sum: 651.778 Query_time_min: 2.07993 Query_time_max: 197.678

    23/33

  • Anemometer

    ts_minpt-query-digest

    24/33

  • anemo eater

    pt-query-digest1pt-query-digestts_mints_max1

    -

    AnemometerDocker-Anemometerpt-query-digest

    -

    25/33

  • anemo eater

    1

    26/33

  • anemo eater

    AnemometerDocker

    -

    MySQLwith Fluentd+Elasticsearch+Kibana - kikumoto

    -

    MySQL Casual Talks vol 6.Nata2 - Studio3104::BLOG.new

    -

    27/33

    http://kikumoto.hatenablog.com/entry/2015/12/04/000152http://studio3104.hatenablog.com/entry/2014/07/22/234953

  • anemo eater

    -

    -

    -

    /

    -

    28/33

  • anemo eater

    $ git clone https://github.com/yoku0825/anemoeater$ cd anemoeater$ ./anemoeater slow_log_fileDocker container starts with 172.17.0.43.URL will be http://xxxx:32780/anemometer

    29/33

  • anemo eater

    pt-query-digestslowlog

    mysqld httpdphp

    browser

    Docker container apache

    30/33

  • anemo eater

    parallelpt-query-digest

    cellpt-query-digest

    sinceYYYYMMDDHHNN10pt-query-digest

    untilYYYYMMDDHHNN10pt-query-digest

    31/33

  • anemo eater

    reportnpt-query-digest

    no-dockerdocker run

    localyoku0825/anemoeaterpullDockerfiledocker build

    user, host, socket, port, password--no-dockerMySQL

    32/33

  • Questions and/or

    Suggestions?33/33