PostgresqlSslCompressionActive #
Database connections with SSL compression enabled. This may add significant jitter in replication delay. Replicas should turn off SSL compression via sslcompression=0
in recovery.conf
.
Alert Rule
alert: PostgresqlSslCompressionActive
annotations:
description: |-
Database connections with SSL compression enabled. This may add significant jitter in replication delay. Replicas should turn off SSL compression via `sslcompression=0` in `recovery.conf`.
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/postgres-exporter/postgresqlsslcompressionactive/
summary: Postgresql SSL compression active (instance {{ $labels.instance }})
expr: sum(pg_stat_ssl_compression) > 0
for: 0m
labels:
severity: critical
Here is a runbook for the Prometheus alert rule PostgresqlSslCompressionActive
:
Meaning #
This alert is triggered when SSL compression is active on a PostgreSQL instance. SSL compression can add significant jitter to replication delay, which can impact the performance and reliability of the database.
Impact #
The impact of this alert is high, as it can lead to:
- Increased latency and variability in database replication
- Decreased performance and throughput of the database
- Potential data inconsistencies and errors due to delayed replication
Diagnosis #
To diagnose the issue, follow these steps:
- Check the PostgreSQL instance configuration to confirm that SSL compression is enabled.
- Verify that the
sslcompression
parameter is set to a non-zero value in therecovery.conf
file. - Review database performance metrics to identify any signs of replication delay or inconsistency.
- Check the PostgreSQL error logs for any related errors or warnings.
Mitigation #
To mitigate the issue, follow these steps:
- Update the
recovery.conf
file to setsslcompression=0
to disable SSL compression. - Restart the PostgreSQL instance to apply the configuration change.
- Monitor database performance metrics to ensure that replication delay and inconsistency have been resolved.
- Verify that the alert has been resolved and the database is operating normally.
Note: It is recommended to test the changes in a non-production environment before applying them to production systems.