Redis version: 5.0.5
Configuration: I have a redis master started via docker (no shared volume), with port 6380 exposed. It does not read from a redis.conf. It uses the command:
command: ["redis-server", "--appendonly", "yes"]
I'm running a redis replica on my system for use in integration tests. It is using redis-server /path/to/redis.conf. I have confirmed that this configuration file is being loaded by changing the replica port and looking at the debug info.
Issue: Using the following redis.conf (for the replica), I am still seeing temp-xxxxxxx.rdb files being left around.
bind 127.0.0.1
port 6381
timeout 0
loglevel debug
logfile ""
# save 900 1
# save 300 10
# save 60 10000
dir ./
replicaof 127.0.0.1 6380
repl-diskless-sync yes
repl-diskless-sync-delay 15
The debug level information in the terminal does not state:
a) the path of the config file loaded b) whether or not diskless sync was successfully enabled.
Comment From: antirez
Hi,
- What you want is instead: repl-diskless-load
- It does not work in all the cases. Read the documentation in the redis.conf example file.
- I just merged in Redis 6 a feature that no longer persists RDB files, optionally, if the instances are configured without persistence.
Comment From: drewboardman
Hi,
1. What you want is instead: repl-diskless-load 2. It does not work in all the cases. Read the documentation in the redis.conf example file. 3. I just merged in Redis 6 a feature that no longer persists RDB files, optionally, if the instances are configured without persistence.
Is there an updated redis.conf example file that explains this repl-diskless-load option? I'm using the one here (for redis 5) and that option is not listed. Is this only a feature for redis 6?
Reading the configuration file, at line 20
>>> 'repl-diskless-load swapdb'
Bad directive or wrong number of arguments