investigate-ha-issues
Installation
SKILL.md
High Availability Investigation
Purpose
Primary entry point for HA investigations across SQL Server, Azure SQL, and Fabric. Use when users report AG sync issues, unhealthy replicas, failovers, large redo/log send queues, seeding failures, lease timeout symptoms, or geo-replication lag.
This skill follows a 12-step workflow:
- Detect platform, edition, and HA capability
- Review AG configuration and replica settings
- Check replica health, roles, and connectivity
- Analyze per-database sync state, redo queue, and log send queue
- Capture HADR wait statistics over a short snapshot
- Review failover history and AG-related errors
- Validate AG endpoint and transport configuration
- Measure log send and transport performance
- Inspect redo thread activity on the secondary
- Check WSFC cluster health (on-premises/IaaS only)
- Monitor automatic seeding progress (SQL 2016+/MI)
- Review Azure SQL DB / Fabric geo-replication status