Closed MathieuNls closed 6 years ago
Hi,
I've found the following while pocking around. It answers my question:
return rmq.OpenConnectionWithRedisClient(
name,
redis.NewClient(&redis.Options{
Network: network,
Addr: ip,
DB: bdd,
MaxRetries: 5,
DialTimeout: time.Second * 15,
ReadTimeout: time.Second * 10,
WriteTimeout: time.Second * 10,
}),
)
It uses the Options struct of redis : https://godoc.org/github.com/go-redis/redis#Options
Hi,
We get panics when redis timeouts. The redis is alive but under pressure. How can we raise the limit or gracefully retry ?
Attached stack