Skip to content

Commit

Permalink
doc(1.7.0): add Replica Auto Balance Disk Pressure Threshold to aut…
Browse files Browse the repository at this point in the history
…o balance replicas

longhorn/longhorn-4105

Signed-off-by: Chin-Ya Huang <[email protected]>
  • Loading branch information
c3y1huang authored and derekbit committed Jul 5, 2024
1 parent c49a6ec commit 04aa8ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/docs/1.7.0/high-availability/auto-balance-replicas.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,13 @@ parameters:
staleReplicaTimeout: "2880" # 48 hours in minutes
fromBackup: ""
```

## Replica Auto Balance Disk Pressure Threshold (%)

When `Replica Auto Balance` is enabled with `best-effort`, you can set a `Replica Auto Balance Disk Pressure Threshold (%)`. This threshold defines the disk usage level at which Longhorn will automatically attempt to migrate replicas to another disk on the same node.

For example, if the threshold is set to 75%, Longhorn will try to migrate replicas sequentially when the disk consumption reaches 75% capacity.

Longhorn prioritizes balancing replicas across node and zone first. Once the node and zones are balanced, it will then consider balancing within a single node based on disk pressure.

Since Longhorn v1.7.0, when rebuilding replicas on the same node, Longhorn uses local file data synchronization for more efficient data transfer.

0 comments on commit 04aa8ef

Please sign in to comment.