Running Out of Ports: Ephemeral Port Exhaustion Under Outbound Load
Under a load test our service started throwing 'cannot assign requested address' even though every machine had spare CPU, memory, and bandwidth. We were not out of capacity in any way a dashboard tracks. We were out of source ports, because every outbound request opened a fresh connection and left a pile of sockets sitting in TIME_WAIT.