mirror of
https://git.oceanpay.cc/danial/kami_apple_exchage.git
synced 2025-12-18 21:23:49 +00:00
Remove distributed crawler system and refactor backend to focus on Apple Gift Card Exchange functionality. Update deployment configurations and dependencies accordingly.
62 lines
996 B
Plaintext
62 lines
996 B
Plaintext
# Redis配置文件 - 针对分布式爬虫系统优化
|
|
|
|
# 基本配置
|
|
bind 0.0.0.0
|
|
port 6379
|
|
timeout 0
|
|
tcp-keepalive 300
|
|
|
|
# 内存配置
|
|
maxmemory 512mb
|
|
maxmemory-policy allkeys-lru
|
|
|
|
# 持久化配置
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
|
|
# AOF配置
|
|
appendonly yes
|
|
appendfsync everysec
|
|
no-appendfsync-on-rewrite no
|
|
auto-aof-rewrite-percentage 100
|
|
auto-aof-rewrite-min-size 64mb
|
|
|
|
# 日志配置
|
|
loglevel notice
|
|
logfile ""
|
|
|
|
# 客户端配置
|
|
maxclients 10000
|
|
|
|
# 慢查询日志
|
|
slowlog-log-slower-than 10000
|
|
slowlog-max-len 128
|
|
|
|
# 数据库数量
|
|
databases 16
|
|
|
|
# 安全配置
|
|
# requirepass your_password_here
|
|
|
|
# 网络配置
|
|
tcp-backlog 511
|
|
|
|
# 内存使用优化
|
|
hash-max-ziplist-entries 512
|
|
hash-max-ziplist-value 64
|
|
list-max-ziplist-size -2
|
|
list-compress-depth 0
|
|
set-max-intset-entries 512
|
|
zset-max-ziplist-entries 128
|
|
zset-max-ziplist-value 64
|
|
|
|
# 分布式锁优化
|
|
lua-time-limit 5000
|
|
|
|
# 键空间通知 (用于监控)
|
|
notify-keyspace-events Ex
|
|
|
|
# 延迟监控
|
|
latency-monitor-threshold 100
|