App config caching per instance (#3071)

* Do caching of app config per instance instead of across all of them in redis

* Add changes file

* Simplify code based on review comment

* Use go-cache instead of creating our own

* Dont export consts

* Copy app config before returning it

* Fix lint

* Update go sum

* Update go sum
This commit is contained in:
Tomas Touceda
2021-11-29 12:51:57 -03:00
committed by GitHub
parent 5c113bd468
commit a36e029d95
7 changed files with 50 additions and 103 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ the way that the Fleet server works.
}
level.Info(logger).Log("component", "redis", "mode", redisPool.Mode())
ds = cached_mysql.New(ds, redisPool)
ds = cached_mysql.New(ds)
resultStore := pubsub.NewRedisQueryResults(redisPool, config.Redis.DuplicateResults)
liveQueryStore := live_query.NewRedisLiveQuery(redisPool)
if err := liveQueryStore.MigrateKeys(); err != nil {