AWS

AWS RDS connection 옵션 확인하기

Junuuu 2023. 11. 25. 00:01
반응형

개요

[53300] FATAL: remaining connection slots are reserved for non-replication superuser and rds_superuser connections

RDS에 접근하기 위해 User와 Password를 입력하였는데 자꾸 이런 에러가 발생했다..

배포한 서버에서도 connection이 없다는 warn로그가 발생..

 

저 에러는 왜 발생하는 거지?

aws docs에 따르면 max connection보다 커넥션을 더 생성할 수 없어서 발생합니다.

 

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Managing.html#AuroraPostgreSQL.Managing.MaxConnections

 

Managing Amazon Aurora PostgreSQL - Amazon Aurora

If your applications frequently open and close connections, or keep a large number of long-lived connections open, we recommend that you use Amazon RDS Proxy. RDS Proxy is a fully managed, highly available database proxy that uses connection pooling to sha

docs.aws.amazon.com

 

AWS RDS의 Connection 수 확인하기

현재 391개의 connection이 사용 중

 

 

 

AWS RDS 파라미터 그룹 옵션

AWS RDS 파마리터그룹 - 기본값으로 설정되어 있음 LEAST(DBInstanceClassMemory/9531392,5000)
현재 사용하는 RDS는  db.t4g.medium로 4GB
 
DBInstanceClassMemory/953192와 5000개중 작은값으로 선택됩니다.
 

 

 

 

 

참고자료