You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-instances/container-instances-container-groups.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: gwallace
7
7
8
8
ms.service: container-instances
9
9
ms.topic: article
10
-
ms.date: 03/20/2019
10
+
ms.date: 11/01/2019
11
11
ms.author: danlep
12
12
ms.custom: mvc
13
13
@@ -47,15 +47,17 @@ To preserve a container group's configuration, you can export the configuration
47
47
48
48
Azure Container Instances allocates resources such as CPUs, memory, and optionally [GPUs][gpus] (preview) to a container group by adding the [resource requests][resource-requests] of the instances in the group. Taking CPU resources as an example, if you create a container group with two instances, each requesting 1 CPU, then the container group is allocated 2 CPUs.
49
49
50
-
The maximum resources available for a container group depend on the [Azure region][region-availability] used for the deployment.
50
+
### Resource usage by instances
51
51
52
-
### Container resource requests and limits
52
+
Each container instance is allocated the resources specified in its resource request. However, the resource usage by a container instance in a group depends on how you configure its optional [resource limit][resource-limits] property.
53
53
54
-
*By default, container instances in a group share the requested resources of the group. In a group with two instances each requesting 1 CPU, the group as whole has access to 2 CPUs. Each instance can use up to the 2 CPUs and the instances may compete for CPU resource while they are running.
54
+
*If you don't specify a resource limit, the instance's maximum resource usage is the same as its resource request.
55
55
56
-
* To limit resource usage by an instance in a group, optionally set a [resource limit][resource-limits] for the instance. In a group with two instances requesting 1 CPU, one of your containers might require more CPUs to run than the other.
56
+
* If you specify a resource limit for an instance, you can adjust the instance's resource usage for its workload, either reducing or increasing usage relative to the resource request. The maximum resource limit you can set is the total resources allocated to the group.
57
+
58
+
For example, in a group with two instances requesting 1 CPU, one of your containers might run a workload that requires more CPUs to run than the other.
57
59
58
-
In this scenario, you could set a resource limit of 0.5 CPU for one instance, and a limit of 2 CPUs for the second. This configuration limits the first container's resource usage to 0.5 CPU, allowing the second container to use up to the full 2 CPUs if available.
60
+
In this scenario, you could set a resource limit of 0.5 CPU for one instance, and a limit of 2 CPUs for the second. This configuration limits the first container's resource usage to 0.5 CPU, allowing the second container to use up to the full 2 CPUs if available.
59
61
60
62
For more information, see the [ResourceRequirements][resource-requirements] property in the container groups REST API.
0 commit comments