File size: 3,148 Bytes
d086025 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | # 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_total` not 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:
1. **Declare P1 Incident:**
- Update status page
- Notify stakeholders
2. **Collect diagnostics from ALL validators:**
3. **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 |
## Related Runbooks
- [Validator Down](validator-down.md)
- [Network Partition](network-partition.md)
- [Node Not Syncing](node-not-syncing.md)
|