forked from Pidoko257/proxypay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredis.conf
More file actions
52 lines (41 loc) · 1.43 KB
/
Copy pathredis.conf
File metadata and controls
52 lines (41 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Redis Configuration with AOF (Append Only File) Persistence
# This configuration ensures data persistence across container restarts
# Enable AOF persistence
appendonly yes
# AOF filename
appendfilename "appendonly.aof"
# Set the fsync policy for AOF
# Options: always, everysec, no
# - always: fsync after every write (safest, slowest)
# - everysec: fsync once per second (good balance, default)
# - no: let OS handle fsync (fastest, less safe)
appendfsync everysec
# If AOF fsync is set to always or everysec, prevent fsync during a heavy write load
# Setting this to yes may improve performance by preventing fsync blocking
no-appendfsync-on-rewrite no
# Auto-rewrite the AOF file when it reaches a percentage of the previous size
auto-aof-rewrite-percentage 100
# Auto-rewrite the AOF file when it reaches this absolute size in bytes
auto-aof-rewrite-min-size 64mb
# Hybrid RDB-AOF format (Redis 7.0+)
# This enables the new hybrid format which combines RDB and AOF benefits
aof-use-rdb-preamble yes
# Default save policy (RDB snapshotting) - disabled in favor of AOF
# save ""
# Or keep minimal snapshots:
save 900 1
save 300 10
save 60 10000
# General settings
databases 16
maxmemory 256mb
maxmemory-policy allkeys-lru
timeout 0
tcp-keepalive 300
# Logging
loglevel notice
logfile ""
# Client output buffer limits
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60