From cb284550d755af1e278ff1f9c068d0d7b5f25d78 Mon Sep 17 00:00:00 2001 From: renolation Date: Wed, 8 Jul 2026 16:40:07 +0700 Subject: [PATCH] a --- infra/cluster/00-longhorn.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/infra/cluster/00-longhorn.yaml b/infra/cluster/00-longhorn.yaml index 44aff2f..8bef849 100644 --- a/infra/cluster/00-longhorn.yaml +++ b/infra/cluster/00-longhorn.yaml @@ -18,10 +18,12 @@ spec: # KHÔNG để longhorn làm default StorageClass — giữ local-path là default của cụm. # Workload lakehouse xin tường minh storageClassName: longhorn (checkpoint, kafka PV). defaultClass: false - # 3 bản sao, trải trên 3/5 VM (hard anti-affinity mặc định). - # Chống 1-2 VM/pod chết. KHÔNG chống host Proxmox chết -> backup là phòng thủ thật. - # Muốn tiết kiệm đĩa dev: đổi xuống 2 (survive 1 VM). Prod-parity: giữ 3. - defaultClassReplicaCount: 3 + # 2 bản sao — cụm chỉ có 2 node lưu trữ (2 worker; 3 control-plane bị taint + # nên longhorn-manager không lên). Hard anti-affinity mặc định cần mỗi replica + # 1 node khác nhau -> tối đa 2. Chống 1 worker VM chết. KHÔNG chống host Proxmox + # chết (1 fault domain) -> backup là phòng thủ thật. + # Thêm worker node thứ 3 sau này -> nâng lại 3 cho prod-parity. + defaultClassReplicaCount: 2 defaultSettings: defaultDataPath: /var/lib/longhorn # cần đủ chỗ trên MỌI node (đã resize +50-100G) preUpgradeChecker: