Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe

by haukex (Archbishop)
on Sep 14, 2020 at 11:42 UTC ( [id://11121724]=note: print w/replies, xml ) Need Help??


in reply to packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe

That error means that the ssh connection was broken, and it doesn't really have anything to do with Perl. It could be for lots of different reasons, but often with SSH, the connection is dropped due to inactivity - if you're doing 20k devices from 16 processes, it's possible one of them is getting starved. Some commonly given advice for this issue is to put the following in your ~/.ssh/config:

Host * ServerAliveInterval 60

However, with this many connections to this many devices, it's also possible the issue is somewhere else, and that it either has to do with the large amount of connections you're opening, or that those devices you're having trouble with actually have issues on their end. You can try running a Wireshark trace and then filtering by IP afterwards with the IPs that were giving you trouble, so you can possibly get an idea that way.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121724]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-23 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found