Skip to content

Commit 09c2251

Browse files
authored
Merge pull request #447 from ggriffiths/resyncperiod_increase_15min
Increase resync-period default to 15 minutes
2 parents 29eced0 + 997795d commit 09c2251

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Read more about how to install the example webhook [here](deploy/kubernetes/webh
117117
#### Other recognized arguments
118118
* `--kubeconfig <path>`: Path to Kubernetes client configuration that the snapshot controller uses to connect to Kubernetes API server. When omitted, default token provided by Kubernetes will be used. This option is useful only when the snapshot controller does not run as a Kubernetes pod, e.g. for debugging.
119119

120-
* `--resync-period <duration>`: Internal resync interval when the snapshot controller re-evaluates all existing `VolumeSnapshot` instances and tries to fulfill them, i.e. create / delete corresponding snapshots. It does not affect re-tries of failed calls! It should be used only when there is a bug in Kubernetes watch logic. Default is 60 seconds.
120+
* `--resync-period <duration>`: Internal resync interval when the snapshot controller re-evaluates all existing `VolumeSnapshot` instances and tries to fulfill them, i.e. create / delete corresponding snapshots. It does not affect re-tries of failed calls! It should be used only when there is a bug in Kubernetes watch logic. Default is 15 minutes.
121121

122122
* `--version`: Prints current snapshot controller version and quits.
123123

@@ -143,7 +143,7 @@ Read more about how to install the example webhook [here](deploy/kubernetes/webh
143143
#### Other recognized arguments
144144
* `--kubeconfig <path>`: Path to Kubernetes client configuration that the CSI external-snapshotter uses to connect to Kubernetes API server. When omitted, default token provided by Kubernetes will be used. This option is useful only when the external-snapshotter does not run as a Kubernetes pod, e.g. for debugging.
145145

146-
* `--resync-period <duration>`: Internal resync interval when the CSI external-snapshotter re-evaluates all existing `VolumeSnapshotContent` instances and tries to fulfill them, i.e. update / delete corresponding snapshots. It does not affect re-tries of failed CSI calls! It should be used only when there is a bug in Kubernetes watch logic. Default is 60 seconds.
146+
* `--resync-period <duration>`: Internal resync interval when the CSI external-snapshotter re-evaluates all existing `VolumeSnapshotContent` instances and tries to fulfill them, i.e. update / delete corresponding snapshots. It does not affect re-tries of failed CSI calls! It should be used only when there is a bug in Kubernetes watch logic. Default is 15 minutes.
147147

148148
* `--version`: Prints current CSI external-snapshotter version and quits.
149149

cmd/csi-snapshotter/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const (
5757
var (
5858
kubeconfig = flag.String("kubeconfig", "", "Absolute path to the kubeconfig file. Required only when running out of cluster.")
5959
csiAddress = flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.")
60-
resyncPeriod = flag.Duration("resync-period", 60*time.Second, "Resync interval of the controller.")
60+
resyncPeriod = flag.Duration("resync-period", 15*time.Minute, "Resync interval of the controller.")
6161
snapshotNamePrefix = flag.String("snapshot-name-prefix", "snapshot", "Prefix to apply to the name of a created snapshot")
6262
snapshotNameUUIDLength = flag.Int("snapshot-name-uuid-length", -1, "Length in characters for the generated uuid of a created snapshot. Defaults behavior is to NOT truncate.")
6363
showVersion = flag.Bool("version", false, "Show version.")

cmd/snapshot-controller/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import (
4444
// Command line flags
4545
var (
4646
kubeconfig = flag.String("kubeconfig", "", "Absolute path to the kubeconfig file. Required only when running out of cluster.")
47-
resyncPeriod = flag.Duration("resync-period", 60*time.Second, "Resync interval of the controller.")
47+
resyncPeriod = flag.Duration("resync-period", 15*time.Minute, "Resync interval of the controller.")
4848
showVersion = flag.Bool("version", false, "Show version.")
4949
threads = flag.Int("worker-threads", 10, "Number of worker threads.")
5050

0 commit comments

Comments
 (0)