ServiceDescription.PlacementConstraints Property
Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2
Gets or sets the placement constraints for this service.
Namespace: System.Fabric.Description
Assembly: System.Fabric (in System.Fabric.dll)
Syntax
public string PlacementConstraints { get; set; }
Property Value
Type: System.String
The placement constraints.
Remarks
Placement Constraints are Boolean statements which allow services to select for particular node properties (and the values of those properties) in order to control where it is legal to place them. Node properties are key value pairs that define some additional metadata about a node, usually related to the hardware capabilities of the node. Examples of hardware characteristics that could be exposed as node properties are “HasDisk”, “MemorySize”, “StorageSize”, “NumberOfCores” etc. When deploying a service, an administrator can define the properties that the service cares about as well as simple Boolean operators which define requirements for the values of those properties. Ex: (HasDisk==true && MemorySize>=2048). During runtime, Service Fabric Load Balancing will only place services on nodes that have properties with values which match those required by the service.
See Also
ServiceDescription Class
System.Fabric.Description Namespace
Return to top