Urgent.News

What's breaking now, across thousands of outlets.

Tech

Database Reliability: The SRE Approach to Keeping Data Safe

The Backup That Wasn't We had backups. Daily snapshots to S3. Perfectly configured. Never tested. When we needed to restore after a data corruption incident, we discovered the backups had been silently failing for 3 weeks. The S3 bucket policy had changed, and nobody noticed. Never again. Rule 1: Test Your Restores Backups don't matter. Restores matter. #!/bin/bash # weekly-restore-test.sh — runs…

This report covers the SRE approach to database reliability at preventing data loss and ensuring smooth operations. The key strategies include testing restores to ensure backups are effective, monitoring replication lag to catch issues early, managing database connections efficiently with a connection pooler like PgBouncer, monitoring query performance to optimize workload, following safe schema migration practices, and tracking key dashboard panels to monitor database health.

The restore test script runs weekly and checks for backup failures, data count discrepancies between production and test databases, and drops test database. A PostgreSQL replication monitoring script alerts when lag exceeds certain thresholds. PgBouncer is used to manage database connections efficiently, reducing the number of backend processes needed.

Query performance monitoring identifies the most impactful queries, typically accounting for over 60% of database load. Schema migrations should be performed using safe methods like concurrent index creation and adding nullable columns first. Key dashboard panels monitor active connections, query latency, replication lag, transactions per second, cache hit ratio, and disk usage.

The report concludes by mentioning an upcoming AI-powered database monitoring solution from Nova AI Ops.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Open Source Isn't a Business Model Choice Anymore. It's the Only Option.

A few weeks ago, on the sidelines of an event at La Felicita (Station F), I got into a conversation with the CEO of Aiven about open-source business models.

  • Open-source is no longer a business model choice, but the only viable option.
  • Companies like MongoDB, Elastic, Redis, and HashiCorp relicensed to restrict community access.
  • ZizkaDB offers an alternative by running inside customers' own cloud environments.

JavaDoc WTF 4MB of Fonts JDK 23+

I was publishing two small packages to maven central and saw that they added usage tracking. I clicked and noticed 8MB number that should not be caused by 2 tiny packages, it was supposed to be…

  • JDK 23 includes 4MB DejaVu fonts in javadoc, causing unexpected 8MB usage.
  • Maven plugin solution: add --no-fonts to additionalOptions in pom.xml.
  • Maven command with -Dmaven.javadoc.disableNoFonts=true prevents font inclusion.

More from Saturday 29 August →