Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This topic provides preliminary content for the beta release of the Windows Azure VM role feature. To join the beta, log on to the Management Portal, click Home, and then click Beta Programs.]
It is the responsibility of your server instance to maintain its readiness when it is in load balancer rotation and receiving traffic.
How Windows Azure Assesses Service Readiness
Windows Azure manages the availability of your server instances by deploying your image, bringing server instances online, applying rolling upgrades, reimaging server instances when requested or when necessary due to transient failure, and directing network traffic via the load balancer. In order for Windows Azure to manage your server instances optimally, it needs to accurately assess the state of your server instance. Windows Azure assesses the readiness of your server instance by polling it for its state.
While your server instance is coming online – that is, while it is booting for the first time and configuring Windows via the specialization pass, and each subsequent time that it boots and starts up Windows services that are configured for auto-start – the server instance returns Busy for its status when it is polled. Once all auto-start services have been started, the server instance returns Ready. At this point, Windows Azure assumes that your server instance is indeed ready to receive traffic, and it is your responsibility to ensure that this is the case. Windows Azure will then direct traffic to your server instance until it is taken out of load balancer rotation, either because code running in your server instance has set its status to Busy, or because its shutdown status has been initiated.
At any point while your server instance is online, your code can explicitly set its status to Busy using the SetBusy method. When Windows Azure polls your server instance and finds it to be Busy, it stops directing traffic to the instance until it returns Ready for its status again.
When your server instance begins shutting down, either because it is being rebooted or being reimaged, it again returns Busy. It does not again receive traffic from the load balancer until it is brought back online and has completed its startup sequences again.
Maintaining Service-Level Agreement
To ensure that your service is available to maintain any service-level agreements, the following strategies are recommended:
Always configure your service to deploy at least two server instances. If one instance goes offline due to a failure or an upgrade, the other instance can continue to handle traffic until both instances are online again.
If your adapter is an autostart service, make sure that the task of configuring the server instance is complete before the OnStart method returns. Once the OnStart method completes, your service should be in a Ready state, and should stay Ready until it is explicitly taken out of rotation, or until any shutdown sequence begins.
Avoid rebooting your service spontaneously. The answer file configures Windows so that Windows Update is turned off by default; do not modify this setting.
Avoid shutting down Windows from within your server instance.