SShortSingh.
Back to feed

etcd/raft failover cut from 1.25 s to 343 ms, verified on 2,000 simulated leader crashes

0
·1 views

A developer sought to shorten leader failover in a three-node etcd/raft cluster, where survivors previously waited 1 to 1.9 seconds before electing a new leader and no writes committed meanwhile. Lowering ElectionTick is a one-line change, but its effects under crashes and dropped links were unclear, so the developer tested it with faultline, a deterministic simulation tool for Go. In a 500-seed run with faults, the lower setting caused no safety violations and the cluster always recovered. A separate failover test, which crashes the leader at five seconds across 2,000 simulated runs, measured the new leader election time. The source article's headline reports the improved failover at 343 ms, while the excerpt shows an initial failure on one seed.

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
ProgrammingHacker News ·

Qwen3-4B fine-tuned to suppress common AI writing patterns, shared on Hacker News

A developer has released a version of the Qwen3-4B language model that has been trained to reduce the stylistic habits typical of AI-generated text. The project was posted to Hacker News as a Show HN submission, linking to a write-up on the 100toolkit.com blog. The post drew 14 points and 3 comments from the community. The available source does not detail the training method, evaluation results, or the specific writing tics targeted.

0
ProgrammingHacker News ·

Poll Finds Most Americans Oppose Live-Streaming Executions

A Washington Post poll reports that roughly eight in ten Americans oppose broadcasting executions live. The question was raised in connection with the case of the Fort Hood shooter, whose potential execution has drawn public attention. The survey indicates broad public discomfort with turning capital punishment into a live spectacle. The findings were first highlighted on Hacker News, where the article gained modest attention. Details beyond the headline poll figure are limited in the available source material.

0
ProgrammingDEV Community ·

Persona Lines in AI Instruction Files Correlate With Lower Quality Scores

A study of the 10,000 most-starred repositories found 285 main AI instruction files, such as CLAUDE.md and AGENTS.md, that open with a 'You are a...' persona line. On the ails check 0 to 10 scale, these files had a median score of 6.6, compared with 7.7 for the other 20,551 main files. The gap persisted across all four file-size groups, ranging from 0.9 to 1.25 points. The analysis attributes the difference to the rest of the file: persona files devote more lines to instructions, and their prohibitions are more often written as strong 'never' statements without matching permissions, hedged, or weakly ordered. The author suggests replacing persona lines with specific, tool-named directives.

0
ProgrammingDEV Community ·

Top 10 IoT Platforms for Students and Developers in 2026

The 2026 IoT landscape is changing quickly, making platform selection important for students, hobbyists, and developers. This roundup ranks ten IoT cloud platforms according to ease of use, pricing, real-time visualization, and protocol support. Blynk is highlighted for quick mobile app prototyping through a drag-and-drop builder and wide hardware compatibility. KiwisIoT is presented as a low-code option aimed at academic projects, offering AI-driven analytics and shareable live links for demonstrations. The list also covers open-source and cloud-based alternatives suited to users who want backend control or seamless integration with Arduino boards and MATLAB analysis.