From d083d7e79cd9614a8874a0301ff7466ee244de34 Mon Sep 17 00:00:00 2001 From: pavel-shirshov Date: Wed, 26 Apr 2017 11:09:58 -0700 Subject: [PATCH] [database]: Remove hard/soft limits for client-output-buffer in redis (#539) * Remove hard/soft limits for client-output-buffer in redis Otherwise when we have a lot of updates from orchagent to syncd latter one can't process queues fast enough and redic-database disconnect both orchagent and syncd. orchagent and syncd doesn't have logic to deal with it and just crash --- dockers/docker-database/Dockerfile.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockers/docker-database/Dockerfile.j2 b/dockers/docker-database/Dockerfile.j2 index a213dd0790..17a416dae6 100644 --- a/dockers/docker-database/Dockerfile.j2 +++ b/dockers/docker-database/Dockerfile.j2 @@ -28,7 +28,8 @@ RUN sed -ri 's/^(save .*$)/# \1/g; s/^daemonize yes$/daemonize no/; \ s/^logfile .*$/logfile ""/; \ s/^# syslog-enabled no$/syslog-enabled no/; \ - s/^# unixsocket/unixsocket/ \ + s/^# unixsocket/unixsocket/; \ + s/^client-output-buffer-limit pubsub [0-9]+mb [0-9]+mb [0-9]+/client-output-buffer-limit pubsub 0 0 0/ \ ' /etc/redis/redis.conf ENTRYPOINT ["/usr/bin/redis-server", "/etc/redis/redis.conf"]