Closed sangemaru closed 6 months ago
If you’re using a Redis Cluster then you must use the cluster configuration constant and not the host/port constant.
If you’re unable to connect to Redis, make sure your droplet is on the same network as the Redis cluster.
@tillkruss I'm struggling to match the Cluster configuration I'm being provided with the documentation for setting up the configuration constant.
I get 3 types of connection options from DigitalOcean and I've tried to populate the cluster configuration using all 3 variants, but I have a feeling I'm misunderstand how the constant works.
username = username
password = password
host = private-db-redis-region-id-do-user-id-0.c.db.ondigitalocean.com
port = 25061
rediss://username:password@private-db-redis-region-id-do-user-id-0.c.db.ondigitalocean.com:25061
redli --tls -h private-db-redis-region-id-do-user-id-0.c.db.ondigitalocean.com -a password -p 25061
@sangemaru: Are you sure you're using a cluster? Because you're connecting via -h
parameter and not -c
in redis-cli
.
What does redis-cli info cluster
say for your instance?
Hi. I have deployed a managed Redis 7 cluster on DigitalOcean. When trying to connect using redis-cli's AUTH command, it connects successfully. When trying to use WordPress, it fails.
Description
I configured it on my WordPress instance with the following settings:
Expected Behavior
I expect it to connect or return a more descriptive error.
Actual Behavior
Error establishing a Redis connection Redis server went away
Possible Fix
It may be I just misconfigured it, and better documentation is needed for these scenarios.
Steps to Reproduce
Additional context
We are running into issues where high server load makes a locally running Redis instance unstable and prone to failure. Because of this, we want to move Redis to its own dedicated cluster and access it remotely.
Environment