ElasticSearch - 文档存储

2018-02-08
阅读 2 分钟
2.8k
shard 确定shard的公式: {代码...} routing 默认是文档的 _id ,也可以设置成一个自定义的值。 因此要在创建索引的时候就确定好主分片的数量,并且永远不会改变这个数量,因为如果数量变化了,那么所有之前路由的值都会无效。 每个节点都知道集群中任一文档位置,所以可以直接将请求发到任意节点。当然,为了扩展负载,...

ElasticSearch - API Conventions

2018-02-06
阅读 2 分钟
1.5k
Limiting the number of indices that are searched reduces the load on the cluster and improves execution performance.