redis-cli restore command with size of more than 512 MB

255 views
Skip to first unread message

Gyanranjan Muduli

unread,
Apr 20, 2021, 7:11:03 AM4/20/21
to Redis DB
Hi Team,

I  am trying  to restore the dump data  with size more than 512 MB, but getting Error :  Connection reset by peer.

i am expecting to restore around 10GB dump data to redis. 

Kindly suggest on this.

Regards
Gyan

sundb

unread,
Apr 20, 2021, 8:22:38 AM4/20/21
to Redis DB
What is your client-query-buffer-limit set to?

Gyanranjan Muduli

unread,
Apr 20, 2021, 9:50:51 AM4/20/21
to redi...@googlegroups.com
it is 1073741824 bytes

Thanks

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/ca440116-be58-4875-91a1-d3c9e8310d6fn%40googlegroups.com.

sundb

unread,
Apr 20, 2021, 10:28:53 AM4/20/21
to Redis DB
timeout 0
client-query-buffer-limit 5gb

Can you set it to this configuration, and then test it again?
Or let me know your reproduction steps, and I will test.

Gyanranjan Muduli

unread,
Apr 21, 2021, 6:15:52 AM4/21/21
to redi...@googlegroups.com
Hi Team,

I  have tried with 5GB as well as 10 GB, but getting  same error.

    cat 523.txt | redis-cli -p 6379 -n 1 -a ****** -x restore 523 0
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
Error: Connection reset by peer


Regards
Gyan

Gyanranjan Muduli

unread,
Apr 21, 2021, 6:21:37 AM4/21/21
to redi...@googlegroups.com
Hi Team,

I  have tried with 5GB as well as 10 GB, but getting  same error.
FYI = 523.txt(it 's dump  data  of size 923 MB taken  from redis  with single key 523)

cat 523.txt | redis-cli -p 6379 -n 1 -a ****** -x restore 523 0
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
Error: Connection reset by peer


Regards
Gyan

Gyanranjan Muduli

unread,
Apr 22, 2021, 6:01:54 AM4/22/21
to redi...@googlegroups.com
Hi Team,

Could  you please help on it.

Regards
Gyan

sundb

unread,
Apr 22, 2021, 6:36:23 AM4/22/21
to redi...@googlegroups.com
Sorry for the late reply.
You can change the configuration ```loglevel verbose```, then you can see the reason for the disconnection.

Gyanranjan Muduli <gyanra...@gmail.com> 于2021年4月21日周三 下午6:21写道:

sundb

unread,
Apr 22, 2021, 8:54:42 AM4/22/21
to redi...@googlegroups.com
Is there a useful disconnection message?

sundb <sund...@gmail.com> 于2021年4月22日周四 下午6:36写道:

Gyanranjan Muduli

unread,
Apr 23, 2021, 8:53:47 AM4/23/21
to redi...@googlegroups.com
Please find below details

871:M 22 Apr 2021 18:15:13.893 - DB 0: 14 keys (0 volatile) in 16 slots HT.
871:M 22 Apr 2021 18:15:13.894 - DB 1: 1 keys (0 volatile) in 4 slots HT.
871:M 22 Apr 2021 18:15:13.894 - DB 2: 6 keys (0 volatile) in 8 slots HT.
871:M 22 Apr 2021 18:15:13.894 - DB 3: 34 keys (0 volatile) in 64 slots HT.
871:M 22 Apr 2021 18:15:13.894 - DB 5: 16 keys (0 volatile) in 16 slots HT.
871:M 22 Apr 2021 18:15:13.894 - DB 6: 79 keys (0 volatile) in 128 slots HT.
871:M 22 Apr 2021 18:15:13.894 - DB 8: 1 keys (0 volatile) in 4 slots HT.
871:M 22 Apr 2021 18:15:13.894 - DB 9: 3992 keys (0 volatile) in 4096 slots HT.
871:M 22 Apr 2021 18:15:13.894 - DB 11: 250 keys (0 volatile) in 256 slots HT.
871:M 22 Apr 2021 18:15:13.923 - Accepted 127.0.0.1:54134
871:M 22 Apr 2021 18:15:18.043 - Protocol error (invalid bulk length) from client: id=6815 addr=127.0.0.1:54134 fd=9 name= age=5 idle=0 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=16384 qbuf-free=16384 obl=42 oll=0 omem=0 events=r cmd=select user=default. Query buffer during protocol error: '$1007655076....0............q.......@d.{..G.zt?...../.5.&@.DP.' (... more 16220 bytes ...) 'y_......c....o...kt>;).#.+I.F.s..5HJ....vH......C...=C..[g3.2...'
871:M 22 Apr 2021 18:15:18.904 - DB 0: 14 keys (0 volatile) in 16 slots HT.
871:M 22 Apr 2021 18:15:18.904 - DB 1: 1 keys (0 volatile) in 4 slots HT.
871:M 22 Apr 2021 18:15:18.905 - DB 2: 6 keys (0 volatile) in 8 slots HT.
871:M 22 Apr 2021 18:15:18.905 - DB 3: 34 keys (0 volatile) in 64 slots HT.
871:M 22 Apr 2021 18:15:18.905 - DB 5: 16 keys (0 volatile) in 16 slots HT.
871:M 22 Apr 2021 18:15:18.905 - DB 6: 79 keys (0 volatile) in 128 slots HT.
871:M 22 Apr 2021 18:15:18.905 - DB 8: 1 keys (0 volatile) in 4 slots HT.
871:M 22 Apr 2021 18:15:18.905 - DB 9: 3992 keys (0 volatile) in 4096 slots HT.
871:M 22 Apr 2021 18:15:18.905 - DB 11: 250 keys (0 volatile) in 256 slots HT.



Thanks

Gyanranjan Muduli

unread,
Apr 23, 2021, 8:54:04 AM4/23/21
to redi...@googlegroups.com
Only getting below

protocol error (invalid bulk length) from client: id=6815 addr=127.0.0.1:54134 fd=9 name= age=5 idle=0 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=16384 qbuf-free=16384 obl=42 oll=0 omem=0 events=r cmd=select user=default. Query buffer during protocol error: '$1007655076....0............q.......@d.{..G.zt?...../.5.&@.DP.' (... more 16220 bytes ...) 'y_......c....o...kt>;).#.+I.F.s..5HJ....vH......C...=C..[g3.2...'


sundb

unread,
Apr 24, 2021, 9:42:13 PM4/24/21
to Redis DB
I almost know why, proto-max-bulk-len 512M, your configuration should be like this, make its value bigger.

Gyanranjan Muduli

unread,
Apr 26, 2021, 4:29:54 AM4/26/21
to redi...@googlegroups.com
It is working when i  increase it to 1GB.
Is there any impact on performance  if we will increase it more ?

Regards
Gyan

sundb

unread,
May 6, 2021, 9:23:48 AM5/6/21
to Redis DB
Is the performance impact you're talking about the users online?
If you just increase proto-max-bulk-len it will not affect the restore speed, it will only affect other connected users.
Reply all
Reply to author
Forward
0 new messages