Skip to content

Error while shrinking a cluster #209

@arielzach

Description

@arielzach

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions