esrally效能分析結果圖形化展示深入詳解

銘毅天下(公眾號同名)發表於2016-08-10

0、前提

安裝elasticsearch的最新版本,目前是2.3.4版本。
elsticsearch新增扮演的角色是:rally分析結果會儲存到elasticsearch。

1、執行esrally 高階配置模式

高階配置模式和普通模式的區別:普通模式只需要配置jdk的環境變數路徑。
而高階模式,需要配置:當前本機已安裝elasticsearch的監聽埠以及ES配置的主機名稱。

高階配置模式詳情:

[elasticsearch@laoyang root]$ esrally configure --advanced-config

  ____ ____
  / __ \____ _/ / /_ __
  / /_/ / __ `/ / / / / /
 / _, _/ /_/ / / / /_/ /
/_/ |_|\__,_/_/_/\__, /
  /____/

Running advanced configuration. You can get additional help at:

  https://esrally.readthedocs.io/en/latest/configuration.html

WARNING: Will overwrite existing config file at [/home/elasticsearch/.rally/rally.ini]

[✓] Autodetecting available third-party software
  git : [✓]
  gradle : [✓]
  JDK 8 : [✕] (You cannot benchmark Elasticsearch 5.x without a JDK 8 installation)

[✓] Setting up benchmark data directory in [/home/elasticsearch/.rally/benchmarks] (needs several GB).
Enter your Elasticsearch project directory: [default: '/home/elasticsearch/.rally/benchmarks/src']:
  Using default value '/home/elasticsearch/.rally/benchmarks/src'

Enter the JDK 8 root directory:: /opt/jdk1.8.0_91

Enter a descriptive name for this benchmark environment (ASCII, no spaces): local

Enter the host name of the ES metrics store [default: 'localhost']: laoyang

#elasticsearch的監聽埠
Enter the port of the ES metrics store: 9200

Use secure connection (True, False) [default: 'False']:
  Using default value 'False'

Username for basic authentication (empty if not needed) [default: '']:
  Using default value ''

Password for basic authentication (empty if not needed) [default: '']:
  Using default value ''

[✓] Configuration successfully written to [/home/elasticsearch/.rally/rally.ini]. Happy benchmarking!

To benchmark the currently checked out version of Elasticsearch with the default benchmark run:

  esrally

For help, type esrally --help or see the user documentation at https://esrally.readthedocs.io
You have new mail in /var/spool/mail/root

2、執行esrally

[elasticsearch@laoyang root]$ esrally

  ____ ____
  / __ \____ _/ / /_ __
  / /_/ / __ `/ / / / / /
 / _, _/ /_/ / / / /_/ /
/_/ |_|\__,_/_/_/\__, /
  /____/

3、在head外掛前端和kibana前端看輸出結果。

head外掛會顯示:新增的索引:rally-2016.
這裡寫圖片描述
這裡寫圖片描述
這裡寫圖片描述
kibana配置參考:
https://elasticsearch-benchmark-analytics.elastic.co/app/kibana#/visualize/edit/Index-disk-usage (官網esrally效能測試)
下圖資訊,如果每天執行一次效能測試,就能夠跑出效能曲線。(橫軸:日期,縱軸:效能指標)

4. 細節與rally原始碼作者討論如下

https://discuss.elastic.co/t/the-detail-meaning-of-esrally-final-score/57454/10

——————————————————————————————————
更多ES相關實戰乾貨經驗分享,請掃描下方【銘毅天下】微信公眾號二維碼關注。
(每週至少更新一篇!)

這裡寫圖片描述
和你一起,死磕Elasticsearch
——————————————————————————————————

作者:銘毅天下
轉載請標明出處,原文地址:
http://blog.csdn.net/laoyang360/article/details/52176045
如果感覺本文對您有幫助,請點選‘頂’支援一下,您的支援是我堅持寫作最大的動力,謝謝!

相關文章