Skip to content

Commit

Permalink
Merge pull request #8850 from priyawadhwa/proxy
Browse files Browse the repository at this point in the history
set proxy-refresh-interval=70000 for etcd to improve CPU overhead
  • Loading branch information
tstromberg authored Aug 20, 2020
2 parents b27dbc0 + 28cfb58 commit e2e4ef1
Show file tree
Hide file tree
Showing 28 changed files with 55 additions and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/minikube/bootstrapper/bsutil/ktmpl/v1beta2.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ dns:
etcd:
local:
dataDir: {{.EtcdDataDir}}
{{- if .EtcdExtraArgs}}
extraArgs:
proxy-refresh-interval: "70000"
{{- range $i, $val := printMapInOrder .EtcdExtraArgs ": " }}
{{$val}}
{{- end}}
{{- end}}
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.17/crio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.17/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.17/dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.17/options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.18/crio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.18/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.18/dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.18/options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.19/crio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.19/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.19/dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/bsutil/testdata/v1.19/options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ dns:
etcd:
local:
dataDir: /var/lib/minikube/etcd
extraArgs:
proxy-refresh-interval: "70000"
controllerManager:
extraArgs:
"leader-elect": "false"
Expand Down

0 comments on commit e2e4ef1

Please sign in to comment.