Redis MASTERDOWN Link with MASTER is down and slave-serve-stale-data is set to 'no'

The replica cannot serve stale data because the link to the master is down.
  1. Verify the connectivity between the Redis master and slave instances:
    • ping <master-hostname or IP> to ensure network connectivity.
  2. Check if the Redis master instance is running:
    • On the master host, run redis-cli ping. If it responds with PONG, the master is running.
  3. Review the Redis master and slave logs for any errors or warnings that indicate why the link is down:
    • Typically found at /var/log/redis/redis-server.log.
  4. Attempt to manually reconnect the slave to the master:
    • On the slave instance, execute redis-cli -h <slave-host> -p <slave-port> SLAVEOF <master-hostname or IP> <master-port>.
  5. Monitor key metrics:
    • Use redis-cli info replication to check the replication status and any error messages.
    • Check the network latency and throughput between master and slave if possible, to ensure there isn't a network bottleneck causing the issue.

Master

Redis

in Minutes — Grab the Ultimate Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Real-world configs/examples
Handy troubleshooting shortcuts
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Redis

Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid