Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection timed out occured while dump a big redis instance #13

Open
highkay opened this issue Feb 22, 2013 · 13 comments
Open

Connection timed out occured while dump a big redis instance #13

highkay opened this issue Feb 22, 2013 · 13 comments

Comments

@highkay
Copy link

highkay commented Feb 22, 2013

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?

@delano
Copy link
Owner

delano commented Mar 3, 2013

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

@highkay
Copy link
Author

highkay commented Mar 4, 2013

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).

@delano
Copy link
Owner

delano commented Mar 4, 2013

Do you know how large the key is (estimated)?

@highkay
Copy link
Author

highkay commented Mar 5, 2013

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.

@jaleszek
Copy link

jaleszek commented Nov 8, 2013

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

@shortdudey123
Copy link

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.

@delano
Copy link
Owner

delano commented Jul 29, 2015

Ya, I imagine that's annoying.

@shortdudey123 what's the timeout set to in your redis.conf.

@shortdudey123
Copy link

@delano not sure off the top of my head, but its several hours

@pzhuk
Copy link

pzhuk commented Aug 24, 2015

Same issue for me - timeout after few secs, even if filter is applied in order to dump small amount of keys

@celesteking
Copy link

It's also slow as shit because it doesn't use pipelining.
Look for util elsewhere.

@tianyu4552
Copy link

i have meet the same promblem. How can i resovle it?

@wuhuaxu
Copy link
Contributor

wuhuaxu commented Nov 12, 2018

#26

@jason-gao
Copy link

redis-dump -u :[email protected]:6379 -D -d 3 -c 500 > ./redisprodb3.json

use -c set chunck size,一次500条,可规避timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants