From f3314eacd74cf68b50b2bfca77eff9f53c1d8e54 Mon Sep 17 00:00:00 2001 From: Petr Tuma Date: Fri, 26 Feb 2021 12:57:16 +0100 Subject: [PATCH] Redis configuration syntax update Replication syntax of Redis config files updated to Redis 5.x. Signed-off-by: Petr Tuma Change-Id: I45bacefc7912870c48f618e27ff759f9c249dc33 --- ansible/roles/redis/templates/redis.conf.j2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/roles/redis/templates/redis.conf.j2 b/ansible/roles/redis/templates/redis.conf.j2 index fb0fb2b5d1..57a5ddce48 100644 --- a/ansible/roles/redis/templates/redis.conf.j2 +++ b/ansible/roles/redis/templates/redis.conf.j2 @@ -16,12 +16,12 @@ rdbcompression yes rdbchecksum yes dbfilename dump.rdb dir /var/lib/redis -slave-serve-stale-data yes -slave-read-only yes +replica-serve-stale-data yes +replica-read-only yes repl-diskless-sync no repl-diskless-sync-delay 5 repl-disable-tcp-nodelay no -slave-priority 100 +replica-priority 100 appendonly yes appendfilename "redis-staging-ao.aof" appendfsync everysec @@ -42,7 +42,7 @@ zset-max-ziplist-value 64 hll-sparse-max-bytes 3000 activerehashing yes client-output-buffer-limit normal 0 0 0 -client-output-buffer-limit slave 256mb 64mb 60 +client-output-buffer-limit replica 256mb 64mb 60 client-output-buffer-limit pubsub 32mb 8mb 60 hz 10 aof-rewrite-incremental-fsync yes @@ -51,5 +51,5 @@ masterauth {{ redis_master_password }} {% if inventory_hostname != groups['redis'][0] %} {% set redis_master_address = 'api' | kolla_address(groups['redis'][0]) %} -slaveof {{ redis_master_address }} 6379 +replicaof {{ redis_master_address }} 6379 {% endif %}