Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error MOVED 9362 #1633

Closed
brainlabs opened this issue Jan 28, 2021 · 2 comments
Closed

Error MOVED 9362 #1633

brainlabs opened this issue Jan 28, 2021 · 2 comments

Comments

@brainlabs
Copy link

brainlabs commented Jan 28, 2021

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, })

@goku321
Copy link

goku321 commented Feb 1, 2021

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?

@vmihailenco
Copy link
Collaborator

In theory there should not be more than 1 redirect. But in practice you should figure out why you have redirects and act based on that information.

Closing since I can't debug this based on the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants