You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "903174293 (via GitHub)" <gi...@apache.org> on 2024/08/12 08:49:39 UTC

[D] kvrocks During a 10-minute stress test, the master node became unavailable and reported an error. E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches: [kvrocks]

GitHub user 903174293 created a discussion: kvrocks  During a 10-minute stress test, the master node became unavailable and reported an error.   E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches:

1、kvrocks version 2.7.0
     Node specifications 16C32G
     10 Sharding  3Replica
     worker  8
Key parameters in the configuration file:
**_rocksdb.block_cache_size 4096
rocksdb.row_cache_size 0
rocksdb.max_open_files 8096
rocksdb.write_buffer_size 64
rocksdb.target_file_size_base 128
rocksdb.max_write_buffer_number 4
rocksdb.block_size 16384
max-replication-mb 300
max-io-mb 0
max-db-size 0_**

2、Use the following command to insert data.
_**nohup memtier_benchmark -s x.x.x.x -p 6666 -a xxxxxx --cluster-mode --print-percentiles 50,90,95,99,100 --random-data --randomize --distinct-client-seed --hide-histogram --key-minimum 1 --key-maximum 100000000 --key-prefix="type_string_001_" --command="set __key__ __data__" --command-ratio=1 --command-key-pattern=S -n 10000000 -c 1 -t 1 --data-size-range 32-4096 > logs/${currentTime}/result-${currentTime}-1.log 2>&1 &**_
[createData.txt](https://github.com/user-attachments/files/16579290/createData.txt)

3、For about 10 minutes, some master nodes in the cluster were unavailable, and the main node reported the following error:
E20240808 16:57:31.393215 14244 [replication.cc:146](http://replication.cc:146/)] Write error while sending batch to slave: Connection reset by peer. batches:
E20240808 16:57:31.393215 14244 [replication.cc:146](http://replication.cc:146/)] Write error while sending batch to slave: Connection reset by peer. batches:
No obvious abnormalities in the network, disk, CPU, or memory of the slave nodes.

4、Phenomenon: The client cannot connect to the main node.
![20240812-163707](https://github.com/user-attachments/assets/949a2df0-e90f-4fd4-acff-8a3b20018f9c)
No response packet captured.








GitHub link: https://github.com/apache/kvrocks/discussions/2486

----
This is an automatically sent email for issues@kvrocks.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@kvrocks.apache.org


Re: [D] kvrocks During a 10-minute stress test, the master node became unavailable and reported an error. E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches: [kvrocks]

Posted by "903174293 (via GitHub)" <gi...@apache.org>.
GitHub user 903174293 added a comment to the discussion: kvrocks  During a 10-minute stress test, the master node became unavailable and reported an error.   E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches:





No response packet captured.      root@VM-137-33-ubuntu:/data# tcpdump -i any src host x.x.x.x -v
tcpdump: data link type LINUX_SLL2
tcpdump: listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
16:18:10.157983 eth0  In  IP (tos 0x0, ttl 58, id 38248, offset 0, flags [DF], proto TCP (6), length 60)
    x.x.x.x.39876 > VM-137-33-ubuntu.6666: Flags [S], cksum 0xac7d (correct), seq 2508364785, win 29200, options [mss 1424,sackOK,TS val 3660910233 ecr 0,nop,wscale 7], length 0
16:18:11.160306 eth0  In  IP (tos 0x0, ttl 58, id 38249, offset 0, flags [DF], proto TCP (6), length 60)
    x.x.x.x.39876 > VM-137-33-ubuntu.6666: Flags [S], cksum 0xa892 (correct), seq 2508364785, win 29200, options [mss 1424,sackOK,TS val 3660911236 ecr 0,nop,wscale 7], length 0
16:18:13.164292 eth0  In  IP (tos 0x0, ttl 58, id 38250, offset 0, flags [DF], proto TCP (6), length 60)
    x.x.x.x.39876 > VM-137-33-ubuntu.6666: Flags [S], cksum 0xa0be (correct), seq 2508364785, win 29200, options [mss 1424,sackOK,TS val 3660913240 ecr 0,nop,wscale 7], length 0

GitHub link: https://github.com/apache/kvrocks/discussions/2486#discussioncomment-10311532

----
This is an automatically sent email for issues@kvrocks.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@kvrocks.apache.org


Re: [D] kvrocks During a 10-minute stress test, the master node became unavailable and reported an error. E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches: [kvrocks]

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
GitHub user PragmaTwice edited a comment on the discussion: kvrocks  During a 10-minute stress test, the master node became unavailable and reported an error.   E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches:

Duplicated with #2487. Please avoid spamming : )

GitHub link: https://github.com/apache/kvrocks/discussions/2486#discussioncomment-10311713

----
This is an automatically sent email for issues@kvrocks.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@kvrocks.apache.org


Re: [D] kvrocks During a 10-minute stress test, the master node became unavailable and reported an error. E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches: [kvrocks]

Posted by "903174293 (via GitHub)" <gi...@apache.org>.
GitHub user 903174293 closed a discussion: kvrocks  During a 10-minute stress test, the master node became unavailable and reported an error.   E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches:

1、kvrocks version 2.7.0
     Node specifications 16C32G
     10 Sharding  3Replica
     worker  8
Key parameters in the configuration file:
**_rocksdb.block_cache_size 4096
rocksdb.row_cache_size 0
rocksdb.max_open_files 8096
rocksdb.write_buffer_size 64
rocksdb.target_file_size_base 128
rocksdb.max_write_buffer_number 4
rocksdb.block_size 16384
max-replication-mb 300
max-io-mb 0
max-db-size 0_**

2、Use the following command to insert data.
_**nohup memtier_benchmark -s x.x.x.x -p 6666 -a xxxxxx --cluster-mode --print-percentiles 50,90,95,99,100 --random-data --randomize --distinct-client-seed --hide-histogram --key-minimum 1 --key-maximum 100000000 --key-prefix="type_string_001_" --command="set __key__ __data__" --command-ratio=1 --command-key-pattern=S -n 10000000 -c 1 -t 1 --data-size-range 32-4096 > logs/${currentTime}/result-${currentTime}-1.log 2>&1 &**_
[createData.txt](https://github.com/user-attachments/files/16579290/createData.txt)

3、For about 10 minutes, some master nodes in the cluster were unavailable, and the main node reported the following error:
E20240808 16:57:31.393215 14244 [replication.cc:146](http://replication.cc:146/)] Write error while sending batch to slave: Connection reset by peer. batches:
E20240808 16:57:31.393215 14244 [replication.cc:146](http://replication.cc:146/)] Write error while sending batch to slave: Connection reset by peer. batches:
No obvious abnormalities in the network, disk, CPU, or memory of the slave nodes.

4、Phenomenon: The client cannot connect to the main node.
![20240812-163707](https://github.com/user-attachments/assets/949a2df0-e90f-4fd4-acff-8a3b20018f9c)
No response packet captured.








GitHub link: https://github.com/apache/kvrocks/discussions/2486

----
This is an automatically sent email for issues@kvrocks.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@kvrocks.apache.org


Re: [D] kvrocks During a 10-minute stress test, the master node became unavailable and reported an error. E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches: [kvrocks]

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
GitHub user PragmaTwice closed the discussion with a comment: kvrocks  During a 10-minute stress test, the master node became unavailable and reported an error.   E20240808 16:57:31.393215 14244 replication.cc:146] Write error while sending batch to slave: Connection reset by peer. batches:

Duplicated with #2487. Please don't spam : )

GitHub link: https://github.com/apache/kvrocks/discussions/2486#discussioncomment-10311713

----
This is an automatically sent email for issues@kvrocks.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@kvrocks.apache.org