When I set maxmemory using redis-cli with Config set maxmemory 25GB, I observed the current booted configurations were overwritten with single configuration.
DragonFly version 1.34.2
/etc/dragonfly/dragonfly.flags.conf :
#CONFIG REWRITE
–maxmemory=25GB
Hi @thangaprakash,
Can you please elaborate?
If you use the CONFIG REWRITE command after setting configs at runtime, these configs should be persisted. Are you saying it’s not the case for you?
Thanks.
Hi @joezhou_df
during my experiments, I reached memory usage to 20GB so set maxmemory as 25GB using redis-cli.
[root@ip-172-31-0-22 dragonfly]# uname -a
Linux ip-172-31-0-22.ap-south-1.compute.internal 6.1.148-173.267.amzn2023.aarch64 #1 SMP Sun Aug 24 03:50:23 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
[root@ip-172-31-0-22 ~]# cat /etc/dragonfly/dragonfly.flags.CONFIG_REWRITE.conf
# Generated by CONFIG REWRITE
--maxmemory=24.13GiB
[root@ip-172-31-0-22 ~]#
Some switchover happened with other replicas (might be restart). I found when the log directory was set default log directory instead of configured one. I checked conf file with this single entry alone.
I will share further details if I reproduce the same.