gpt4 book ai didi

elasticsearch - Elasticsearch 中的primary_term究竟是什么?

转载 作者:行者123 更新时间:2023-12-02 22:54:38 25 4
gpt4 key购买 nike

在阅读了大量文档后,我了解到primary_term 和sequence_number 用于乐观并发控制,以防止旧版本的文档覆盖较新的文档。但是,我的问题是 primary_term 到底是什么?它与主分片相同吗?

最佳答案

每次在故障转移期间不同的分片成为主分片时,主项都会增加。这有助于解决重新联机的旧主服务器上发生的更改与新主服务器上发生的更改(新主服务器)。

These primary terms are incremental and change when a primary ispromoted. They're persisted in the cluster state, thus representing asort of “version” or “generation” of primaries that the cluster is on.


https://www.elastic.co/blog/elasticsearch-sequence-ids-6-0

关于elasticsearch - Elasticsearch 中的primary_term究竟是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59599360/

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