update notify-keyspace-events in redis.conf (#12540)

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan arlakshm@microsoft.com

Why I did it
closes #12343

Today in SONiC the notify-keyspace-events is from DbInterface class when application try do any configdb set.
In Chassis the chassis_db may not get any configdb set operations, so there is chance this configuration will never be set.
So the chassis_db updates from one line card will not be propogated to other linecards, which are doing a psubscribe to get these event.

How I did it
update the redis.conf to set notify-keyspace-events AKE so that the notify-keyspace-events are set when the redis instance is started

How to verify it
Test on chassis
This commit is contained in:
arlakshm 2022-10-28 18:28:57 -07:00 committed by Ying Xie
parent 10ea75eb4a
commit 12785e4721

View File

@ -32,7 +32,8 @@ RUN apt-get clean -y && \
s/^# syslog-enabled no$/syslog-enabled no/; \ s/^# syslog-enabled no$/syslog-enabled no/; \
s/^# unixsocket/unixsocket/; \ s/^# unixsocket/unixsocket/; \
s/redis-server.sock/redis.sock/g; \ s/redis-server.sock/redis.sock/g; \
s/^client-output-buffer-limit pubsub [0-9]+mb [0-9]+mb [0-9]+/client-output-buffer-limit pubsub 0 0 0/ \ s/^client-output-buffer-limit pubsub [0-9]+mb [0-9]+mb [0-9]+/client-output-buffer-limit pubsub 0 0 0/; \
s/^notify-keyspace-events ""$/notify-keyspace-events AKE/ \
' /etc/redis/redis.conf ' /etc/redis/redis.conf
COPY ["supervisord.conf.j2", "/usr/share/sonic/templates/"] COPY ["supervisord.conf.j2", "/usr/share/sonic/templates/"]