Articles & Tutorials

Blog

Real-world knowledge from 100+ production databases. No fluff, no theory — just what actually works.

AllPostgreSQLMySQLMongoDBHigh AvailabilityMigrationMonitoringAutomationPerformance
# patronictl list
+ Cluster: pg-prod
pg-01 | Leader | running
pg-02 | Replica| running
PostgreSQLHAMay 2025

PostgreSQL HA with Patroni + HAProxy + PgBouncer: complete setup guide

Step-by-step guide to building a production-grade PostgreSQL HA cluster with automated failover, connection pooling, and load balancing.

YJ
Yosef Jeffri
Read more →
SELECT count(*), state
FROM pg_stat_activity
GROUP BY state;
-- active: 147
OperationsScaleApr 2025

Managing 100+ production PostgreSQL instances: patterns that scale

Operational patterns, automation strategies, and lessons learned from managing over 100 PostgreSQL instances across multiple environments.

PW
Patria Wineka
Read more →
-- Pre-migration check
Schema: compatible ✓
Data types: mapped ✓
Stored procs: 12 found
MigrationOracleMar 2025

Oracle to PostgreSQL: lessons from a 250GB banking database

What we learned migrating a 250GB Oracle database to PostgreSQL — schema compatibility, data type mapping, and post-migration tuning.

YJ
Yosef Jeffri
Read more →
# prometheus scrape
job: postgres_exporter
targets: [":9187"]
interval: 15s
MonitoringGrafanaFeb 2025

Building a complete PostgreSQL observability stack with Grafana + Prometheus

How to set up end-to-end database monitoring — from metrics collection to alerting — using open source tools that actually work in production.

PW
Patria Wineka
Read more →
EXPLAIN ANALYZE
Seq Scan on orders
cost=0..89432.00
→ Index Scan: 0.08ms
PerformanceTuningJan 2025

PostgreSQL slow query analysis: from EXPLAIN to fix in production

A practical walkthrough of identifying and fixing slow queries using EXPLAIN ANALYZE — with real examples from a high-traffic finance system.

YJ
Yosef Jeffri
Read more →
- name: Install PG
hosts: db_servers
apt:
name: postgresql-15
AutomationAnsibleDec 2024

Automating PostgreSQL deployments with Ansible: a production playbook

Stop deploying databases manually. This playbook covers installation, configuration, replication setup, and hardening — all automated.

PW
Patria Wineka
Read more →