【发布时间】:2014-04-09 01:01:43
【问题描述】:
我正在尝试提高查询性能。甚至不涉及嵌套文档的简单查询平均需要大约 3 秒,有时甚至更长。
curl "http://searchbox:9200/global/user/_search?n=0&sort=influence:asc&q=user.name:Bill%20Smith"
即使没有排序也需要几秒钟。以下是集群的详细信息:
1.4TB index size.
210m documents that aren't nested (About 10kb each)
500m documents in total. (nested documents are small: 2-5 fields).
About 128 segments per node.
3 nodes, m2.4xlarge (-Xmx set to 40g, machine memory is 60g)
3 shards.
Index is on amazon EBS volumes.
Replication 0 (have tried replication 2 with only little improvement)
我在 CPU/内存等方面没有看到任何明显的峰值。有什么可以改进的想法吗?
【问题讨论】:
标签: java lucene elasticsearch