설명
Azure PostgreSQL은 한 IP 주소에서 잘못된 비밀번호로 반복 접속하면 해당 주소의 새 연결을 일시적으로 차단할 수 있습니다.
잠재적 영향
오래된 비밀번호로 재시도하는 클라이언트 때문에 같은 IP 주소를 공유하는 정상 클라이언트의 접속도 막힐 수 있습니다.
해결 방법
지원되는 Flexible Server에서 connection_throttle.enable을 on으로 설정하세요. 네트워크 접근을 제한하고 인증 실패를 모니터링해 오래된 자격 증명을 수정하세요. 정상 사용자의 접속도 확인하세요. 일반 동시 연결 수는 연결 풀과 용량 제한으로 관리하세요.
예시
첫 번째는 지원이 종료된 Single Server의 connection_throttling 설정입니다. 두 번째는 기존 Flexible Server에 적용하며 azure.azcollection 3.18.0 이상이 필요합니다.
변경 전
yaml
- name: PostgreSQL 설정 변경
azure.azcollection.azure_rm_postgresqlconfiguration:
resource_group: myResourceGroup
server_name: myServer
name: connection_throttling
value: "off"
변경 후
yaml
- name: PostgreSQL 설정 변경
azure.azcollection.azure_rm_postgresqlflexibleconfiguration:
resource_group: myResourceGroup
server_name: myServer
name: connection_throttle.enable
value: "on"