Can I configure Redis slave to stop saving dumps? I have omitted all save
instructions in config file but slave is still doing dumps.
The Redis replication uses an asynchronous method to transfer data from master to slave. The slave periodically acknowledges the received data sent by the master node, and also the master node can have many slaves. Redis can support cascading replication, so the slave can be connected to another slave.
It allows replica Redis instances to be exact copies of master instances. The replica will automatically reconnect to the master every time the link breaks, and will attempt to be an exact copy of it regardless of what happens to the master.
Setting up Redis instance as a replica In order to configure the Redis instance as a replica, we can use the replicaof parameter and set the master node's IP and port to identify the master and enable communication. Once these configurations are complete, restart the Redis services in all your replica nodes.
Automatic FailoverA Redis Enterprise cluster provides fault tolerance and resilience. In the case of a primary server or node outage, Redis Enterprise's self-healing process automatically detects the hardware failure, elects a replica as a replacement, and promotes that replica to become the new primary server.
So I assume you have checked in the configuration file of the slave that RDB is deactivated (all save lines commented out), and the slave has been restarted after the configuration file has been changed (so this configuration is active).
At this point the background dump operation of the slave is deactivated, but it does not prevent the slave to write a dump file. Actually, the slave has to write a dump file at startup time: this is how it retrieves the data from the master in bulk mode.
When the slave starts, it sends a SYNC request to the master:
That's why you can find dump files on slave side even if RDB is deactivated for the slaves.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With