vipshop / redis-migrate-tool

A convenient and useful tool for migrating data between redis group.
Apache License 2.0
956 stars 320 forks source link

OOM command not allowed when used memory > maxmemory #24

Open waltari2001 opened 7 years ago

waltari2001 commented 7 years ago

Hi,

I keep getting "-OOM command not allowed when used memory > maxmemory" errors while trying to migrate data from an RDB file to a Redis cluster. The RDB file size is 6GB and some keys could reach over 40MB in size. I do have maxmemory set on the target cluster (500GB).

More from logs: rmt_redis.c:4455 Response from node[10.120.1.1:6379] for REQ_REDIS_SADD is error. rmt_redis.c:4455 Response from node[10.120.1.2:6379] for REQ_REDIS_HMSET is error. rmt_redis.c:4456 msg dump id 0 request 0 len 58 type 128 (err 0) kind 0 result 0 mbuf_count 1 keys_count 0 ... ...

Where 10.120.1.X are the IPs of some of the Redis cluster nodes (target).

Thanks for the help.

Sadek