unified-storage: expose ring replication factor config (#106345)

* config ring replication factor

* change default

* rename

* fix test

* fix
This commit is contained in:
Will Assis
2025-07-22 09:32:22 +02:00
committed by GitHub
parent b9997d833f
commit 34f1be796d
5 changed files with 7 additions and 3 deletions
+1
View File
@@ -576,6 +576,7 @@ type Cfg struct {
MemberlistJoinMember string
MemberlistClusterLabel string
MemberlistClusterLabelVerificationDisabled bool
SearchRingReplicationFactor int
InstanceID string
SprinklesApiServer string
SprinklesApiServerPageLimit int
+1
View File
@@ -65,6 +65,7 @@ func (cfg *Cfg) setUnifiedStorageConfig() {
cfg.MemberlistJoinMember = section.Key("memberlist_join_member").String()
cfg.MemberlistClusterLabel = section.Key("memberlist_cluster_label").String()
cfg.MemberlistClusterLabelVerificationDisabled = section.Key("memberlist_cluster_label_verification_disabled").MustBool(false)
cfg.SearchRingReplicationFactor = section.Key("search_ring_replication_factor").MustInt(1)
cfg.InstanceID = section.Key("instance_id").String()
cfg.IndexFileThreshold = section.Key("index_file_threshold").MustInt(10)
cfg.IndexMinCount = section.Key("index_min_count").MustInt(1)