Поделиться через


Configuration Changes at Run Time

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information, see Transient Fault Handling.

patterns & practices Developer Center

On this page:
Rules Store and Service Information Store | Service Configuration File (.cscfg) | Application Configuration File

The Autoscaling Application Block stores configuration data in several files. This topic describes how the Autoscaling Application Block behaves at run time if you modify any of the configuration sources.

Rules Store and Service Information Store

The rules store and the service information store contain your autoscaling rules, information about the Microsoft Azure subscription that hosts your application, and details of the storage accounts from which the block can collect the data points from your application.

The Autoscaling Application Block monitors these stores for changes and reloads them if it detects a change. By default, these files are checked for changes every 30 minutes. For more information, see the topic "Entering Configuration Information."

Service Configuration File (.cscfg)

The connection strings used in the service information store are defined in the service configuration file (.cscfg) of the role that hosts the Autoscaling Application Block. Azure automatically monitors this file for changes. However, if you modify one of the connection strings used in the service information store, the Autoscaling Application Block does not automatically detect the change. You can either handle the RoleEnvironmentChanging event in your role and reload the Autoscaling Application Block whenever the .cscfg file changes, or edit (without changing) the rules store file or service information store file to trigger the block to reload them with the new connection string values.

It is unlikely that you will need to make frequent changes to this file.

Application Configuration File

The app.config file for the role that hosts the Autoscaling Application Block contains the configuration for the block, including the connection strings that the block uses to connect to the datapoint store, the rules store, the service information store, the blob execution lease, and the service management request-tracking queue.

Azure and the Autoscaling Application Block do not automatically detect changes to the app.config file if it is stored in in blob storage. If you make a change to this file at run time, you must manually restart the role that hosts the Autoscaling Application Block.

It is unlikely that you will need to make frequent changes to this file.

Next Topic | Previous Topic | Home

Last built: June 7, 2012