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

frequent broken pipes when reading from/writing to queues #207

Closed
djmally opened this issue Apr 12, 2017 · 4 comments
Closed

frequent broken pipes when reading from/writing to queues #207

djmally opened this issue Apr 12, 2017 · 4 comments

Comments

@djmally
Copy link

djmally commented Apr 12, 2017

Hi folks,

My team develops a distributed web fuzzing tool in Go, & we use NSQ as our message queueing system, using the go-nsq client. We've been seeing very high rates of messages like these in our logs recently, and wondered if you might have more insight, as it's very unclear to us what's causing this to happen:

error sending RDY 0 - write tcp 10.82.11.114:7886->10.82.11.71:4153: write: broken pipe
IO error - write tcp 10.82.11.114:7886->10.82.11.71:4153: write: broken pipe

We almost always see a message like draining... waiting for 1 messages in flight surrounding these messages.

We're running 8 nsqd nodes and 1 nsqlookupd instance, and running NSQ version 0.3.8. We've set the following nsqd configurations:

exec ./bin/nsqd \
      -msg-timeout="600s" \
      -max-heartbeat-interval=10m0s \
      -max-msg-size=15728640  \
      -max-output-buffer-size=15728640 \
      -max-rdy-count=20000 \
      -mem-queue-size=10 \
      -sync-every=20000 \
      -tls-required=true \
end script

It seems like this also might be related to #199

@ploxiln
Copy link
Member

ploxiln commented Apr 12, 2017

TCP connections are being unexpectedly closed. It's possible that you have a firewall or NAT killing your connections after a few minutes of inactivity. Try setting your heartbeat interval back down to the default 30 seconds.

@mreiferson
Copy link
Member

Can you provide any more logs or reproducible setup?

@mreiferson mreiferson changed the title Very frequent broken pipes when reading from/writing to queues consumer: frequent broken pipes when reading from/writing to queues Apr 15, 2017
@mreiferson mreiferson changed the title consumer: frequent broken pipes when reading from/writing to queues frequent broken pipes when reading from/writing to queues Apr 15, 2017
@mreiferson
Copy link
Member

This indeed might be related to #199, see #199 (comment)

@djmally
Copy link
Author

djmally commented Apr 21, 2017

Closing this & moving discussion to #199

@djmally djmally closed this as completed Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants