I'm using redigo in go with docker. I have a server that processes incoming events and uses redis for rate limiting. One in every 100k+ connections or so I get the following error:
redis: dial tcp IP ADDRESS: connect: connection refused
The configuration is all inside docker using docker-compose. I've got sentry sending me these errors, I was wondering if there were any tweaks/settings I could do to remove/reduce this error
My redigo configuration is
redis := &redis.Pool{
MaxActive: idleConnections,
MaxIdle: idleConnections,
Wait: true,
Dial: func() (redis.Conn, error) {
return redis.Dial("tcp", address, options...)
},
}