gpt4 book ai didi

Elasticsearch:我可以安全地删除收缩索引吗?

转载 作者:行者123 更新时间:2023-12-03 01:21:19 24 4
gpt4 key购买 nike

我使用 Shrink API 将索引从 500 个分片缩小到 100 个。但操作完成后似乎没有占用新的磁盘空间。

我可以安全地删除 500 个分片的原始索引吗?还是新指数依赖于此?

最佳答案

Can i safely delete the original index with 500 shards? or does the new index rely on that?



是的,删除索引不会影响任何其他索引。

But it seems that no new disk space was taken after the operation was complete.



这是意料之中的,至少在最初是这样。 shrink API 的文档注意通常缩小的索引是由 hard-linking 制作的。原始索引的文件,而不是复制它们。硬链接(hard link)的工作原理与复制非常相似,只是它不占用任何额外空间。特别是,如果您有两个指向相同基础数据的硬链接(hard link),那么您可以删除其中一个而不影响另一个,这就是 Elasticsearch 在收缩时使用的属性。

关于Elasticsearch:我可以安全地删除收缩索引吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60134542/

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