From ed02804b203a24955c037fa60bbfc5810ccae2df Mon Sep 17 00:00:00 2001 From: ted Date: Sat, 23 Nov 2019 11:45:43 -0800 Subject: [PATCH] add units for the staleReplicaTimeout I can't find a single "spec" for the parameters, so I figure it's best to explain it in the examples and documentation. Signed-off-by: ted --- deploy/longhorn.yaml | 2 +- docs/restore_statefulset.md | 2 +- docs/storage-tags.md | 2 +- examples/storageclass.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/longhorn.yaml b/deploy/longhorn.yaml index 0008b08..c41b9c5 100644 --- a/deploy/longhorn.yaml +++ b/deploy/longhorn.yaml @@ -421,7 +421,7 @@ metadata: provisioner: driver.longhorn.io parameters: numberOfReplicas: "3" - staleReplicaTimeout: "2880" + staleReplicaTimeout: "2880" # 48 hours in minutes fromBackup: "" # diskSelector: "ssd,fast" # nodeSelector: "storage,fast" diff --git a/docs/restore_statefulset.md b/docs/restore_statefulset.md index 0fbdb5f..935495f 100644 --- a/docs/restore_statefulset.md +++ b/docs/restore_statefulset.md @@ -49,7 +49,7 @@ spec: fsType: ext4 volumeAttributes: numberOfReplicas: # must match Longhorn volume value - staleReplicaTimeout: '30' + staleReplicaTimeout: '30' # in minutes volumeHandle: statefulset-vol-0 # must match volume name from Longhorn storageClassName: longhorn # must be same name that we will use later --- diff --git a/docs/storage-tags.md b/docs/storage-tags.md index 5fce30e..4becd71 100644 --- a/docs/storage-tags.md +++ b/docs/storage-tags.md @@ -36,7 +36,7 @@ metadata: provisioner: rancher.io/longhorn parameters: numberOfReplicas: "3" - staleReplicaTimeout: "480" + staleReplicaTimeout: "480" # 8 hours in minutes diskSelector: "ssd" nodeSelector: "storage,fast" ``` diff --git a/examples/storageclass.yaml b/examples/storageclass.yaml index 5aa5749..2d9f4c5 100644 --- a/examples/storageclass.yaml +++ b/examples/storageclass.yaml @@ -5,7 +5,7 @@ metadata: provisioner: driver.longhorn.io parameters: numberOfReplicas: "3" - staleReplicaTimeout: "2880" + staleReplicaTimeout: "2880" # 48 hours in minutes fromBackup: "" # diskSelector: "ssd,fast" # nodeSelector: "storage,fast"