我对Elasticsearch还是比较陌生,目前,我正尝试从Solr切换到Elasticsearch,并且当我们在生产网站上看到ES时,CPU使用率将大大增加。该站点每秒可以处理10,000到30,000个ES请求。 Solr可以使用我们当前的硬件很好地处理负载。
图书索引映射:https://pastebin.com/bKM9egPS
查询书籍:https://pastebin.com/AdfZ895X
ES在m4.xlarge.elasticsearch
实例上托管在AWS上。
我们的集群设置如下(默认情况下不包括任何内容):
"persistent": {
"cluster": {
"routing": {
"allocation": {
"cluster_concurrent_rebalance": "2",
"node_concurrent_recoveries": "2",
"disk": {
"watermark": {
"low": "15.0gb",
"flood_stage": "5.0gb",
"high": "10.0gb"
}
},
"node_initial_primaries_recoveries": "4"
}
}
},
"indices": {
"recovery": {
"max_bytes_per_sec": "60mb"
}
}
我们的节点具有以下配置:
"_nodes": {
"total": 2,
"successful": 2,
"failed": 0
},
"cluster_name": "cluster",
"nodes": {
"####": {
"name": "node1",
"version": "6.3.1",
"build_flavor": "oss",
"build_type": "zip",
"build_hash": "####",
"roles": [
"master",
"data",
"ingest"
]
},
"###": {
"name": "node2",
"version": "6.3.1",
"build_flavor": "oss",
"build_type": "zip",
"build_hash": "###",
"roles": [
"master",
"data",
"ingest"
]
}
}
有人可以帮我弄清楚到底是怎么回事,以便我可以完成此部署吗?