Open highkay opened 11 years ago
What is the timeout value set in your redis.conf
? Try increasing that. You can do it without editing the config or restarting using redis-cli
:
$ redis-cli
> config get timeout
> config set timeout 120
> config get timeout
0, it is always be 0. Well, other client works well, I guess maybe the huge keys cause the problem(consume too many memory stuff).
Do you know how large the key is (estimated)?
I use "keys *" on a smaller redis instance(around 30,000 results), it works. And on the large one(more than 10,000,000 results return), it failed.
Seems to timeout 0 doesn't work as assumed. When I'm setting to 0 I'm getting many timeouts (from other clients also), when set to 120 works more stable ... strange
Having this issue when dumping a keyspace of 8 million. Timeout is set for a huge number but redis-dump
times out after a couple seconds.
Ya, I imagine that's annoying.
@shortdudey123 what's the timeout set to in your redis.conf
.
@delano not sure off the top of my head, but its several hours
Same issue for me - timeout after few secs, even if filter is applied in order to dump small amount of keys
It's also slow as shit because it doesn't use pipelining. Look for util elsewhere.
i have meet the same promblem. How can i resovle it?
redis-dump -u :pass@127.0.0.1:6379 -D -d 3 -c 500 > ./redisprodb3.json
use -c set chunck size,一次500条,可规避timeout
When I dump a 10,000,000 keys redis instance into a json, I got a "Connection timed out". I wonder the issue may caused by command "keys", would it be some hot fix in a near future?