Add Docker and install step to have Redis discard data when out of memory.

Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
Eric Riggs
2018-07-10 04:48:42 -04:00
parent 27dcc2a7e7
commit 6722394e34
3 changed files with 1740 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -72,6 +72,9 @@ ln -s /usr/lib/arm-linux-gnueabihf/libz.so /usr/lib/ && \
ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib/ \
; fi
# Discard data when Redis runs out of memory
echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf
#####################
# Build image start #
#####################

View File

@@ -134,6 +134,10 @@ Create the supervisor file at ``/etc/supervisor/conf.d/mayan.conf``::
stopwaitsecs = 1
user = mayan
Configure Redis to discard data when it runs out of memory::
echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf
Enable and restart the services [1_]::
systemctl enable supervisor