1

I want to use Redis Master-slave feature for replication between active and backup servers. But I want to know how the master-slave communication works? Because I have limitations in production, I cannot use Master-Slave configuration if Master makes TCP connections with the slave.

1 Answer 1

1
  • Slave opens TCP connection to master.

  • Slave knows about his master.

  • Master only knows about currently connected slaves.

  • For a fresh (empty) or stale slave initially an RDB dump is
    transferred. Then master sends only diffs. This is done automatically.

  • There colud be cases when replication can't keep up (either very long blocking operation is happening or network is slow or interrupted). Then slave might decide to stop trying to catch up and download RDB dump again.

2
  • Thanks for the answer.
    – suragys
    Oct 24, 2019 at 20:54
  • Since I was summoned here, updated it with some production experience.
    – Imaskar
    Oct 25, 2019 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.