Sets the maximum number of instances per zone.
On partitioned topology with backups topology, controls that a primary and a backup won't run
on the same zone if set to 1. Note, for each zone this will have to be set.
On a non partitioned with backups topology, controls the maximum number of instances running on
he same zone.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public virtual SpaceDeployment MaxInstancesPerZone( string zone, int maxInstancesPerZone )
Public Overridable Function MaxInstancesPerZone ( _ zone As String, _ maxInstancesPerZone As Integer _ ) As SpaceDeployment
public: virtual SpaceDeployment^ MaxInstancesPerZone( String^ zone, int maxInstancesPerZone )
public SpaceDeployment MaxInstancesPerZone( String zone, int maxInstancesPerZone )
Parameters
- zone (String)
- The zone to set maximum instances for.
- maxInstancesPerZone (Int32)
- The maximum instances per zone.
Return Value
The SpaceDeployment set with the specified maximum instances per zone for a specific zone.