悟空,拿我的打狗棒来

Elastic 单点的并发量问题

Elasticsearch | 作者 SilentCC | 发布于2018年07月24日 | 阅读数:2829

我使用的elastic 5.4版本。
建了58万个文档,共6个多G的索引,写入索引时增加了     "term_vector" : "with_positions_offsets" ,因为要使用FastVectorHighlighter 高亮
服务器的配置是2核4G,一共有1个节点,5个分片。
 
我使用BooleanQuery ,查询方式如下,高亮是VectorHighlighter , 返回10条,命中的文档数也是10条
{
"query":
{
"bool" :{

"should":[
{
"bool":{
"must":[
{
"term":{
"Title":"asp"}
}
]

}
},

{
"bool":{

"must":[
{
"term":{
"Content":"asp"}
}
]

}
}
]

}
},

"highlight": {

"fields" : {
"Title" : {},
"Content":{}

}
}
}

单个查询消耗的时间是20ms左右,
 
但是我用压测工具测试,为什么QPS 只有2~3 ,是我用的不对,还是本来的并发性能就如此?
已邀请:

zqc0512 - andy zhou

赞同来自: SilentCC

高量很耗CPU,看看CPU有压力没有

要回复问题请先登录注册