gpt4 book ai didi

elasticsearch - 分片到底是什么?

转载 作者:行者123 更新时间:2023-12-03 01:23:44 25 4
gpt4 key购买 nike

我正在浏览文档,

An index can potentially store a large amount of data that can exceed the hardware limits of a single node. For example, a single index of a billion documents taking up 1TB of disk space may not fit on the disk of a single node or may be too slow to serve search requests from a single node alone.

To solve this problem, Elasticsearch provides the ability to subdivide your index into multiple pieces called shards. When you create an index, you can simply define the number of shards that you want. Each shard is in itself a fully-functional and independent "index" that can be hosted on any node in the cluster.

flex 搜索碎片到底是什么构成的?是配置了内存的Lucene线程吗?是否可以调整单个分片的设置?

最佳答案

除了应该提供帮助的this answer之外,我还可以添加一个碎片,它实际上包装了完整的Lucene搜索引擎。

您不能更改单个分片的设置,而是可以在索引级别更改设置,Elasticsearch会将其应用于索引分片。

因此,Elasticsearch使您能够将索引上的工作负载分配到该索引位于不同节点上的所有分片(即Lucene引擎)中。

简而言之: Elasticsearch =分布式Lucene !

关于elasticsearch - 分片到底是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59156266/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com