请问一下大家的es吃cpu吗,我40G数据,用了2台16核32G的机器,压到250的QPS,cpu就飙到80了,再继续压就压不上去了。
具体的信息在下面,请问大家有什么问题吗,或者有什么排查的方向吗?
es服务是使用的aws云服务
压测的工具是jmeter,通过http接口访问es
查询条件如下:
mappings如下:
具体的信息在下面,请问大家有什么问题吗,或者有什么排查的方向吗?
es服务是使用的aws云服务
压测的工具是jmeter,通过http接口访问es
查询条件如下:
{
"query": {
"multi_match": {
"query" : "WE67K-600t/4000 CNC hydraulic press brake machine for railway",
"fields" : ["title","categories"],
"type" : "most_fields"
}
},
"size": 10
}
mappings如下:
{
"settings": {
"number_of_shards" : 4,
"number_of_replicas" : 1,
"analysis": {
"filter": {
"my_synonym_filter": {
"type": "synonym",
"synonyms": [
"apple, cellphones"
]
}
},
"analyzer": {
"my_synonyms": {
"tokenizer": "standard",
"filter": [
"lowercase",
"stop",
"kstem",
"my_synonym_filter"
]
}
}
}
},
"mappings": {
"spu" : {
"properties" : {
"spuId" : {
"type" : "keyword"
},
"title": {
"type": "text",
"analyzer": "my_synonyms"
},
"categories" : {
"type" : "text",
"analyzer": "my_synonyms"
},
"salePrice" : {
"type" : "double"
},
"originalPrice" : {
"type" : "double"
},
"discount" : {
"type" : "double"
},
"score" : {
"type" : "double"
},
"votes" : {
"type" : "integer"
},
"sales1" : {
"type" : "integer"
},
"sales7" : {
"type" : "integer"
},
"sales30" : {
"type" : "integer"
},
"sales90" : {
"type" : "integer"
},
"sales180" : {
"type" : "integer"
},
"sales360" : {
"type" : "integer"
},
"wishes" : {
"type" : "integer"
},
"currency" : {
"type" : "keyword"
},
"brand" : {
"type" : "text",
"analyzer": "standard"
},
"country" : {
"type" : "keyword"
},
"status" : {
"type" : "integer"
},
"createTime" : {
"type" : "date"
},
"updateTime" : {
"type" : "date"
},
"provider" : {
"type" : "keyword"
},
"providerSpuId" : {
"type" : "keyword"
},
"providerUrl" : {
"type" : "keyword"
},
"seller" : {
"type" : "text",
"analyzer": "standard",
"boost": 0
},
"sellerHash" : {
"type": "integer"
}
}
}
}
}
[size=13]
[/size]
2 个回复
fire
赞同来自:
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自:
必须function_score检索吗