Team/난감했던 이슈들
[ AWS ] [Warning] Aborted connection xxx to db: '<database name>' user: '<user name>' host: '<host IP>' (Got an error reading communication packets)
HEON.D
2023. 8. 30. 02:51
[Warning] Aborted connection xxx to db: '<database name>' user: '<user name>' host: '<host IP>' (Got an error reading communication packets)
https://repost.aws/knowledge-center/rds-mysql-communication-packet-error
- 클라이언트 또는 드라이버 비호환성
- 유휴 연결을 닫거나 연결을 차단할 수 있는 방화벽 또는 프록시.
- 클라이언트-서버 연결이 잘못 종료되어 RDS for MySQL 내에서 휴면 연결 수가 많아졌습니다.
- 연결을 부적절하게 종료하는 클라이언트 애플리케이션입니다. 연결이 일정 시간 동안 유휴 상태로 유지되면 MySQL은 해당 연결을 강제로 닫습니다. 그러면 중단된 연결 메시지가 표시됩니다.
- wait_timeout 또는 Interactive_timeout 임계값을 초과하는 유휴 연결입니다 .
- 연결 패킷을 얻을 때 connect_timeout 초 임계값을 초과하는 클라이언트 연결입니다 .
- net_write_timeout 및 net_read_timeout 과 같은 매개변수의 값이 충분하지 않습니다 .
- max_allowed_packet 매개변수 값 이 초과되었습니다. 값이 너무 작거나 쿼리에 MySQL용 RDS에 할당된 것보다 더 많은 메모리가 필요한 경우 중단된 연결 경고가 트리거됩니다.
파라미터 수정
max_allowed_packet
connect_timeout
wait_timeout
추가링크
https://dev.mysql.com/doc/refman/8.0/en/communication-errors.html