SShortSingh.
Back to feed

Redis Sentinel failover takes about 2 seconds beyond down-after setting, tests show

0
·29 views

A software engineer deliberately killed the primary node 15 times across three in-memory database engines — Redis 8, Valkey 8, and Dragonfly — to measure real-world failover duration under Redis Sentinel. Tests on a one-primary, two-replica, three-sentinel Docker setup showed that write outage consistently equals the configured down-after-milliseconds value plus roughly two additional seconds for quorum voting and replica promotion. With the common default of 5,000 ms, all three engines restored writes in approximately 7.3–7.4 seconds, indicating the overhead belongs to Sentinel's election process rather than any specific engine. The single most controllable factor in reducing outage duration is tuning the down-after-milliseconds setting, which the author notes is rarely adjusted in production deployments. The full test lab, kill scripts, and reproducible benchmarks have been published on GitHub for independent verification.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Running a 2 GB Model on an 8 GB Edge Device Depends on More Than File Size

A 2 GB model file on an 8 GB device does not leave 6 GB of usable inference memory, because weights, KV cache, compute buffers, and the operating system all compete for RAM. The article argues that a single short chat says little about capacity, and that the longest request and peak concurrency must be tested. Storage size and theoretical KV-cache calculations can be computed beforehand, but the real device peak, runtime overhead, and recovery behavior require measurement on the target hardware. It also notes that weight quantization does not reduce other memory consumers by the same factor, and that terms like 'needs 4 GB' can refer to different quantities. The example is hypothetical and not a tested board result.

0
ProgrammingHacker News ·

Google DeepMind unveils AlphaProof Code, a new AI tool focused on code

Google DeepMind has announced AlphaProof Code, according to a post on its official blog. The source material is limited to the announcement link and a Hacker News discussion that drew 75 points and 26 comments. The post's details about the system's capabilities could not be confirmed from the available text. Readers seeking specifics should consult DeepMind's blog directly.

0
ProgrammingDEV Community ·

Setting Up a Lightweight K3s Kubernetes Environment with kubectl on WSL2 and Windows 11

This tutorial walks readers through building a compact Kubernetes environment using K3s on an Ubuntu virtual machine hosted on Google Cloud. It assumes Ubuntu is already set up on a Google Cloud VM and on WSL2 under Windows 11, with the two machines connected over a network. The guide covers checking the OS version and available memory, confirming kubectl is absent, and installing K3s with a script that adds the VM's external IP to the TLS certificate. After installation, kubectl is automatically placed on the system, which the author verifies with a follow-up check.

0
ProgrammingDEV Community ·

Tokyo solo developer Kenji Sakuramoto builds over ten apps from personal needs

Kenji Sakuramoto runs kensaurus LLC, a studio founded in June 2025 in Shibuya, Tokyo, and maintains more than ten code repositories on his own. He says most of his apps began with problems in his own life, including lets-talk for practising difficult conversations, help her take photo for remote photo direction, and glot.it for learning Thai. Other projects include yen-yen, a shared household money book without bank links, and The Wanting Mind, a free book on why people want things. To keep AI agents consistent across his repositories, he wrote reusable playbooks and uses a separate read-only reviewer to decide whether a task is truly finished. He notes that the post was drafted with an AI assistant and fact-checked before publication.