Blog
Field notes for database operators
Field notes on running MySQL, MariaDB, Galera, PostgreSQL and other open-source database clusters: failure modes, recovery, backups and monitoring.
· 4 min read · Jarwis Team
Upgrading MySQL 8.0 to 8.4 LTS: a checklist you can run before the first 8.4 start
MySQL 8.0 reached end-of-life in April 2026. The supported path is 8.4 LTS, but a leftover 8.0 setting can abort the first 8.4 start after the data dictionary has already been upgraded. Here is what to check first.
MySQLMariaDBUpgrades
· 5 min read · Jarwis Team
MySQL replication stopped: reading IO and SQL thread errors and repairing a replica
How to tell whether a stopped MySQL or MariaDB replica broke on the IO thread or the SQL thread, what the common errors mean, and how to repair it without silently losing data.
MySQLMariaDBReplication
· 5 min read · Jarwis Team
Patroni switchover without data loss: maximum_lag_on_failover and refusing a lagging replica
How Patroni decides whether a replica is allowed to become leader, how to pick a sensible maximum_lag_on_failover, and how to run a planned switchover that refuses a lagging target instead of losing writes.
PostgreSQLPatroniFailover
· 4 min read · Jarwis Team
PostgreSQL 14 is end-of-life: what to do next, and how to upgrade without a surprise
PostgreSQL 14 reached end-of-life on 12 November 2026. What that means in practice, how to pick a target major, and how to rehearse pg_upgrade before you touch production.
PostgreSQLUpgradesPatroni
· 5 min read · Jarwis Team
How to find the queries that are actually hurting your MySQL or PostgreSQL server
Rank queries by total database time, not by the slowest single run. Practical SQL for performance_schema and pg_stat_statements, and how to read an EXPLAIN plan.
MySQLPostgreSQLMariaDBPerformance
· 6 min read · Jarwis Team
Upgrading PostgreSQL to the next major version with pg_upgrade --link, and rehearsing it first
How to run an in-place PostgreSQL major upgrade with pg_upgrade --link: pre-checks, what changes on Patroni, and why to rehearse on a restored backup first.
PostgreSQLPatroniUpgrades
· 5 min read · Jarwis Team
A backup you have never restored is not a backup: running restore drills for MySQL and PostgreSQL
Why a green backup job is not evidence you can get the database back, and a working restore-drill procedure for MySQL/MariaDB and PostgreSQL.
MySQLMariaDBPostgreSQLBackups
· 5 min read · Jarwis Team
What a Galera split-brain actually looks like (and how to get out without making it worse)
A practical checklist for MariaDB and MySQL Galera operators: how to read wsrep status after a partition, pick a survivor, and recover without inventing a second history.
MySQLMariaDBGalera
· 5 min read · Jarwis Team
Point-in-time recovery for MySQL and MariaDB: archive binlogs now, recover to the minute later
How binary-log point-in-time recovery works for MySQL and MariaDB, the manual mysqlbinlog procedure, and the gaps that make recoveries fail when you need them.
MySQLMariaDBBackups
· 6 min read · Jarwis Team
PgBouncer in front of Patroni: connection pooling that keeps working after a failover
Why PostgreSQL runs out of connections long before it runs out of CPU, how to size a PgBouncer pool, and how to keep the pooler pointed at the current Patroni leader.
PostgreSQLPatroniPgbouncer