Save redis 7 redis.conf and patch to disable persistence.
cat <<EOF >redis.conf.patch
--- redis.conf 2024-03-11 17:54:48.729877879 +0100
+++ redis.patched.conf 2024-03-11 16:42:13.190114420 +0100
@@ -84,7 +84,7 @@
# You will also need to set a password unless you explicitly disable protected
# mode.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-bind 127.0.0.1 -::1
+#bind 127.0.0.1 -::1
# By default, outgoing connections (from replica to master, from Sentinel to
# instances, cluster bus, etc.) are not bound to a specific local address. In
@@ -108,7 +108,7 @@
# By default protected mode is enabled. You should disable it only if
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured.
-protected-mode yes
+protected-mode no
# Redis uses default hardened security configuration directives to reduce the
# attack surface on innocent users. Therefore, several sensitive configuration
@@ -421,7 +421,7 @@
# Snapshotting can be completely disabled with a single empty string argument
# as in following example:
#
-# save ""
+save ""
#
# Unless specified otherwise, by default Redis will save the DB:
# * After 3600 seconds (an hour) if at least 1 change was performed
@@ -1435,8 +1435,8 @@
# If unsure, use "everysec".
# appendfsync always
-appendfsync everysec
-# appendfsync no
+# appendfsync everysec
+appendfsync no
# When the AOF fsync policy is set to always or everysec, and a background
# saving process (a background save or AOF log background rewriting) is
EOF
Test setup
Redis Node
Node type -> m5.2xlarge EC2 instance (x86_64, 8vCPU, 26GiB memory, Enhanced I/O, Enhanced I/O Multiplexing)
eu-north-1 (stockholm)
amazon linux 2023 AMI
Save redis 7
redis.conf
and patch to disable persistence.Apply the patch
Run Redis 7.0.7 with the custom redis configuration and listening on `0.0.0.0:6379''
Limtador and Driver node
1 EC2 instance
eu-north-1 (stockholm)
amazon linux 2023 AMI
type: c7i xlarge 4vCPU 8Gib Memory
Limits designed to never hit the threshold, so all requests increment the counter.
Results