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

"read: connection reset by peer" error under *moderate* load #8822

Closed
zarmin opened this issue Nov 6, 2017 · 4 comments
Closed

"read: connection reset by peer" error under *moderate* load #8822

zarmin opened this issue Nov 6, 2017 · 4 comments

Comments

@zarmin
Copy link

zarmin commented Nov 6, 2017

I see these error messages in the console under moderate load (more than 10 write / sec)

2017-11-06 11:03:23.845682 I | etcdserver/api/v3rpc: transport: http2Server.HandleStreams failed to read frame: read tcp 10.156.0.4:2379->10.156.0.4:55152: read: connection reset by peer
2017-11-06 11:03:23.865135 I | etcdserver/api/v3rpc: transport: http2Server.HandleStreams failed to read frame: read tcp 10.156.0.4:2379->10.156.0.4:55164: read: connection reset by peer
2017-11-06 11:03:23.957875 I | etcdserver/api/v3rpc: transport: http2Server.HandleStreams failed to read frame: read tcp 10.156.0.4:2379->10.156.0.4:55218: read: connection reset by peer
2017-11-06 11:03:23.982248 I | etcdserver/api/v3rpc: transport: http2Server.HandleStreams failed to read frame: read tcp 10.156.0.4:2379->10.156.0.4:55230: read: connection reset by peer
2017-11-06 11:03:24.051271 I | etcdserver/api/v3rpc: transport: http2Server.HandleStreams failed to read frame: read tcp 10.156.0.4:2379->10.156.0.4:55272: read: connection reset by peer
2017-11-06 11:03:24.071915 I | etcdserver/api/v3rpc: transport: http2Server.HandleStreams failed to read frame: read tcp 10.156.0.4:2379->10.156.0.4:55284: read: connection reset by peer
2017-11-06 11:03:24.081377 I | etcdserver/api/v3rpc: transport: http2Server.HandleStreams failed to read frame: read tcp 10.156.0.4:2379->10.156.0.4:55290: read: connection reset by peer

The values are successfully written and the cluster's healthy, but I worry about these errors.
The error is only present when using version 3.2.x, with 2.2.5 I have no errors.
The network is stable.

Version:

etcd Version: 3.2.0
Git SHA: 66722b1
Go Version: go1.8.3
Go OS/Arch: linux/amd64

Cluster setup shell script:

TOKEN=token-01
CLUSTER_STATE=new
NAME_1=machine-1
NAME_2=machine-2
NAME_3=machine-3
HOST_1=10.156.0.4
HOST_2=10.156.0.5
HOST_3=10.156.0.3

THIS_NAME=${NAME_1}
THIS_IP=${HOST_1}

CLUSTER=${NAME_1}=http://${HOST_1}:2380,${NAME_2}=http://${HOST_2}:2380,${NAME_3}=http://${HOST_3}:2380

./etcd --data-dir=data.etcd --name ${THIS_NAME} \
	--initial-advertise-peer-urls http://${THIS_IP}:2380 --listen-peer-urls http://${THIS_IP}:2380 \
	--advertise-client-urls http://${THIS_IP}:2379 --listen-client-urls http://${THIS_IP}:2379 \
	--initial-cluster ${CLUSTER} \
	--initial-cluster-state ${CLUSTER_STATE} --initial-cluster-token ${TOKEN}

(https://github.com/coreos/etcd/blob/master/Documentation/op-guide/clustering.md)

@nvtkaszpir
Copy link

Check your clients which connects to etcd. We've seen this when client tried to fetch too much data via grpc ( usually over 4MB).

@xiang90
Copy link
Contributor

xiang90 commented Dec 21, 2017

how can i reproduce this issue?

@xiang90
Copy link
Contributor

xiang90 commented Jan 6, 2018

@zarmin kindly ping. if there is no response, i will close this issue due to low activity.

@xiang90 xiang90 closed this as completed Jan 8, 2018
@SaranBalaji90
Copy link

@zarmin may be this could be related to grpc/grpc-go#1062

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

No branches or pull requests

4 participants