Unified storage: Reconstruct index in the background every 24h (#106422)

This commit is contained in:
Stephanie Hingtgen
2025-06-12 14:34:48 -05:00
committed by GitHub
parent 1e41c07920
commit 5135d5c87d
5 changed files with 102 additions and 13 deletions
+1
View File
@@ -556,6 +556,7 @@ type Cfg struct {
IndexMaxBatchSize int
IndexFileThreshold int
IndexMinCount int
IndexRebuildInterval time.Duration
EnableSharding bool
MemberlistBindAddr string
MemberlistAdvertiseAddr string
+2
View File
@@ -63,6 +63,8 @@ func (cfg *Cfg) setUnifiedStorageConfig() {
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)
// default to 24 hours because usage insights summarizes the data every 24 hours
cfg.IndexRebuildInterval = section.Key("index_rebuild_interval").MustDuration(24 * time.Hour)
cfg.SprinklesApiServer = section.Key("sprinkles_api_server").String()
cfg.SprinklesApiServerPageLimit = section.Key("sprinkles_api_server_page_limit").MustInt(100)
cfg.CACertPath = section.Key("ca_cert_path").String()