fix(server): back off commit retries after store failures; sharpen fault drill

The first dev drill showed a full volume driving ~140 refused publications a
second. Commit retries now back off 100 ms doubling to a 2 s cap, reset on the
next confirmed commit. fault-drill.sh reports the empty-volume pod's exit code,
restarts and logs, and prints node-specific iptables rules for db-outage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-30 15:12:58 -04:00
co-authored by Claude Opus 5.5
parent 6b5da397e8
commit 4a900b0bd3
6 changed files with 97 additions and 11 deletions
+4
View File
@@ -149,6 +149,10 @@ template <typename State> class RegionHost {
std::vector<FinalOutcome> outcomes_;
std::vector<Dropped> dropped_;
SchedulerTime origin_{}, batch_started_{};
// Store failures back off: a failed commit is retried after retry_delay_, which
// doubles to a cap and resets on the next confirmed commit.
SchedulerTime retry_at_{};
std::chrono::milliseconds retry_delay_{};
std::uint64_t origin_tick_{};
bool draining_{};
HostStatus status_{};