The JusDB Database Engineering Blog
Deep dives on PostgreSQL, MySQL, MongoDB and more — performance tuning, high availability, migrations and production war stories from our DBAs.
Popular Searches
Multi-AZ Valkey: Replica Placement, Failover Priority and Zone-Aware Clients
Lay out self-managed Valkey Cluster and Sentinel across availability zones so a zone loss keeps a voting majority, a replica for every shard and a predictable failover.
Valkey Hash Field Expiration in Production: HSETEX, HGETEX, and HEXPIRE
Give single hash fields their own TTL on Valkey 9: the commands and versions, session, flag, and rate-counter patterns, the memory cost, replication, and the patch floor.
Valkey Connection Storms: maxclients, Client Eviction and Output Buffer Limits
An incident runbook for Valkey connection storms: read INFO clients and CLIENT LIST, size maxclients and file descriptors, shed clients safely, and bound client memory.
Planned Valkey Switchovers Without Client Errors: CLIENT CAPA REDIRECT and FAILOVER
Switch a standalone Valkey primary to a replica with FAILOVER, and use CLIENT CAPA redirect so clients follow the new primary instead of failing with READONLY.
Stopping Valkey Full-Resync Loops: Backlog Sizing and Dual-Channel Replication
Find out why Valkey replicas loop on full resyncs, size repl-backlog-size and the replica output buffer from your write rate, and decide when dual-channel replication helps.
Valkey BGSAVE Failures and Fork Latency: Overcommit, Huge Pages, and the 9.2 Forkless Option
Diagnose Valkey BGSAVE and MISCONF failures, size memory for fork copy-on-write, tune overcommit, THP and oom-score-adj, and trial 9.2 RC forkless snapshots.
Monitoring Valkey: Prometheus Metrics, COMMANDLOG, JSON Logs and the Alerts That Matter
Set up Valkey 9.1 monitoring with redis_exporter and Prometheus: the INFO fields that matter, COMMANDLOG and JSON logs, and starter alert rules with the reasoning behind each.
Valkey Security Hardening: ACLs, TLS, LDAP, and Building Without Lua
Harden a Valkey 9.1 server for production: network exposure, least-privilege ACL users with db= rules, TLS rotation, valkey-ldap, Lua-free builds, and NOPERM debugging.
Distributed Locks on Valkey 9 Without Lua: SET IFEQ and DELIFEQ
Build a distributed lock on Valkey 9 without Lua: acquire with SET NX PX, extend with SET IFEQ, release with DELIFEQ, and add fencing tokens for failover.
A Latency Incident Runbook for Valkey 9: Find the Source of a Spike
Trace a Valkey 9.1 latency spike to its cause: client or server, COMMANDLOG, LATENCY DOCTOR and the 27 events 9.1.3 emits, I/O threads, fork, expiry, eviction, and swap.
Valkey 8 to 9.2: The Changes That Break Client Libraries
Find the Valkey 8.0 to 9.1 reply, error and protocol changes that break client libraries, the client versions that handle them, and a test to run before you upgrade.
Dragonfly vs Valkey vs Redis: When a Multi-Threaded Drop-In Pays Off
Compare Dragonfly 2.1, Valkey 9.1, and Redis 8.10 on licences, threading, compatibility gaps, persistence, and failover, and learn how to test a switch with your own traffic.
Get the latest database insights and expert tips delivered to your inbox.
Subscribe to our RSS feed for instant updates.
RSS Feed