Welcome to FlowZap, the App to diagram with Speed, Clarity and Control.

混沌工程工作流

devops

混沌工程工作流,包含假设定义、稳态监控、受控故障注入、爆炸半径限制以及弹性验证。

完整 FlowZap 代码

SRE { # SRE Team
  n1: circle label:"Start"
  n2: rectangle label:"Define experiment hypothesis"
  n3: rectangle label:"Select blast radius"
  n4: rectangle label:"Review experiment results"
  n5: rectangle label:"Document learnings"
  n6: circle label:"End"
  n1.handle(right) -> n2.handle(left)
  n2.handle(right) -> n3.handle(left)
  n3.handle(bottom) -> ChaosMonkey.n7.handle(top) [label="Configure"]
  n4.handle(right) -> n5.handle(left)
  n5.handle(right) -> n6.handle(left)
}
ChaosMonkey { # Chaos Monkey
  n7: rectangle label:"Schedule experiment window"
  n8: diamond label:"Steady state verified?"
  n9: rectangle label:"Inject failure"
  n10: rectangle label:"Abort experiment"
  n11: diamond label:"Failure type?"
  n12: rectangle label:"Kill random instance"
  n13: rectangle label:"Inject network latency"
  n14: rectangle label:"Exhaust CPU resources"
  n7.handle(right) -> n8.handle(left)
  n8.handle(right) -> n9.handle(left) [label="Yes"]
  n8.handle(bottom) -> n10.handle(top) [label="No"]
  n9.handle(right) -> n11.handle(left)
  n10.handle(top) -> SRE.n4.handle(bottom) [label="Aborted"]
  n11.handle(right) -> n12.handle(left) [label="Instance"]
  n11.handle(bottom) -> n13.handle(top) [label="Network"]
  n11.handle(left) -> n14.handle(top) [label="Resource"]
  n12.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"]
  n13.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"]
  n14.handle(bottom) -> Observability.n15.handle(top) [label="Monitor"]
}
Observability { # Observability
  n15: rectangle label:"Monitor system metrics"
  n16: rectangle label:"Track error rates"
  n17: diamond label:"System recovered?"
  n18: rectangle label:"Record recovery time"
  n19: rectangle label:"Trigger rollback"
  n20: rectangle label:"Generate experiment report"
  n15.handle(right) -> n16.handle(left)
  n16.handle(right) -> n17.handle(left)
  n17.handle(right) -> n18.handle(left) [label="Yes"]
  n17.handle(bottom) -> n19.handle(top) [label="No"]
  n18.handle(right) -> n20.handle(left)
  n19.handle(right) -> n20.handle(top)
  n20.handle(top) -> SRE.n4.handle(bottom) [label="Results ready"]
}

相关模板

备份恢复工作流程

devops

备份和恢复工作流程,包含**定时备份**、**异地复制**、**保留策略执行**、**恢复测试**和**RTO/RPO 验证**。

证书续期工作流

devops

SSL/TLS证书续期工作流,包含到期监控、按类型(DV/OV/EV)证书请求、域名验证、部署到负载均衡器以及健康检查验证与回滚。

CI/CD管道工作流

devops

完整的CI/CD管道,包含代码检出、代码检查、单元测试、构件构建、暂存部署、烟雾测试、生产部署以及失败时的自动回滚。

数据库迁移工作流程

devops

数据库架构迁移工作流程,包括 CI 测试、DBA 审核与批准、维护时间窗口安排、备份快照、迁移执行、数据完整性验证以及自动回滚。

部署回滚工作流

devops

部署回滚工作流,包括问题检测、回滚决策、上一版本恢复、健康状况验证以及事后复盘文档。