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.

Never debug

Redis

manually again

Let Dr. Droid create custom investigation plans for your infrastructure.

Start Free POC (15-min setup) →
Automate Debugging for
Redis
See how Dr. Droid creates investigation plans for your infrastructure.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid