-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Description
Hello,
I have a cluster in Elasticache and encountered this error while scaling it down: "redis client is closing or unable to connect redis"
This is the way I am connecting:
client, _ := rueidis.NewClient(rueidis.ClientOption{
InitAddress: []string{"clustercfg.xxxxx.yyyyy.use1.cache.amazonaws.com:6379"},
TLSConfig: &tls.Config{
MinVersion: tls.VersionTLS12,
},
MaxFlushDelay: 0,
Username: "user",
Password: "pass",
DisableCache: true,
ConnWriteTimeout: 2 * time.Second,
DisableRetry: false,
})
client.Do(ctx, client.B().Setex().Key("key").Seconds(120).Value("value").Build()).Error()
I am also seeing these errors when adding a new node, after a while (long), the client stops experiencing errors, the weird thing is that not all requests end in error, but many of them do.
Do I need any additional configuration? Am I doing something wrong? Thank you.
Metadata
Metadata
Assignees
Labels
No labels