Network#002

고속 HTTP 요청으로 인한 포트 고갈 장애

port-exhaustionsysctltcpephemeral-port

상황

서버에서 실행 중인 web-scraper 서비스가 연속적으로 HTTP 요청을 보내고 있습니다. 최근 연결 실패가 빈번하게 발생하며, 로그에 HTTP 상태 코드 000(연결 불가)이 기록되고 있습니다. 네트워크는 정상이고 원격 서버도 접근 가능한 상태입니다. 원인을 분석하고 해결하세요.

제공 데이터

 web-scraper.service - Web Scraper Service
     Active: active (running) since Mon 2026-03-02 08:00:00 UTC; 2 days ago
   Main PID: 3456 (scraper)

Mar 04 10:15:01 server scraper[3456]: HTTP Status: 000 - Connection failed to https://example.com
Mar 04 10:15:01 server scraper[3456]: HTTP Status: 000 - Connection failed to https://example.org
Mar 04 10:15:02 server scraper[3456]: Error: Cannot assign requested address
해결 노트