index.rebuildInterval modify to 6h

This commit is contained in:
Ulric Qin 2020-06-28 17:05:22 +08:00
parent a46824c8ab
commit 19890460b9
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func Parse(conf string) error {
viper.SetDefault("migrate.maxIdle", 32) viper.SetDefault("migrate.maxIdle", 32)
viper.SetDefault("index.activeDuration", 90000) //索引最大的保留时间超过此数值索引不会被重建默认是1天+1小时 viper.SetDefault("index.activeDuration", 90000) //索引最大的保留时间超过此数值索引不会被重建默认是1天+1小时
viper.SetDefault("index.rebuildInterval", 43200) //重建索引的周期,单位为秒,默认是半天 viper.SetDefault("index.rebuildInterval", 21600) //重建索引的周期,单位为秒,默认是6h
viper.SetDefault("index.hbsMod", "monapi") //获取index心跳的模块 viper.SetDefault("index.hbsMod", "monapi") //获取index心跳的模块
viper.SetDefault("rpcClient", map[string]int{ viper.SetDefault("rpcClient", map[string]int{