Skip to content

Commit 2d99b3b

Browse files
authored
Merge pull request #94443 from dlepow/acifix2
[ACI] Group resource usage
2 parents 2d22fd5 + dcaed7c commit 2d99b3b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

articles/container-instances/container-instances-container-groups.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: gwallace
77

88
ms.service: container-instances
99
ms.topic: article
10-
ms.date: 03/20/2019
10+
ms.date: 11/01/2019
1111
ms.author: danlep
1212
ms.custom: mvc
1313

@@ -47,15 +47,17 @@ To preserve a container group's configuration, you can export the configuration
4747

4848
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.
4949

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
5151

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.
5353

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.
5555

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.
5759

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.
5961

6062
For more information, see the [ResourceRequirements][resource-requirements] property in the container groups REST API.
6163

0 commit comments

Comments
 (0)