Merge pull request #3740 from weaveworks/raise-cpu-requests

Raise Kubernetes CPU requests from 10m to 50m
This commit is contained in:
Bryan Boreham authored and GitHub committed 2019-12-13 12:27:24 +00:00
commit c9e813cfcb
6 files changed
+20 -25

No files matched your search

@@ -137,7 +137,7 @@ items:
port: 6784 port: 6784
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
@@ -168,7 +168,7 @@ items:
#npc-args #npc-args
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
+2 -2
View File
@@ -117,7 +117,7 @@ items:
port: 6784 port: 6784
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
@@ -144,7 +144,7 @@ items:
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
hostNetwork: true hostNetwork: true
+2 -2
View File
@@ -126,7 +126,7 @@ items:
port: 6784 port: 6784
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
@@ -156,7 +156,7 @@ items:
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
+2 -2
View File
@@ -134,7 +134,7 @@ items:
port: 6784 port: 6784
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
@@ -165,7 +165,7 @@ items:
#npc-args #npc-args
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
+2 -2
View File
@@ -137,7 +137,7 @@ items:
port: 6784 port: 6784
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
@@ -168,7 +168,7 @@ items:
#npc-args #npc-args
resources: resources:
requests: requests:
cpu: 10m cpu: 50m
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:
+10 -15
View File
@@ -89,23 +89,18 @@ Kubernetes manages
on each node, and only schedules pods to run on nodes that have enough on each node, and only schedules pods to run on nodes that have enough
free resources. free resources.
The components of a typical Kubernetes installation (with the master In the example manifests we request 10% of a CPU, which will be enough
node running etcd, scheduler, api-server, etc.) take up about 95% of a for small installations, but you should monitor how much it uses in
CPU, which leaves little room to run anything else. For all of Weave your production clusters and adjust the requests to suit.
Net's features to work, it must run on every node, including the
master.
The best way to resolve this issue is to use machines with at least We do not recommend that you set a CPU or memory _limit_ unless you
two CPU cores. However if you are installing Kubernetes and Weave Net are very experienced in such matters, because the implementation of
for the first time, you may not be aware of this requirement. For this limits in the Linux kernel sometimes behaves in a surprising way.
reason, Weave Net launches as a DaemonSet with a specification that
reserves at least 1% CPU for each container. This enables Weave Net to
start up seamlessly on a single-CPU node.
Depending on the workload, Weave Net may need more than 1% of the On a 1-node single-CPU cluster you may find Weave Net does not install
CPU. The percentage set in the DaemonSet is the minimum and not a at all, because other Kubernetes components already take 95% of the
limit. This minimum setting allows Weave Net to take advantage of CPU. The best way to resolve this issue is to use machines with at
available CPU and "burst" above that limit if it needs to. least two CPU cores.
## <a name="eviction"></a>Pod Eviction ## <a name="eviction"></a>Pod Eviction