설명
Flexible Server의 log_checkpoints를 켜면 체크포인트와 재시작점이 기록한 버퍼 수와 소요 시간을 확인할 수 있습니다. 로깅을 꺼도 체크포인트는 계속 실행됩니다.
잠재적 영향
이 기록이 없으면 디스크 쓰기가 몰린 시점이나 응답 지연을 체크포인트 빈도와 비교하기 어렵습니다.
해결 방법
log_checkpoints를 on으로 설정하세요. 다음 체크포인트가 끝나면 수집한 로그의 소요 시간과 버퍼 수를 같은 시점의 디스크 지표와 비교하세요. 장애를 조사할 때까지 기록이 보존되는지도 확인하세요.
예시
첫 작업은 2025년 3월 28일 종료된 Single Server용입니다. 두 번째 작업에는 기존 Flexible Server, 해당 서버의 설정을 변경할 인증 정보, azure.azcollection 3.18.0 이상이 필요합니다.
변경 전
yaml
- name: PostgreSQL 설정 변경
azure.azcollection.azure_rm_postgresqlconfiguration:
resource_group: myResourceGroup
server_name: myServer
name: log_checkpoints
value: "off"
변경 후
yaml
- name: PostgreSQL 설정 변경
azure.azcollection.azure_rm_postgresqlflexibleconfiguration:
resource_group: myResourceGroup
server_name: myServer
name: log_checkpoints
value: "on"