Have a redis replica of 3 nodes
use latest redis version 7.0.2 on CentOS Stream 8
after systemctl restart redis rewrites my default config /etc/redis/redis.conf
bottom of file add replica lines
# Generated by CONFIG REWRITE
latency-tracking-info-percentiles 50 99 99.9
replicaof 192.168.0.1 6379
user default on nopass ~* &* +@all
and also change config file owner from root to redis even on redis 6.x version there was no rewrites to config file Is there ant solution to disable CONFIG REWRITE after redis startup ?
Comment From: oranagra
@eliteaz is this a regression? (have you used this configuration with a previous version? )
What do you mean by 3 nodes? is this a cluster? (cluster doesn't write replicaof to the config file)
Any chance your redis server was hacked and this is the outcome of some attack?
Comment From: eliteaz
@oranagra seems I found an issue.
Problem was that I removed symlink from /etc/redis.conf -> redis/redis.conf
after when redis service is starting up again it not found a /etc/redis.conf symlink
and rewrites a config itself CONFIG REWRITE command