Resources.Limits Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the resource limits for a Docker service.
[YamlDotNet.Serialization.YamlMember(Alias="limits")]
public Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.ResourceSpec? Limits { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="limits")>]
member this.Limits : Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.ResourceSpec with get, set
Public Property Limits As ResourceSpec
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
The Limits
property defines the maximum resources, such as CPU and memory, that can be allocated to a Docker service. It is used to restrict the usage of system resources by the service within specified boundaries.