ElasticSearch(ES) performance Test

 

                ElasticSearch(ES) servers:  X.X.X.71, X.X.X.72, X.X.X.73.     72 and 73 with Mem:16G CPU:16 core 2.4GHz; 71 with Mem:8G CPU:4 core 2.27GHz       

 

                OS: Linux  x86_64 GNU/Linux

 

                tools: jmeter2.6 , youykit11.0.5

  • config & start service

 

         

 

              1. follow the offical installation guide of ES:ES Installation guide

 

                go to $ES_HOME and  start the ES with command( default config) :

./bin/elasticsearch 

 

  • preper jmeter script & index data

 

            1.  the index request for preper index-data to ES cluster look  like :

 

PUT http://X.X.X.71:9200/test/person/

PUT data:


[no cookies]

Request Headers:
Content-Length: 281
Connection: keep-alive

         the  format of  put data  (document for indexing) look like:

{oid:"456",ts:"1342463467567",name:"aluha",age:"10",company:"Cisco Systems, Inc.",branch:"Cloud Application Services",mail:"person@cisco.com",interest:"Have intensive interest in Internet-surfing,singing, writing and reading.",address:"address,The Golden Gate Bridge,Wall Street."}

        each doc for indexing  have a size about 300 bytes

 

    the detail of this script can find here:

 

         2. after got 15G index data with more than 20 million docs, we are ready to test the performance ofES, just keep the  same order of magnitude of index-data  as SolrCloud
 

  •  Test & Result

 

{note}

all test with NRT availible


{note}

    one or more clients to request to X.X.X.71-73 randomly. we have tow test cases

 

    (1)5 shards ,each with 2 replicas    (2) 1 shard, each with 2 replicas

 

  case (1)  :5 shards

 

       1. index performance test (with search): 

 

     index  result: index jmeter script elasticsearch_index_cluster.jmx

request thread numsavg response timethroughput
50192533
1501051446
3002001479

 at the same time the search result: search jmeter script  elasticsearch_search_cluster.jmx

request thread numsavg response timethroughput
5066274
1501200117
3001869154


 

       case(2) :1 shard

 

    1. index performance test (with search): 

 

     index  result: index jmeter script elasticsearch_index_cluster.jmx

request thread numsavg response timethroughput
50232314
1501582541
3001012946

 at the same time the search result: search jmeter script  elasticsearch_search_cluster.jmx

request thread numsavg response timethroughput
50153206
1501453230
300933167

       

  •  Summary

 

      the performance of indexing  between case 1 and case 2 is almost the same, but the performance of  searching while indexing is very bad when the shard is too many. with single searching  or indexing ,theES is very powerful. ES is also very good for small seach application. But for large scale data indexing and searching, too many shards will lead some problems.  It would be too hard for a new developer work withES due to its inactivity community and poor document compare withSolr. But ES has a lot of good feature we should bring into our system. Our team will step forword with this test. We will hava a  deeper research onES.

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值