longhorn: default StorageClass to 2-way replication #196

Merged
aaron merged 1 commit from plane/longhorn-default-2way into live 2026-04-28 02:05:51 +00:00
Owner

Set persistence.defaultClassReplicaCount=2 so the auto-created longhorn StorageClass provisions PVCs at 2-way (matching longhorn-db and defaultSettings.defaultReplicaCount). Single-host topology means 3-way buys nothing real (host failure takes all replicas) while tripling write I/O. Existing 3-way volumes patched in-cluster (6 volumes: minio×2, redis, nats, mapstorage, lab-director-app).

Set `persistence.defaultClassReplicaCount=2` so the auto-created `longhorn` StorageClass provisions PVCs at 2-way (matching `longhorn-db` and `defaultSettings.defaultReplicaCount`). Single-host topology means 3-way buys nothing real (host failure takes all replicas) while tripling write I/O. Existing 3-way volumes patched in-cluster (6 volumes: minio×2, redis, nats, mapstorage, lab-director-app).
feat(longhorn): default StorageClass to 2-way replication
Some checks failed
0/0 projects applied successfully.
CI Review / pr-title (pull_request) Has been cancelled
CI Review / helm-validate (pull_request) Has been cancelled
CI Review / ai-review (pull_request) Has been cancelled
Lint & Validate / terraform-validate (pull_request) Has been cancelled
Lint & Validate / yaml-lint (pull_request) Has been cancelled
Lint & Validate / shellcheck (pull_request) Has been cancelled
6d706258c2
Set persistence.defaultClassReplicaCount=2 so the auto-created `longhorn`
StorageClass provisions PVCs at numberOfReplicas=2, matching `longhorn-db`
and defaultSettings.defaultReplicaCount.

Single Proxmox host topology means Longhorn 3-way replication adds no
cross-host fault tolerance — host failure takes out all 3 VMs and all 3
replicas. The ZFS mirror at the storage layer already handles single-disk
failure, and CNPG B2 backups handle durability. 3-way only triples write
I/O on the shared SSD/HDD pool with no real availability gain.

Existing volumes provisioned before this change remain at 3-way (SC
parameters bind only at provisioning time) — those are migrated separately
by patching their volume.longhorn.io spec.numberOfReplicas in-cluster.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
aaron merged commit 431e663139 into live 2026-04-28 02:05:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aaron/infra-core!196
No description provided.