react 前端框架如何驱动企业数字化转型与创新发展
1136
2022-10-29
esrally性能分析结果图形化展示深入详解
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: 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_91Enter a descriptive name for this benchmark environment (ASCII, no spaces): localEnter the host name of the ES metrics store [default: 'localhost']: laoyang#elasticsearch的监听端口Enter the port of the ES metrics store: 9200Use 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: esrallyFor help, type esrally --help or see the user documentation at have new mail in /var/spool/mail/root
2、运行esrally
[elasticsearch@laoyang root]$ esrally ____ ____ / __ \____ _/ / /_ __ / /_/ / __ `/ / / / / / / _, _/ /_/ / / / /_/ //_/ |_|\__,_/_/_/\__, / /____/
3、在head插件前端和kibana前端看输出结果。
head插件会显示:新增的索引:rally-2016.
kibana配置参考:
(官网esrally性能测试)
下图信息,如果每天运行一次性能测试,就能够跑出性能曲线。(横轴:日期,纵轴:性能指标)
4. 细节与rally源码作者讨论如下
https://discuss.elastic.co/t/the-detail-meaning-of-esrally-final-score/57454/10
和你一起,死磕Elasticsearch!
——————————————————————————————————
作者:铭毅天下
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~