Docker Resource Management Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://fabiokung.com/2014/03/13/memory-inside-linux-containers/ =Internal= * Kubernetes Resources Management Concepts * Java in Containers =Overview...")
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:


* [[Kubernetes Resources Management Concepts]]
* [[Kubernetes Resources Management Concepts]]
* [[Java in Containers]]
* [[Java in a Container]]
 


=Overview=
=Overview=
Line 30: Line 29:


Also see: {{Internal|Linux_cgroups#Controlling_CPU_Throttling|cgroups - Controlling CPU Throttling}}
Also see: {{Internal|Linux_cgroups#Controlling_CPU_Throttling|cgroups - Controlling CPU Throttling}}
==User Memory Constraints==
* https://docs.docker.com/engine/reference/run/#user-memory-constraints
Also see: {{Internal|Linux_cgroups#Memory_Limit|CGroups Memory Limit}}
=Organizatorium=
* Docker switches (-m, -memory and -memory-swap) instruct the Linux kernel to kill the process running inside a container if it tries to exceed the specified limit.

Revision as of 20:38, 6 November 2019

External

Internal

Overview

The docker runtime will kill a process that it is attempting to exceed the resource limits, such as memory specified with -m.

The resource usage statistics for running containers can be displayed with:

docker stats

Controlling CPU

CPU Share Constraint

https://docs.docker.com/engine/reference/run/#cpu-share-constraint

Also see:

cgroups - Controlling Relative Share of CPU

CPU Quota Constraint

https://docs.docker.com/engine/reference/run/#cpu-quota-constraint

Also see:

cgroups - Controlling CPU Throttling

User Memory Constraints

Also see:

CGroups Memory Limit

Organizatorium

  • Docker switches (-m, -memory and -memory-swap) instruct the Linux kernel to kill the process running inside a container if it tries to exceed the specified limit.