基礎設施自動擴縮容

System ↔ System

監控負載 → 擴縮容決策 → 配置資源 → 健康檢查 → 重新平衡。

6 個節點 · 5 條連接cloud
systemapievent
視覺化
負載監控event

追蹤 CPU、記憶體及請求佇列深度。

sequential擴縮容決策
擴縮容決策system

使用率超過 80% 時擴容,低於 30% 時縮容。

conditional配置實例
配置實例infra

啟動或終止運算實例。

sequential健康檢查
健康檢查cicd

確認新實例正常回應。

conditional更新負載平衡器
更新負載平衡器system

在目標群組中新增或移除實例。

sequential發送通知
發送通知api

透過 Slack 告警,附上擴縮容詳情。

uc-auto-scaling.osop.yaml
osop_version: "1.0"
id: "auto-scaling"
name:"基礎設施自動擴縮容"
description:"監控負載 → 擴縮容決策 → 配置資源 → 健康檢查 → 重新平衡。"

nodes:
  - id: "monitor"
    type: "event"
    name: "負載監控"
    description: "追蹤 CPU、記憶體及請求佇列深度。"

  - id: "decide"
    type: "system"
    name: "擴縮容決策"
    description: "使用率超過 80% 時擴容,低於 30% 時縮容。"

  - id: "provision"
    type: "infra"
    name: "配置實例"
    description: "啟動或終止運算實例。"
    security:
      risk_level: "medium"

  - id: "health_check"
    type: "cicd"
    subtype: "test"
    name: "健康檢查"
    description: "確認新實例正常回應。"
    timeout_sec: 60
    retry_policy:
      max_attempts: 3

  - id: "rebalance"
    type: "system"
    name: "更新負載平衡器"
    description: "在目標群組中新增或移除實例。"

  - id: "notify"
    type: "api"
    name: "發送通知"
    description: "透過 Slack 告警,附上擴縮容詳情。"

edges:
  - from: "monitor"
    to: "decide"
    mode: "sequential"
  - from: "decide"
    to: "provision"
    mode: "conditional"
    when: "action != 'none'"
  - from: "provision"
    to: "health_check"
    mode: "sequential"
  - from: "health_check"
    to: "rebalance"
    mode: "conditional"
    when: "health.passed == true"
  - from: "rebalance"
    to: "notify"
    mode: "sequential"