gpt4 book ai didi

斯普伦克 : How to figure out replication Factor

转载 作者:行者123 更新时间:2023-12-05 02:36:42 25 4
gpt4 key购买 nike

如果你觉得这听起来很傻,我提前道歉,我是 splunk 的新手,并且学过 udemy 类(class),但无法弄清楚这一点。

If I check my indexes.conf file in cluster master I get repFator=0
#
# By default none of the indexes are replicated.
#
repFactor = 0

但是如果我检查 https://:8089/services/cluster/config

我看到了复制因子:

replication_factor  2

所以我很困惑我的数据是否被复制了,我在集群中有两个索引

最佳答案

我相信 replication_factor 决定了集群中的节点之间有多少副本,而 refFactor 决定是否复制特定索引。

对于repFactor,这是一个特定于索引的设置

The indexes.conf repFactor attribute

When you add a new index stanza, you must set the repFactor attribute to "auto". This causes the index's data to be replicated to other peers in the cluster.

Note: By default, repFactor is set to 0, which means that the index will not be replicated. For clustered indexes, you must set it to "auto".

The only valid values for repFactor are 0 and "auto".

对于replication_factor,这是一个集群设置:

Replication factor and cluster resiliency

The cluster can tolerate a failure of (replication factor - 1) peer nodes. For example, to ensure that your system can tolerate a failure of two peers, you must configure a replication factor of 3, which means that the cluster stores three identical copies of each bucket on separate nodes. With a replication factor of 3, you can be certain that all your data will be available if no more than two peer nodes in the cluster fail. With two nodes down, you still have one complete copy of data available on the remaining peers.

By increasing the replication factor, you can tolerate more peer node failures. With a replication factor of 2, you can tolerate just one node failure; with a replication factor of 3, you can tolerate two concurrent failures; and so on.

关于斯普伦克 : How to figure out replication Factor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70195933/

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