redis奴隶的内存使用突然增加

zf9nrax1  于 2021-06-09  发布在  Redis
关注(0)|答案(0)|浏览(196)

我有1个redis主机和4个从机,每个都有8核和5g内存。我们的结构和用途是:
所有的读操作只能通过dns负载平衡进入从节点,并且从节点上的写操作已被禁用。
每5分钟,我们在主控器中按下或更新一次键
我们和普罗米修斯/格拉法纳一起监视 redis.conf 文件是:

protected-mode no
port 6379
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize no
supervised systemd
pidfile /var/run/redis.pid
loglevel verbose
logfile /var/log/redis/redis.log
databases 16
always-show-logo yes
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir /var/lib/redis
replicaof master-ip 6379
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
replica-priority 100
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
appendonly no
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
lua-time-limit 5000
cluster-enabled no
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
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
hll-sparse-max-bytes 3000
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
dynamic-hz yes
aof-rewrite-incremental-fsync yes
rdb-save-incremental-fsync yes

问题是,当主服务器更新连接的客户机上的从属服务器时,内存使用量就会激增。有时高达3gb,而主节点中只有100mb的数据。当连接的客户机较多时,从机的跳转率较高,当没有连接的客户机时,跳转率仅为零。这里有两个例子。

黄线是主机的内存使用情况。

只是比较一下记忆的大小。主内存的使用是不可见的。间隙是由停机时间造成的。
我不知道,也不知道要监视或检查什么!我唯一的线索是连接的客户端对内存跳跃有直接的影响。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题