From 23d8921d16bdef1e455cc31fa536610bf5c18279 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 25 Jun 2018 22:20:33 +0200 Subject: [PATCH] Adding maxclients support --- dicos/90_redis.xml | 3 +++ tmpl/redis-slave.conf | 2 +- tmpl/redis.conf | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dicos/90_redis.xml b/dicos/90_redis.xml index 78cc3a3..42dcab7 100644 --- a/dicos/90_redis.xml +++ b/dicos/90_redis.xml @@ -87,6 +87,9 @@ + + 10000 + 512 diff --git a/tmpl/redis-slave.conf b/tmpl/redis-slave.conf index b4f6e0e..0bd2772 100644 --- a/tmpl/redis-slave.conf +++ b/tmpl/redis-slave.conf @@ -291,7 +291,7 @@ dir /var/lib/redis # Once the limit is reached Redis will close all the new connections sending # an error 'max number of clients reached'. # -# maxclients 10000 +maxclients %%redisMaxClients # Don't use more memory than the specified amount of bytes. # When the memory limit is reached Redis will try to remove keys diff --git a/tmpl/redis.conf b/tmpl/redis.conf index 13c42ac..21ab54a 100644 --- a/tmpl/redis.conf +++ b/tmpl/redis.conf @@ -295,7 +295,7 @@ dir /var/lib/redis # Once the limit is reached Redis will close all the new connections sending # an error 'max number of clients reached'. # -# maxclients 10000 +maxclients %%redisMaxClients # Don't use more memory than the specified amount of bytes. # When the memory limit is reached Redis will try to remove keys