ES压测工具(四):esrally实例操作

本文详细介绍了使用esrally工具进行ES性能压测的过程,包括不同版本ES的性能对比,针对不存在和已存在索引的集群进行压测,以及对多个索引的压测操作,通过配置数据集、数据模型和压测策略,得出测试报告。
摘要由CSDN通过智能技术生成

一、针对ES版本压测数据对比

针对ES2.4.6与ES5.6.0进行性能对比,前提是在同一压测数据集和压测方案条件下进行

1、针对ES2.4.6版本进行压测(~/.rally/benchmarks/tracks/MyTracks/demo_track1为自定义压测,包括documents.json、index.json、track.json)

esrally --distribution-version=2.4.6 --track-path=~/.rally/benchmarks/tracks/MyTracks/demo_track1

2、针对ES5.6.0版本进行压测(~/.rally/benchmarks/tracks/MyTracks/demo_track1为自定义压测,包括documents.json、index.json、track.json)

esrally --distribution-version=5.6.0 --track-path=~/.rally/benchmarks/tracks/MyTracks/demo_track1

 3、对比两个版本的性能,baseline为ES5.6.0,contender为ES2.4.6

esrally compare --baseline=4644aa6f-aad2-4feb-b5d1-c3da750236f0 --contender=484811aa-4887-4d1d-ba03-6df52879c376
------------------------------------------------------
    _______             __   _____
   / ____(_)___  ____ _/ /  / ___/_________  ________
  / /_  / / __ \/ __ `/ /   \__ \/ ___/ __ \/ ___/ _ \
 / __/ / / / / / /_/ / /   ___/ / /__/ /_/ / /  /  __/
/_/   /_/_/ /_/\__,_/_/   /____/\___/\____/_/   \___/
------------------------------------------------------
            
|                                                        Metric |            Task |    Baseline |   Contender |     Diff |   Unit |
|--------------------------------------------------------------:|----------------:|------------:|------------:|---------:|-------:|
|                    Cumulative indexing time of primary shards |                 |           0 |           0 |        0 |    min |
|             Min cumulative indexing time across primary shard |                 |           0 |           0 |        0 |    min |
|          Median cumulative indexing time across primary shard |                 |           0 |           0 |        0 |    min |
|             Max cumulative indexing time across primary shard |                 |           0 |           0 |        0 |    min |
|           Cumulative indexing throttle time of primary shards |                 |           0 |           0 |        0 |    min |
|    Min cumulative indexing throttle time across primary shard |                 |           0 |           0 |        0 |    min |
| Median cumulative indexing throttle time across primary shard |                 |           0 |           0 |        0 |    min |
|    Max cumulative indexing throttle time across primary shard |                 |           0 |           0 |        0 |    min |
|                       Cumulative merge time of primary shards |                 |           0 |           0 |        0 |    min |
|                      Cumulative merge count of primary shards |                 |           0 |           0 |        0 |        |
|                Min cumulative merge time across primary shard |                 |           0 |           0 |        0 |    min |
|             Median cumulative merge time across primary shard |                 |           0 |           0 |        0 |    min |
|                Max cumulative merge time across primary shard |                 |           0 |           0 |        0 |    min |
|              Cumulative merge throt
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值