团队协作
工作流目录
闭环的参考 playbook。每条目都是真实的、可复现的事件模式,随仓库发布或在 docs/workflow-catalog.md 中说明。
怎么读一个工作流
每个工作流列出闭环会走过的阶段。省略 critiqued 表示严重度低于 critical,跳过 critic 阶段;省略 postmortem 表示变更低于复盘阈值。
目录
| 工作流 | 类别 | 严重度 | 摘要 |
|---|---|---|---|
pg-connection-pool-exhaustion detectedcorrelatedinvestigatedcritiquedapprovedrecoveredverifiedpostmortem | 容量 | critical | 检测 connection_pool_used_ratio > 0.9,关联近期发布,提议收窄连接池 floor。 |
pg-disk-io-saturation detectedcorrelatedinvestigatedapprovedrecoveredverified | 磁盘 | critical | 检测持续 disk_io_utilization > 95%,关联 checkpoint 风暴,提议 IOPS 限流或 WAL 调优。 |
pg-lock-wait-long-transaction detectedcorrelatedinvestigatedcritiquedapprovedrecoveredverifiedpostmortem | 锁 | error | 检测锁等待 > 30 秒,定位头阻塞者,提议带明确爆炸半径的取消操作。 |
pg-replica-replay-lag detectedcorrelatedinvestigatedapprovedrecoveredverified | 复制 | warn | 检测副本 replay 延迟 > 60 秒,根据恢复预算提议 failover 或只读路由。 |
redis-eviction-storm detectedcorrelatedinvestigatedapprovedverified | 缓存 | warn | 检测逐出率飙升,关联近期 key TTL 变更,提议策略调整。 |
扩展目录
在 workflows/ 下加 YAML 文件,再在 deploy/incident-events/ 下加对应场景即可贡献新工作流。欢迎 PR —— 见 CONTRIBUTING.md。