KaufenBuy
1-855-856-7678
SupportSupport
'Usage Dim instance As RoleEnvironmentTopologyChange
public class RoleEnvironmentTopologyChange : RoleEnvironmentChange, IEquatable<RoleEnvironmentTopologyChange>
public class RoleEnvironmentTopologyChange extends RoleEnvironmentChange implements IEquatable<RoleEnvironmentTopologyChange>
public class RoleEnvironmentTopologyChange extends RoleEnvironmentChange implements IEquatable<RoleEnvironmentTopologyChange>
The topology refers to the number of instances and the number of endpoints that are defined for a role. The number of instances for a role in a hosted service is configured in the ServiceConfiguration.cscfg file. The following XML example shows the configuration of the Instances element:
<?xml version-"1.0" encoding="utf-8"?> <ServiceConfiguration name="MyService" xmln=http://schema.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration osFamily="1" osVersion="*"> <Role name="WebRole1"> <Instances count="2" /> </Role> </ServiceConfiguration>
For more information about defining the service model for a hosted service, see Setting Up a Hosted Service for Windows Azure.
Wichtig |
|---|
| It is highly recommended that you configure the hosted service to run at least two instances of the role. When you deploy two or more role instances in different fault and upgrade domains, your Internet facing roles have external connectivity at least 99.95% of the time. For more information, see Service Level Agreements. For more information about changing the topology of a role, see How to Scale Applications by Increasing or Decreasing the Number of Role Instances. |