Conghao97's picture tcftrees's picture
ProgramGen release
d086025
|
Raw History Blame Contribute Delete
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_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