Resources Properties
Class Properties 2 members
Represents the resource configurations for a Docker service in Swarm mode.
Gets or sets the resource limits for a Docker service.
public ResourceSpec? Limits { get; set; }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. Gets or sets the resources reserved for a Docker service in Swarm mode.
public ResourceSpec? Reservations { get; set; }Remarks
This property represents the resource reservations for a Docker service. These reservations ensure that the specified resources, such as CPU and memory, are allocated to the service when it runs. Resource reservations help in providing guaranteed resource availability to the service within the cluster.