Share via


ResourceSpec.Cpus Property

Definition

Represents the amount of CPU resources allocated for a specific service node in the swarm configuration. The value is typically expressed in terms of CPU shares or fractions, depending on the context.

[YamlDotNet.Serialization.YamlMember(Alias="cpus")]
public string? Cpus { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="cpus")>]
member this.Cpus : string with get, set
Public Property Cpus As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to