redis:MISCONF Redis is configured to save RDB snapshots

3540 ワード

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
この問題が発生した原因は大体2つある.
(1)ハードディスク容量不足
(2)メモリ容量不足
解決策
(1)ハードディスク領域が不足している場合は、ハードディスク領域を削除する以外に、他の経路に転送することができる
   redis-cli -p port
CONFIG SET dir /tmp/some/directory/other/than/var
CONFIG SET dbfilename temp.rdb
BGSAVE 
(2)    
 
  
echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf
sysctl vm.overcommit_memory=1
    

(1)vm.overcommit_memory

:0

, , :

0: , 。

1: 1 , ,

2: 2 , , swap+50% RAM ,50% overcommit_ratio 。

(2)vm.overcommit_ratio

:50

vm.overcommit_memory=2 , 。