You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing a somewhat similar issue. I've a Redis cluster with six nodes. I get MOVED error sometimes. The default value for MaxRedirects is 3. That means, when there are more than 3 redirections, the client would give a MOVED error. Could having a higher value for MaxRedirects (for ex- 6) guarantee that the client never throws a MOVED error?
i use AWS elastic cache cluster (cluster mode enable ) with single endpoint cluster config and always got error MOVED 9362
My setting like this:
r := redis.NewUniversalClient(&redis.UniversalOptions{ Addrs: strings.Split(conf.Redis.Hosts, ","), ReadTimeout: time.Duration(conf.Redis.ReadTimeoutSecond) * time.Second, WriteTimeout: time.Duration(conf.Redis.WriteTimeoutSecond) * time.Second, DB: conf.Redis.DB, PoolSize: conf.Redis.PoolSize, PoolTimeout: time.Duration(conf.Redis.PoolTimeoutSecond) * time.Second, MinIdleConns: conf.Redis.MinIdleConn, IdleTimeout: time.Duration(conf.Redis.IdleTimeoutSecond) * time.Second, RouteByLatency: conf.Redis.RouteByLatency, Password: conf.Redis.Password, })
The text was updated successfully, but these errors were encountered: