Allocating Insufficient Resource than the Actual Usage
Explore what happens when we allocate insufficient resources than required by an application.
We'll cover the following...
Allocating Insufficient Resources
Let’s look at a slightly modified version of the go-demo-2
definition as go-demo-2-insuf-mem.yml
. When compared with the previous definition, the difference is only in resources
of the db
container in the go-demo-2-db
Deployment.
Press + to interact
apiVersion: apps/v1kind: Deploymentmetadata:name: go-demo-2-dbspec:...template:...spec:containers:- name: dbimage: mongo:3.3resources:limits:memory: 20Micpu: 0.5requests:memory: 10Micpu: 0.3
The memory limit is set to 20Mi
and the request to 10Mi
. Since we already know from Metrics Server’s data that MongoDB ...