ERR Background append only file rewriting already in progress: AOF rewrite already in progress(AOF 書換えが既に進行中)
Redis意味
AOF (Append Only File) の書換え (BGREWRITEAOF) を開始しようとしたが、AOF の書換えが既に進行中である。2 つの AOF 書換えを同時に実行することはできない。
原因
以前の BGREWRITEAOF (手動、または auto-aof-rewrite-percentage トリガーによる自動) がまだ実行中に、新しい書換え要求が到着した。大規模なデータセットでは AOF の書換えに長時間かかり、この競合を引き起こすことがある。
対処方法
実行中の書換えが終わるまで待つ。INFO persistence の出力の aof_rewrite_in_progress フィールドを監視する。操作が正当に実行中であれば、別の要求を送信しない。競合が頻繁な場合は、自動書換えのしきい値 (auto-aof-rewrite-percentage/min-size) とディスク I/O の性能を見直す。
同じデータベースの他の項目
- ERR Number of keys can't be greater than number of argsEVAL/EVALSHA: numkeys exceeds argument count(numkeys が引数の数を超えている)
- ERR WATCH inside MULTI is not allowedWATCH inside MULTI is not allowed(MULTI 内の WATCH は許可されない)
- ERR WAIT cannot be used with replica instancesWAIT cannot be used with replica instances(WAIT はレプリカインスタンスでは使用できない)
- IOERR error or timeout reading from target instanceMIGRATE: I/O error or timeout to target(ターゲットへの I/O エラーまたはタイムアウト)
- ERR Error compiling script (new function)Error compiling Lua script(Lua スクリプトのコンパイルエラー)
- ERR FAILOVER requires connected replicas.FAILOVER requires connected replicas(FAILOVER には接続されたレプリカが必要)
- ERR invalid expire time in 'set' commandinvalid expire time in SET(SET の有効期限が無効)