Showing posts with the label 동시성 프로그래밍

Python Asyncio 블로킹: Event loop 행(Hang) 현상, run_in_executor로 해결한 실전 기록

금요일 오후 4시, 잘 돌아가던 FastAPI 기반의 마이크로서비스가 갑자기 504 Gateway Timeout을 뱉어내기 시작했습니다. CPU 사용량은 100%를 치지 않았는데도 요청 처리가 지연되더니, 급기야 Kubernetes의 Liveness Probe조차 응답하지 못해 파드(Pod)가 재시작되는 현상이 반복되었습니다. 로그에는 간헐적으로 Ru…
Python Asyncio 블로킹: Event loop 행(Hang) 현상, run_in_executor로 해결한 실전 기록
OlderHomeNewest