|
Download tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/consensus-stuck.md from Lego-X/ProgramGen: direct link, hf CLI and curl.
- Browser
- Download file 3.15 kB
-
https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/consensus-stuck.md
- Command line
-
hf download hf://datasets/Lego-X/ProgramGen/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/consensus-stuck.md
-
curl -L -o consensus-stuck.md https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/consensus-stuck.md
3.15 kB
Runbook: Consensus Stuck
Severity: P1 Impact: No new blocks being produced, writes fail, network halted On-Call Action: Respond immediately (15 min)
Symptoms
- No new blocks produced for >2 minutes
-
guts_consensus_commits_totalnot increasing - Write operations fail with timeout
- All validators show same block height
- API returns errors for write operations
Detection
Alert Name: GutsConsensusStalled
Query:
Dashboard: Guts Consensus → Block Production Rate
Diagnosis
Step 1: Check Consensus Status on All Validators
Expected (healthy):
Problematic indicators:
- Heights differ by >1
- Round number > 0 (indicates proposal failures)
- Missing validators
Step 2: Count Active Validators
Byzantine Fault Tolerance:
- 4 validators: Need 3 up (can tolerate 1 failure)
- 7 validators: Need 5 up (can tolerate 2 failures)
- Formula: Need > 2/3 of validators
Step 3: Check for Leader Issues
If leader is down or unreachable:
- Network should elect new leader within ~30 seconds
- If not, there may be a quorum issue
Step 4: Check Network Connectivity Between Validators
Look for:
- Timeouts
- Connection refused
- One-way connectivity (partitions)
Step 5: Check for Byzantine Behavior
Step 6: Check Mempool
Resolution
Option A: Wait for Automatic Recovery (First Try)
Simplex BFT has built-in recovery mechanisms. Wait 2-3 minutes for:
- Leader rotation
- View change
- Timeout-based recovery
Option B: Restart Stalled Validator
If one validator is causing issues:
Option C: Force Leader Rotation
If leader is stuck but reachable:
Option D: Restore Quorum
If too many validators are down:
Option E: Emergency Consensus Reset
⚠️ DANGER: Only use if consensus is completely broken and other options failed
Escalation
If consensus doesn't resume within 15 minutes:
Declare P1 Incident:
- Update status page
- Notify stakeholders
Collect diagnostics from ALL validators:
Contact core team:
- Emergency contact: [on-call rotation]
- Include: Timeline, diagnostics, actions taken
Post-Incident
- Verify all validators are in sync
- Check for data loss (compare block heights)
- Review logs for root cause
- Update monitoring if detection was slow
- Schedule post-mortem if >5 min downtime
- Consider adding redundant validators if quorum was close
Root Cause Categories
| Symptom | Likely Cause | Prevention |
|---|---|---|
| Single validator down | Hardware/network failure | Redundant infrastructure |
| Multiple validators down | Coordinated failure, deployment issue | Staggered deployments |
| Leader can't propose | Network partition to leader | Improve network redundancy |
| Votes not reaching quorum | Network issues | Monitor inter-validator latency |
| Byzantine behavior | Compromised node, bug | Security audits, version consistency |