Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 6b8906b

Browse files
committed
feat: Optimized config
1 parent 50663fb commit 6b8906b

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

redis/append.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ appenddirname "append"
5454
#
5555
# If unsure, use "everysec".
5656

57-
appendfsync everysec
57+
appendfsync no
5858

5959
# When the AOF fsync policy is set to always or everysec, and a background
6060
# saving process (a background save or AOF log background rewriting) is

redis/network.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ port 6379
5353
# will silently truncate it to the value of /proc/sys/net/core/somaxconn so
5454
# make sure to raise both the value of somaxconn and tcp_max_syn_backlog
5555
# in order to get the desired effect.
56-
tcp-backlog 1024
56+
tcp-backlog 4096
5757

5858
# Unix socket.
5959
#
@@ -82,4 +82,4 @@ timeout 0
8282
#
8383
# A reasonable value for this option is 300 seconds, which is the new
8484
# Redis default starting with Redis 3.2.1.
85-
tcp-keepalive 300
85+
tcp-keepalive 0

redis/snapshots.conf

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
# like in the following example:
2121
#
2222
# save ""
23-
save 300 1
24-
save 150 10
25-
save 30 10000
23+
save 3600 1 300 100 60 10000
2624

2725
# By default Redis will stop accepting writes if RDB snapshots are enabled
2826
# (at least one save point) and the latest background save failed.
@@ -43,7 +41,7 @@ stop-writes-on-bgsave-error yes
4341
# By default compression is enabled as it's almost always a win.
4442
# If you want to save some CPU in the saving child set it to 'no' but
4543
# the dataset will likely be bigger if you have compressible values or keys.
46-
rdbcompression yes
44+
rdbcompression no
4745

4846
# Since version 5 of RDB a CRC64 checksum is placed at the end of the file.
4947
# This makes the format more resistant to corruption but there is a performance
@@ -52,7 +50,7 @@ rdbcompression yes
5250
#
5351
# RDB files created with checksum disabled have a checksum of zero that will
5452
# tell the loading code to skip the check.
55-
rdbchecksum yes
53+
rdbchecksum no
5654

5755
# The filename where to dump the DB
5856
dbfilename REPLACE_ME.rdb

0 commit comments

Comments
 (0)