What Happens When 20 Programs Poll The Network?
Packetpushers show 198 was a great episode about Network Automation. At one point, Greg asks:
“What happens when you’ve got 20 apps polling one device?”
Well, you might hit the same problem I did:
SECURITY-SSHD-6-INFO_GENERAL : Incoming SSH session rate limit exceeded
I have some Python scripts that poll performance and configuration data from a couple of ASR9Ks, and I was getting some gaps in my data. The scripts run on different polling cycles (some hourly, some every 15 minutes, etc). It wasn’t consistent, but now and then my script would fail to collect any data.
I dug into it, and found that I was hitting the default SSH rate limit of 60 per minute, calculated as 1 per second. Because I couldn’t control the exact scheduling of when my polls ran, I inserted a short random wait timer into some of them. That helped, and I had fewer failures, but it still wasn’t quite right.
So I used the command “ssh server rate-limit 120″ to allow 2 SSH connections per second. That has helped, and now I’m not getting any failures.
But it won’t be pretty if I do have 20 different apps all trying to poll at once.
(Yes, I know, I should Continue reading