我正在尝试提高查询性能。简单的查询甚至不涉及嵌套文档,平均需要约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、内存等方面的明显峰值。有什么改进的想法吗?