Skip to content

Commit 2c14eb1

Browse files
authored
Merge pull request #373 from wojtek-t/decrease_heartbeat_frequency
Decrease default frequency of forced heartbeats to 5m
2 parents c2d850c + 43728fb commit 2c14eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (npdo *NodeProblemDetectorOptions) AddFlags(fs *pflag.FlagSet) {
109109
"", "Custom URI used to connect to Kubernetes ApiServer. This is ignored if --enable-k8s-exporter is false.")
110110
fs.DurationVar(&npdo.APIServerWaitTimeout, "apiserver-wait-timeout", time.Duration(5)*time.Minute, "The timeout on waiting for kube-apiserver to be ready. This is ignored if --enable-k8s-exporter is false.")
111111
fs.DurationVar(&npdo.APIServerWaitInterval, "apiserver-wait-interval", time.Duration(5)*time.Second, "The interval between the checks on the readiness of kube-apiserver. This is ignored if --enable-k8s-exporter is false.")
112-
fs.DurationVar(&npdo.K8sExporterHeartbeatPeriod, "k8s-exporter-heartbeat-period", 1*time.Minute, "The period at which k8s-exporter does forcibly sync with apiserver.")
112+
fs.DurationVar(&npdo.K8sExporterHeartbeatPeriod, "k8s-exporter-heartbeat-period", 5*time.Minute, "The period at which k8s-exporter does forcibly sync with apiserver.")
113113
fs.BoolVar(&npdo.PrintVersion, "version", false, "Print version information and quit")
114114
fs.StringVar(&npdo.HostnameOverride, "hostname-override",
115115
"", "Custom node name used to override hostname")

0 commit comments

Comments
 (0)