HA VM failover delay and ZFS replication I/O spikes for 24/7 PostgreSQL access-control cluster on Proxmox VE 8.2

tekhabeeb

New Member
Nov 25, 2026
4
0
1
Hi everyone,

We are setting up a 3-node Proxmox VE 8.2.4 HA cluster (kernel 6.8.8-2-pve, 3x Dell PowerEdge R650 nodes, enterprise NVMe ZFS mirrors ashift=12, dedicated 10GbE Corosync + replication ring) in Riyadh to host an on-prem access control system managing ~400 doors and lobby turnstiles across two corporate towers.

Because of local data-residency requirements and 24/7 physical security SLAs, the core database and controller orchestration VM (VM 102, Debian 12, 8 vCPU / 32 GB RAM, PostgreSQL 16 + Redis) runs with Proxmox HA (max_relocate=2, max_restart=1) and pvesr ZFS storage replication every 1 minute between pve-01 and pve-02 (with pve-03 acting as the third quorum/tie-breaker node).

What We're Observing

  1. ZFS Replication Latency Spikes: Because access card/biometric events write continuously to PostgreSQL WAL and fsync heavily, the 1-minute pvesr ZFS snapshot send/receive occasionally spikes disk await inside the guest from <1 ms to 40–70 ms during morning shift changes (07:45–08:30), which slows down live door-controller heartbeat acknowledgments.
  2. HA Fence/Relocate Recovery Time: During a simulated power pull on pve-01 (hardware watchdog fencing via ipmi_watchdog), pve-02 takes roughly 110–130 seconds to declare pve-01 fenced, mount the replicated ZFS dataset, boot VM 102, and bring PostgreSQL back online

Relevant Config Snippets

text
# /etc/pve/ha/resources.cfg
vm: 102
group ha-core
max_relocate 2
max_restart 1
state started
text
# ZFS pool properties on nvme-pool
compression=lz4
sync=standard
recordsize=16k (for VM zvol volblocksize=16k)

Questions

  1. For write-heavy PostgreSQL VMs on ZFS (volblocksize=16k), is the periodic pvesr stall better mitigated by switching pvesr intervals to 5 minutes, tuning zfs_dirty_data_max / zfs_txg_timeout, or moving to 3-node Ceph over 25GbE to eliminate both replication pauses and the ~120s HA fencing/recovery window?
  2. On Proxmox HA with softdog vs. hardware IPMI watchdog, is ~90–120s expected before pve-ha-lrm starts the VM on the surviving node, or are there supported Corosync/HA timer adjustments we should review?

Thanks for any real-world tuning advice!
 
Hello, on the second question, around 2 minutes is normal. The dead node only counts as fenced after the 60s watchdog timeout, then the CRM starts the VM elsewhere, and those HA timers aren't configurable. A hardware IPMI watchdog won't really make it shorter, it just makes the fencing more reliable than softdog.