⭐️ Amazon Web Service/Amazon RDS

[Aurora Postgresql] Max_connections

mini_world 2022. 7. 27. 19:51

aurora postgresql max_connections

AuroraPostgresql의 경우 인스턴스의 메모리를 기준으로 max_connections 를 할당합니다. (파라메터에서 수정 가능)

  • 계산식: DBInstanceClassMemory/9531392
    예) 인스턴스의 메모리가 4GiB인 경우, 4*1024*1024*1024/9531392 = 450

  • 쿼리문: select * from pg_settings where name = 'max_connections';

계산식하고 쿼리문으로 나온 값하고 차이가 있는데, 이것은 이진수때문이리라.. 

인스턴스 타입 vcpu 메모리 계산식-커넥션수 쿼리문-커넥션수
db.t3.medium 2 4 450 405
db.t3.lage 2 8 901 844
db.r6i.large 2 16 1802 1713

 

* 공식문서

 

Amazon Aurora PostgreSQL 관리 - Amazon Aurora

이 페이지에 작업이 필요하다는 점을 알려 주셔서 감사합니다. 실망시켜 드려 죄송합니다. 잠깐 시간을 내어 설명서를 향상시킬 수 있는 방법에 대해 말씀해 주십시오.

docs.aws.amazon.com