結果バックアップバックエンドと同様に、ブローカのURL(タスクを受け取るため)としてセリスワーカーサーバーを使用します。セロリのワーカーサーバーを起動しているときにMISCONF redisの問題を診断できません
BROKER_URL = 'redis://localhost:6379/2' CELERY_RESULT_BACKEND = 'redis://localhost:6379/2' app = Celery('myceleryapp', broker=BROKER_URL,backend=CELERY_RESULT_BACKEND)
私はいくつかの点で、私は悪名高いMISCONFのRedisのエラーとセロリのワーカープロセスの終了を受信するまで、ワーカープロセスは、Redisのキューから自分のタスクの処理を開始celery -A myceleryapp worker -l info -c 8
を使用してセロリワーカーサーバーを起動します。
Unrecoverable error: ResponseError('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.',)
/var/log/redis
にRedisのログファイルをチェックし、ファイルの末尾には、以下の
24745:C 19 Aug 09:20:26.169 * RDB: 0 MB of memory used by copy-on-write
1590:M 19 Aug 09:20:26.247 * Background saving terminated with success
1590:M 19 Aug 09:25:27.080 * 10 changes in 300 seconds. Saving...
1590:M 19 Aug 09:25:27.081 * Background saving started by pid 25397
25397:C 19 Aug 09:25:27.082 # Write error saving DB on disk: No space left on device
1590:M 19 Aug 09:25:27.181 # Backgroun1590:M 19 Aug 09:51:03.042 * 1 changes in 900 seconds. Saving...
1590:M 19 Aug 09:51:03.042 * Background saving started by pid 26341
26341:C 19 Aug 09:51:03.405 * DB saved on disk
26341:C 19 Aug 09:51:03.405 * RDB: 22 MB of memory used by copy-on-write
1590:M 19 Aug 09:51:03.487 * Background saving terminated with success
dump.rdbファイルが/var/lib/redis/dump.rdb
に書き込まれている持っています。 ログにはNo space left on device
と報告されているので、/var
がマウントされているディスクスペースを確認しましたが、十分なスペースが残っているようです(1.2GB
)。
十分なディスク容量がある場合は、このエラーの根本的な原因をどのように解決できますか?もちろん、このエラーが発生しないようにするには、私はconfig set stop-writes-on-bgsave-error no
をredis-cliに設定することができました。しかし、私はこのエラーの根本的な原因に行きたいです。助けや指針は?
そう思われますが、いいえ。 swapon -sは '/ dev/sdb1 partition 7811068 1966056 -1'と '/ buf/swap1 file 25165820 204128 -2'を返します。私の '/ var'はrdbと空きディスクを持つ '/ dev/sdb6'スペース。 – hAcKnRoCk