Database engineering topic

Database SRE

Database Site Reliability Engineering, cost optimization, cloud infrastructure, and operational excellence

33 canonical articles

Ola Hallengren's SQL Server Maintenance Solution: Production Setup Guide

Production setup of Ola Hallengren's SQL Server Maintenance Solution: the four jobs that matter, FULL/DIFF/LOG backup cadence for your RPO, DBCC CHECKDB scheduling, IndexOptimize tuning, encryption, and CommandLog-based alerting.

SQL Server13 minMay 27, 2026
Read

PostgreSQL Monitoring with Prometheus and postgres_exporter: A Production Guide

Set up PostgreSQL monitoring with Prometheus and postgres_exporter. Includes install steps, critical alert rules, Grafana dashboard panels, and custom query metrics.

PostgreSQL10 minMar 5, 2026
Read

PostgreSQL 16: New Features Every DBA Should Know

PostgreSQL 16 introduced logical replication from standbys, pg_stat_io, SQL/JSON constructors, COPY improvements, and pg_stat_checkpointer. Full DBA upgrade guide.

PostgreSQL12 minMar 5, 2026
Read

Zero-Downtime Schema Changes in PostgreSQL: Safe DDL Without Locking

Run PostgreSQL schema changes without locking: CREATE INDEX CONCURRENTLY, NOT VALID constraints, expand-contract column type changes, and lock_timeout. Covers pg_repack for table rewrites.

PostgreSQL13 minMar 5, 2026
Read

pg_cron: Scheduling Automated Jobs Inside PostgreSQL

Use pg_cron to schedule SQL jobs inside PostgreSQL. Covers installation, cron syntax, partition maintenance, materialized view refresh, job monitoring, and RDS setup.

PostgreSQL12 minMar 5, 2026
Read

SLO and SLA for Databases: A Practical Framework

Define meaningful SLOs and SLAs for your database tier — latency, availability, durability, and error budgets

12 minJan 12, 2026
Read

Database Incident Response Runbook: From Alert to Resolution

A practical runbook for database incidents — triage, diagnosis, escalation, and post-mortem for MySQL and PostgreSQL

11 minJan 11, 2026
Read

pgBackRest: Enterprise PostgreSQL Backup and Recovery

Configure pgBackRest for full, differential, and WAL archiving backups with S3 storage and point-in-time recovery

PostgreSQL13 minJan 7, 2026
Read

The 2026 Database Apocalypse: Why Your Database Might Explode (And How to Save It)

In 2026, more database versions are hitting end-of-life than any year in recent history.

8 minNov 18, 2025
Read

Database Disaster Recovery Runbook: RTO, RPO, and PITR Procedures

Build a production database DR runbook covering RTO/RPO definitions, failover steps, PITR recovery commands, and a verification checklist. Test it quarterly.

AWS7 minOct 14, 2025
Read

Mastering PostgreSQL Log Management: Configuration, Analysis, and Alerting

PostgreSQL's logging system is powerful but requires careful configuration to be useful in production. Learn how to capture slow queries, connection events, and DDL changes without drowning in noise.

PostgreSQL9 minSep 26, 2025
Read

Database Observability: Metrics, Logs, Traces, and Prometheus Alerting

Build a complete database observability stack with Prometheus metrics, slow query logs, and OpenTelemetry distributed traces. Includes alert rules for replication lag and cache hit rate.

PostgreSQL8 minSep 10, 2025
Read

Database Connection String Security: Secrets Managers and Credential Rotation

Secure database credentials with AWS Secrets Manager, automatic rotation, Kubernetes secrets, and git-secrets scanning. Never hardcode connection strings.

AWS1 minJul 21, 2025
Read

MySQL Binlog-Based Point-in-Time Recovery

Implement MySQL point-in-time recovery using binary logs. Covers binlog configuration, mysqlbinlog replay with stop-datetime, GTID-based filtering, and S3 binlog archival.

MySQL5 minJul 14, 2025
Read

PostgreSQL Disaster Recovery: Backup, Restore, and PITR

Choose PostgreSQL backup and recovery methods from explicit RTO and RPO, preserve continuous WAL, verify manifests, and rehearse isolated restores.

PostgreSQL7 minFeb 19, 2025
Read

MySQL Monitoring with Prometheus and Grafana: Complete Setup Guide

mysqld_exporter exposes 300+ MySQL metrics for Prometheus. Learn to deploy it, configure essential alerting rules for connection saturation and replication lag, and build production dashboards in Grafana.

MySQL7 minJan 6, 2025
Read

PostgreSQL 17 Incremental Backup: pg_basebackup and pg_combinebackup Explained

PostgreSQL 17 finally adds native incremental backup support — allowing subsequent backups to capture only changed blocks since the last full backup.

PostgreSQL9 minFeb 9, 2024
Read

pg_upgrade: Major PostgreSQL Version Upgrades with Minimal Downtime

Use pg_upgrade to migrate between PostgreSQL major versions — upgrade strategies, pre-checks, and rollback plans

PostgreSQL11 minMay 10, 2023
Read

Database Capacity Planning: From Metrics to Growth Projections

Build a data-driven capacity planning process using historical metrics, growth trends, and resource modeling

11 minFeb 21, 2023
Read

DynamoDB to Aerospike: The Cost and Performance Optimization Journey

Migrate from DynamoDB to Aerospike for better cost-performance at scale. Real case study showing 60% cost reduction with improved latency and throughput.

11 minFeb 7, 2023
Read

PostgreSQL Point-in-Time Recovery: WAL Archiving, pg_basebackup, and pgBackRest

PostgreSQL PITR lets you recover your database to any point in time — down to the second — by replaying WAL segments on top of a base backup. Here's how to set it up correctly.

PostgreSQL10 minJan 9, 2023
Read

AWS RDS MySQL Cost Optimization

Reduce AWS RDS MySQL costs by 40-60% with proven optimization strategies. Learn Reserved Instance planning, right-sizing, storage optimization, and read replica strategies.

MySQL4 minDec 6, 2022
Read

AWS RDS PostgreSQL Cost Optimization

Optimize AWS RDS PostgreSQL costs without sacrificing performance. Learn instance sizing, storage class selection, backup strategies, and Multi-AZ optimization.

PostgreSQL5 minNov 8, 2022
Read

Database Backup Strategies: RTO, RPO, and Recovery Planning

RTO and RPO drive backup decisions. This guide covers mysqldump, XtraBackup, pgBackRest, WAL archiving, S3 object lock, and the 3-2-1-1-0 backup rule.

11 minNov 8, 2022
Read

Database Monitoring with Prometheus, Grafana, and PMM

Monitor MySQL and PostgreSQL with Prometheus, Grafana, and PMM. Covers mysqld_exporter, postgres_exporter, alert rules, and production dashboard configuration.

PostgreSQL8 minOct 26, 2022
Read

Database Security Best Practices: Encryption, Access Control, and Auditing

Secure your MySQL and PostgreSQL databases — TLS, at-rest encryption, role-based access, and audit logging

PostgreSQL12 minOct 19, 2022
Read

Setting Up High Availability for Percona Monitoring and Management (PMM)

Running a single PMM server is a single point of failure for your database monitoring. Here's how to set up PMM in an HA configuration with failover and shared storage.

PostgreSQL9 minOct 18, 2022
Read

DynamoDB Cost Optimization: A Comprehensive Guide

Cut DynamoDB costs by 50% or more with capacity mode optimization, TTL strategies, and smart data modeling. Learn on-demand vs provisioned capacity decision frameworks.

AWS15 minSep 20, 2022
Read

Percona Monitoring and Management (PMM): Full Setup Guide

Deploy PMM to get deep MySQL and PostgreSQL visibility — query analytics, dashboards, and alerting in one tool

PostgreSQL11 minSep 6, 2022
Read

Integrating MySQL Maintenance with systemd: Services, Timers, and Scheduling

Most MySQL maintenance tasks still rely on cron, but systemd timers offer better logging, dependency management, and failure handling. Here's how to convert your MySQL maintenance scripts to systemd services.

MySQL8 minJul 10, 2022
Read

XtraBackup: Physical MySQL Backups for Production

Use Percona XtraBackup to take hot physical backups of MySQL InnoDB — setup, verification, and restore steps

MySQL12 minMay 17, 2022
Read

mysqldump vs mysqlpump vs MyDumper: Current Guide

Choose a current MySQL logical backup tool from measured recovery needs, and migrate legacy mysqlpump jobs and archives without risking production data.

MySQL8 minMar 26, 2022
Read

Configuring Efficient MySQL Log Rotation with logrotate

MySQL generates multiple log files that will fill your disk if left unmanaged. Here's how to configure logrotate correctly for MySQL error logs, slow query logs, and binary logs.

MySQL7 minJan 30, 2022
Read