Description
On Flexible Server, log_checkpoints records the time spent on checkpoints and restartpoints and the number of buffers written. Checkpoints continue when logging is off.
Potential impact
Without these records, it is harder to tell whether frequent checkpoints coincide with heavy disk writes or slow responses.
Remediation
Set log_checkpoints to on. After the next checkpoint completes, compare its duration and buffer count in the collected logs with disk metrics from the same time. Check that the logs remain available for your investigation period.
Examples
The first task targets Single Server, which retired on March 28, 2025. The second requires an existing Flexible Server, credentials that can change its settings, and azure.azcollection 3.18.0 or later.
Before
- name: PostgreSQL 설정 변경
azure.azcollection.azure_rm_postgresqlconfiguration:
resource_group: myResourceGroup
server_name: myServer
name: log_checkpoints
value: "off"
After
- name: PostgreSQL 설정 변경
azure.azcollection.azure_rm_postgresqlflexibleconfiguration:
resource_group: myResourceGroup
server_name: myServer
name: log_checkpoints
value: "on"