Application health checks
Techniques for determining a complete address of a test point of an application from a relative address of the test point and a configuration of a system are provided. An application component that defines the application includes a relative address of the test point. An abstract configuration of a system specifies a location where an instance of the application is to be deployed within the system. The complete address of the test point is then formulated using the relative address of the test point and the indication of the location where an instance of the application is to be deployed within the system. The complete address of the test point can then be used to perform a health check of the instance of the application.
Latest Microsoft Patents:
The present application is related to the co-pending and commonly owned U.S. patent applications having the following titles, each of which was filed on even date herewith:
- 1. DEVELOPMENT, MAINTENANCE AND CONFIGURATION OF COMPLEX HARDWARE AND SOFTWARE SYSTEMS, Ser. No. 11/236,203;
- 2. UPGRADE AND DOWNGRADE OF DATA RESOURCE COMPONENTS, Ser. No. 11/236,313;
Each of the above referenced patent applications is incorporated by reference herein in their entireties.
BACKGROUNDComplex software applications can no longer be designed and built as a monolithic system. Instead, the outward expression of the system can only be achieved by a cooperating set of programs. As each of these underlying programs also become more complex, they require more and more computing resources. These two principles primarily drive complex multiple machine software systems to require multiple cooperating computer programs spanning multiple pieces of computer hardware.
Complex multiple machine software systems require the deployment and configuration of software components on multiple machines. While a handful of cooperating software components and their associated resources can be configured and maintained “by hand” (e.g., an administrator specifies the configuration information and installs the appropriate software components on each machine), as the number of components increases, the system rapidly becomes harder to manage. For example, as the number of software components and machines increases, configuration and maintenance of the system by hand becomes more difficult and prone to human error.
Adding complexity to the problem, upgrading (or downgrading) versions of individual software components as new versions become available (or new versions need to be rolled back to prior versions) requires that the interaction of different “strains” or versions of the software be managed at the same time. Managing the different strains of software components by hand becomes more difficult and increasingly prone to human error, particularly as the number of software components, and versions of the software components increases.
SUMMARYTechniques for determining a complete address of a test point of an application from a relative address of the test point and a configuration of a system are provided. An application component that defines the application includes a relative address of the test point. An abstract configuration of a system specifies a location where an instance of the application is to be deployed within the system. The complete address of the test point is then formulated using the relative address of the test point and the indication of the location where an instance of the application is to be deployed within the system. The complete address of the test point can then be used to perform a health check of the instance of the application.
The Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Various techniques for coordinating large numbers of machines and application components, managing multiple version changes across the application components, and interconnecting disparate application components in a repeatable and scalable manner, are provided. Application components may be, by way of example, software components and data resource components, such as a database, a file tree, etc. In some embodiments, a configuration process (also referred to herein as the “facility”) receives as input an abstract configuration of a system and the descriptions of each of the components in the system, and validates that the system can operate effectively, ensures that each component is in the correct state and at the right version, and generates the necessary interconnections for the application components to interoperate with each other. The abstract configuration of the system describes the system's desired state. Each component of the system declares the general form of the resources it requires and an abstract representation of the versions of the services it both requires and provides. A user, such as a system administrator or an application administrator may specify the abstract configuration of the system and the declaration of the resources required by the components in the system.
In some embodiments, the facility utilizes the abstract configuration (i.e., the description of the system) to discover the requisite software component descriptors, and to formulate a plan to deploy the software on the specified machines. The facility validates the existence of the necessary resources for each software component, and checks each software component and its associated data resource components for version compatibility. For example, where specific instances of the software components do not yet exist on a machine, the facility creates appropriate instances of the correct version of the software components on the machine. Likewise, where specific resources do not yet exist, the facility installs and initializes the necessary resources. In the case of data resource components, where specific instances of the data resource components do not yet exist on a machine, the facility creates appropriate instances of the correct version of the data resource components on the machine. Where a data resource component already exists on the machine but is not the correct version, the facility may attempt to automatically upgrade or downgrade the data resource component as necessary. Once the necessary software components and data resource components are deployed on the machines, the facility creates run-time linkages between the software components and their respective data resource components.
In some embodiments, the abstract configuration allows for defining or specifying “pools” of software components and hardware resources in a system. Within a pool, the individual components can be interrupted without interrupting the overall functioning of the system from, for example, a client perspective. Defining pools of components in the abstract configuration of the system enables the facility to move the system from a current state to a newly described state in a minimally interruptive fashion. Generally, pools may be used to describe a collection of machines and/or application components that act to users as if there were only one of them (i.e., machine), but which actually comprise multiple instances. This provides for load balancing (i.e., carrying more load than any single instance could support, fairly well balanced across the members of the pool) and/or higher availability (i.e., the pool will still appear to users to be up and working even if one or more of its members are down, so long as at least one member is still up). The deployment facility can use this information, for example, to perform an upgrade to the members of the pool by taking only one down at a time, thereby never interrupting service to users.
In some embodiments, an application component may include an up/down tool that may be used to upgrade/downgrade the application component from one version of the application to another version of the application. The up/down tool may comprise an up/down process, a version identifier, and one or more version conversion rules. The up/down process contains the logic for upgrading/downgrading the application component using appropriate version conversion rules. The version identifier indicates the version of the application component. The version conversion rules are the rules and/or commands that are executed in order to change the application component from a first version to a second version. In the case of a software application, the version conversion rules may be as simple as an instruction to stop execution of the currently executing version of the software application, and instructions to load and configure the desired version of the software application. In the case of a data resource component, such as a database, the version conversion rules may be a description of the database schema for converting the data resource component from one version to another version. For example, the version conversion rules for converting a database from version 1 to version 2 may contain one or more SQL statements for converting the database tables from version 1 to version 2. A user, such as an application programmer or other knowledgeable person, may develop the up/down tool, including the logic associated with the components of the up/down tool. The facility may then execute the up/down process provided with the up/down tool upon detecting that a data resource component on a machine is not the desired version.
In some embodiments, an application component may include a relative address of a test point, where the relative address is an address that is relative to the application component. The test point is something that can be used to determine the health of an instance of the application component. Stated another way, the test point describes a way to ask an instance of the application component whether the executing instance of the application component is currently healthy. For example, a web application (i.e., an application component that defines or corresponds to a web application) may provide a web page as its test point. When the web page is fetched, the page's contents can provide an indication of the status or health of the web application. Other applications may provide a variable, such as a performance counter, as its test point. The value of the performance counter can then be used to determine the health of the application. For example, depending on the application, the performance counter may need to be within a range of values for the application to be healthy, or the performance counter may need to be increasing in order for the application to be healthy, and the like.
In some embodiments, a process, such as the facility or other suitable process that is interested in determining the health of an instance of an application component may use the relative address of a test point and the abstract configuration of the system to determine the actual address or location of the test point within the system. The relative address of the test point is an address or location of the test point that is relative to the application component. For example, in the case where the test point is a web page, the relative address of the test point may be the name of the web page. In the case where the test point is a variable, the relative address of the test point may be the name of the variable. The process can determine from the information in the abstract configuration the locations of the instances of the application component within the system. The process is able to determine the location or locations of the instance or instances of the application component within the system because the abstract configuration specified the machine or machines, and the location (e.g., directory) within the machine or machines, on which the application component was to be deployed. The process can then use the relative address of the test point and the locations of the instances of the application component within the system to derive or calculate an actual address or addresses (e.g., a complete URL) for the test point.
In some embodiments, the collection of test points corresponding to the instances of the application components that comprise a system, for example, as specified by the abstract configuration of the system, may be used to check or determine the health of the system. A process that is interested in determining the health of the system can determine the actual location of each test point corresponding to each of the instances of the application components that comprise the system from the relative address of the test point and the information in the abstract configuration. The process can then use the actual locations of the test points to check the health of the system.
The abstract configuration is an abstract description of a system. The abstract configuration specifies the overall structure and layout of the system. For example, the contents of the abstract configuration may specify a list of the machines and the application components that are going to run on each of the machines. For each application component, the abstract configuration may also specify the location of the resources that are needed by the application component. In this manner, the abstract configuration describes the machines that comprise the system, the applications that are to execute on each of the machines, and the manner in which to connect the machines and applications to create the system. In one embodiment, the abstract configuration may be implemented as an XML file that is prepared by a user, such as a system architect.
In general terms, the configuration process takes the abstract configuration of the system and combines it with the description of each of the application components, and more generally, the description of each of the applications included in the application component library to generate the final state of the system. In some embodiments, the configuration process inspects the relationships between each application component, and applies constraints to verify that each application component has all of its resource requirements satisfied. The configuration process may compare the desired version of each application component, for example, as specified by the abstract configuration, against the version of the application component that may already be executing. If differences between the desired version and a currently executing version exist, the configuration process may move the executing application component to the desired version, as necessary. For example, where specific instances of the desired versions of the software components do not yet exist, the configuration process can invoke the desired versions of the software components. Where specific resources do not exist, the configuration process can install and initialize the necessary resources. Where specific instances of the desired versions of the data resources do not yet exist, the configuration process can create the appropriate instances of the data resource components. Where the data resources already exist, but are not at the desired version, the configuration process automatically performs the upgrading or downgrading of the data resource version as necessary. Once the appropriate versions of the software components and data resources are deployed on the machines as specified by the abstract configuration, the configuration process may create the run-time linkages between the software components and their respective data resources as specified by the abstract configuration. Stated another way, the configuration process may configure each software component with the necessary references to the external resources as expressed by the abstract configuration.
The machine farm comprises the machines that are available for hosting (i.e., executing) instances of the application components. The machine farm is the collection of machines on which the application components are to be deployed. The machines may include, by way of example, computing devices, network components, and other suitable microprocessor or processor controlled devices. For example, the machine farm may be the computers and other testing components in a test lab. The machine farm may also be a collection of distributed computers coupled, for example, via one or more networks within an enterprise on which to deploy the application components.
The computing device on which the configuration process, application component library and abstract configuration may be implemented and executed may include a central processing unit, memory, input devices (e.g., keyboard and pointing devices), output devices (e.g., display devices), and storage devices (e.g., disk drives). The memory and storage devices are computer-readable media that may contain instructions that implement the system. In addition, the data structures and message structures may be stored or transmitted via a data transmission medium, such as a signal on a communication link. Various communication links may be used, such as the Internet, a local area network, a wide area network, a point-to-point dial-up connection, a cell phone network, and so on.
Embodiments of the configuration process, application component library and abstract configuration may be implemented in various operating environments that include personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, digital cameras, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and so on. The computer systems may be cell phones, personal digital assistants, smart phones, personal computers, client computers, server computers, programmable consumer electronics, digital cameras, and so on.
The configuration process, application component library and abstract configuration may be described in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, and so on that perform particular tasks or implement particular abstract data types. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.
The deployment descriptor specifies the resources that the application component needs to execute properly. Stated another way, the deployment descriptor describes the “things” the application component needs to function properly. For example, for a software component, the deployment descriptor may indicate the desired data resources and environmental information that an instance of the software component requires to deploy and function properly. For a data resource component, the deployment descriptor may be an abstract description of the data resource and provide a description of the services provided by the data resource component. In some embodiments, the deployment descriptor may be implemented as an XML file.
The up/down tool is a set of procedures that may be executed to upgrade or downgrade an instance of the application component from one version to another version. The up/down tool may be dynamically invoked, and may be queried as to the version of the application component supported by the up/down tool. In some embodiments, the up/down tool is provided with data resource components. The up/down tool is further discussed below. The relative address of a test point specifies an address of a test point relative to the application component. The test point provides an indication of the current health of an instance of the application component executing on a machine. The test point may be a process, URL, or other object that may be invoked or accessed to obtain information regarding the health of the application component instance. The relative address of a test point is further discussed below.
The aforementioned components of the application component are only illustrative and are not intended to suggest any limitation as to the implementation of the illustrated components and/or the scope of use or functionality of the application component. Depending on the application component, one or more of the components may be optional and not included. For example, while the up/down tool is included for data resource components, the up/down tool may be optional and not included for software components. Likewise, the relative address of a test point may also be optional and not included in some application components.
One skilled in the art will appreciate that, for this and other processes and methods disclosed herein, the functions performed in the processes and methods may be implemented in differing order. Furthermore, the outlined steps are only exemplary, and some of the steps may be optional, combined with fewer steps, or expanded into additional steps.
If, in block 506, the configuration process determines that the resources in the list of resources are not all referenced in the abstract configuration, then, in block 508, the configuration process reports the error condition. For example, the configuration process may create an entry in a log file that indicates the references in the list of references that were not referenced in the abstract configuration. Otherwise, if, in block 506, the configuration process determines that the resources in the list of resources are referenced in the abstract configuration, then, in block 510, the configuration process checks to determine whether the all of the referenced machines exist and whether the machines are of the proper type. The configuration process checks the machine farm for the existence of each of the machines referenced in the abstract configuration and, for each machine, the configuration process checks to ensure that the machine is the type specified in the abstract configuration. For example, the abstract configuration may reference a Machine XYZ as a database server. In this instance, the configuration process checks the machine farm for the existence of Machine XYZ and also checks to make certain that Machine XYZ is a database server of the type indicated by the abstract configuration. Similarly, if the abstract configuration referenced a Machine Fu as a web server, the configuration process checks the machine farm for the existence of Machine Fu and also checks to make certain that Machine Fu is a web server of the type indicated by the abstract configuration.
If, in block 510, the configuration process determines that not all of the referenced machines exist or the machines are not of the proper type, then, in block 508, the configuration process reports the error condition. For example, the configuration process may create an entry in a log file that indicates the machines that do not exist and/or the machines that are of the improper type. Otherwise, if, in block 510, the configuration process determines that all of the referenced machines exist and the machines are of the proper type, then, for each referenced machine (block 512), the configuration process performs blocks 514 to 520, until all the referenced machines are processed (block 522).
In block 514, the configuration process determines from the abstract configuration the application components that are desired on the machine. These are the application components to invoke on the machine. In block 516, the configuration process determines the application components that are already deployed on the machine. These are the application components that are already executing on the machine. In block 518, the configuration process checks to determine whether the desired application components are already deployed on the machine. If, in block 518, the configuration process determines that one or more of the desired application components are not already deployed on the machine, then, in block 520, the configuration process makes an indication to deploy the desired components that need to be deployed on the machine. Stated another way, the configuration process makes a list of the desired application components that need to be deployed on the machine. For example, if the abstract configuration indicates that version 1 of Application ABC is to be deployed on Machine X, and the configuration process determines that Machine X currently does not have Application ABC deployed, then, the configuration process makes an indication, for example, in a “ToDo List” to deploy Application ABC on Machine X. Likewise, if the abstract configuration indicates that version 2 of Database DEF is to be deployed on Machine Fu, and the configuration process determines that version 1 of Database DEF is currently deployed on Machine Fu, then, the configuration process makes an indication in the ToDo List to upgrade Database DEF on Machine Fu from version 1 to version 2. Otherwise, if, in block 518, the configuration process determines that the desired application components are already deployed on the machine, or subsequent to making an indication of the desired application components that need to be deployed on the machine, the configuration process, in block 522, processes the next referenced machine in the abstract configuration. In some instances, the deployer may determine that an application component that is already running on a machine is not mentioned in the abstract configuration. For example, it might be because that component was mentioned in the previous revision of the configuration and has been removed in the current revision. Thus, the deployer may actually stop that component from running on that machine as part of achieving the desired configuration state.
Having made a list of the desired application components to deploy on the referenced machines in the abstract configuration, the configuration process, in block 524, deploys the application components on the machines, as necessary. For example, the configuration process may stop a currently executing instance of an application process on a machine, uninstall the application, install a desired application component on the machine, and invoke the installed application component on the machine. For a data resource component on a machine that is a different version than the desired version, the configuration process may use the up/down tool provided with the data resource component to change (i.e., upgrade or downgrade) the data resource component from the current version to the desired version. If a desired data resource component is not currently deployed on the machine, the configuration process can install and invoke the desired data resource component on the machine.
In some embodiments, the abstract configuration may specify pools of machines and application components that are to be deployed on the machines. A pools may describe a collection of machines and/or application components that act to users as if there were only one of them (i.e., machine), but which actually comprise multiple instances. This provides for load balancing (i.e., carrying more load than any single instance could support, fairly well balanced across the members of the pool) and/or higher availability (i.e., the pool will still appear to users to be up and working even if one or more of its members are down, so long as at least one member is still up). The deployment facility can use this information, for example, to perform an upgrade to the members of the pool by taking only one down at a time, thereby never interrupting service to users.
The version conversion rules are the logic (i.e., the commands) that convert or transform the data resource component from one version to another version. In some embodiments, the version conversion rules may be specified using SQL statements. Only three version conversion rules are shown in
The version 1 up/down tool comprises the up/down process 602, version identifier 702, and a version 0->version 1 conversion rules 704. The up/down process determines whether the particular up/down tool can upgrade or downgrade a current version of the database schema to a desired version and, if so, that actually upgrades or downgrades the database schema from the current version to the desired version. The version identifier indicates that this particular up/down tool is the version 1 up/down tool. The version 0->version 1 conversion rules are the commands that may be executed, for example, by the up/down process, to upgrade version 0 of the database schema to version 1 of the database schema. Therefore, the version 1 up/down tool is capable of upgrading the database schema from version 0 to version 1. Stated another way, the version 1 up/down tool is capable of installing version 1 of the database schema on a machine that does not currently have the database schema.
The version 2 up/down tool comprises the up/down process 602, version identifier 706, a version 0->version 2 conversion rules 708, a version 1->version 2 conversion rules 710, and a version 2->version 1 conversion rules 712. The up/down process is the same as the up/down process described above. The version identifier indicates that this particular up/down tool is the version 2 up/down tool. The version 0->version 2 conversion rules are the commands that may be executed to convert version 0 of the database schema to version 2 of the database schema. The version 1->version 2 conversion rules are the commands that may be executed to upgrade version 1 of the database schema to version 2 of the database schema. The version 2->version 1 conversion rules are the commands that may be executed to downgrade version 2 of the database schema to version 1 of the database schema. Therefore, the version 2 up/down tool is capable of upgrading the database schema from version 0 to version 2, and version 1 to version 2, and downgrading the database schema from version 2 to version 1.
The version 3 up/down tool comprises the up/down process 602, version identifier 714, a version 0->version 3 conversion rules 716, a version 1->version 3 conversion rules 718, a version 2->version 3 conversion rules 720, a version 3->version 1 conversion rules 722, and a version 3->version 2 conversion rules 724. The up/down process is the same as the up/down process described above. The version identifier indicates that this particular up/down tool is the version 3 up/down tool. The version 0->version 3 conversion rules are the commands that may be executed to convert version 0 of the database schema to version 3 of the database schema. The version 1->version 3 conversion rules are the commands that may be executed to upgrade version 1 of the database schema to version 3 of the database schema. The version 2->version 3 conversion rules are the commands that may be executed to upgrade version 2 of the database schema to version 3 of the database schema. The version 3->version 1 conversion rules are the commands that may be executed to downgrade version 3 of the database schema to version 1 of the database schema. The version 3->version 2 conversion rules are the commands that may be executed to downgrade version 3 of the database schema to version 2 of the database schema. Therefore, the version 3 up/down tool is capable of upgrading the database schema from version 0 to version 3, version 1 to version 3, and version 2 to version 3, and downgrading the database schema from version 3 to version 1, and version 3 to version 2.
One skilled in the art will appreciate that an up/down tool may not include every combination of the version conversion rules. For example, the version 3 up/down tool described above may not include one or more of the conversion rules that downgrade the database schema from one version to another version and/or one or more of the conversion rules that upgrade the database schema from one version to another version.
If, in block 806, the configuration process determines that the invoked up/down tool successfully deployed the data resource component on the machine, then the configuration process stops processing. Otherwise, if the configuration process determines that the invoked up/down tool was unable to successfully deploy the data resource component on the machine, then, in block 808, the configuration process retrieves from the up/down tool provided with the data resource component an indication of the desired version of the data resource component to deploy on the machine. The configuration process requests the up/down tool to provide the contents of the version identifier provided with the data resource component.
In block 810, the configuration process identifies a previously saved up/down tool. The previously saved up/down tool is the up/down tool that was used to deploy the version of the data resource component that is currently installed on the machine. In block 812, the configuration process invokes the previously saved up/down tool that was identified in block 810 to deploy the data resource component on the machine. In block 814, the configuration process checks to determine whether the previously saved up/down tool invoked in block 812 successfully deployed the data resource component on the machine. If, in block 814, the configuration process determines that the previously saved up/down tool that was invoked successfully deployed the data resource component on the machine, then the configuration process stops processing. Otherwise, if the configuration process determines that the previously saved up/down tool that was invoked was unable to successfully deploy the data resource component on the machine, then, in block 816, the configuration process reports the error condition. For example, the configuration process may display an error page and/or create an error log entry that indicates that the configuration process was unable to successfully deploy the desired data resource component on the machine.
Otherwise, if, in block 902, the up/down process determines that the desired data resource component is not currently deployed on the machine, then, in block 904, the up/down process checks to determine whether it can deploy the desired version of the data resource component on the machine. Here, there is either (1) a different version of the desired date resource component is deployed on the machine, or (1) no versions of the data resource component deployed on the machine. For either situation, the up/down process checks the version conversion rules that are included in the up/down tool to determine whether the appropriate version conversion rules for deploying the desired data resource component are provided. For example, assuming that the desired data resource component is version 3 of a database server and that version 2 of the database server is currently deployed on the machine, the up/down process checks the up/down tool to determine whether the version conversion rules for upgrading the database server from version 2 to version 3 are provided. Similarly, assuming that there are no versions of the database server currently deployed on the machine, the up/down process checks the up/down tool to determine whether the version conversion rules for upgrading the database server from version 0 to version 3 (i.e., newly installing version 3 of the database server) are provided.
If, in block 904, the up/down process determines that it can deploy the desired version of the data resource component on the machine, then, in block 906, the up/down process deploys the desired data resource component on the machine. The up/down process may deploy the desired data resource component by invoking the appropriate version conversion rules that are provided with the up/down tool. In block 908, the up/down process saves a copy of the up/down tool (i.e., the components of the up/down tool). For example, the up/down process may save a copy of the up/down tool in persistent memory, such as a disk, database, etc., in an area that is accessible by the deployment facility. The saved up/down tool may be later invoked, for example, by the configuration process, in an attempt to deploy a particular version of a data resource component (e.g., blocks 810 and 812 of
Otherwise, if, in block 904, the up/down process determines that it cannot deploy the desired version of the data resource component on the machine, then, in block 910, the up/down process provides an indication of the desired version of the data resource component to deploy on the machine. The indication of the desired version of the data resource component may subsequently be used by the configuration process to determine whether another up/down tool can deploy the desired version of the data resource component on the machine (e.g., block 808 of
Subsequent to generating the error condition (block 1208), or upon determining in block 1206 that the application instance is healthy, the system monitoring process, in block 1210, logs the result of the health check. For example, the system monitoring process may log the result of the health check, including an indication of the application instance and the time of the heath check, in a log file. The system monitoring process then proceeds to process the next test point address in the list of test point addresses.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. A method in a computing device with a processor for determining whether application components are healthy based on formulating a complete address of test points of application components, the method comprising:
- determining from each application component a relative address of a test point for that application component, the relative address being an address that is relative to the actual address at which the application component is deployed, the test point for an executing instance of an application component providing a way for determining whether that executing instance of the application program is healthy;
- determining from an abstract configuration of a system the machines on which the application components are to be deployed within the system, the abstract configuration specifying addresses of machines and locations within the machines where each application component is to be deployed, the address of a machine and the location within the machine where the application component is to be deployed forming an actual address of where the application component is deployed;
- for each executing instance of each application component, formulating by the processor a complete address of the test point for that executing instance of that application component from the relative address of the test point for that application component and the actual address of where the application component is deployed; and
- probing each of the test points of the executing instances of the application components to determine the health of the application components by retrieving contents of the test point using the formulated complete address for the executing instance of the application component, the contents of the test point being a performance counter that is incremented by the application component as part of its normal execution; checking the contents of the test point to determine whether the executing instance of the application component is healthy based on whether the performance counter has been incremented by the application component as part of its normal execution; and when it is determined that executing instance of the application component is not healthy, notifying a user that the executing instance of the application component is not healthy.
2. The method of claim 1, wherein the relative address of the test point is a name of a web page.
3. The method of claim 1, wherein the relative address of the test point is a name of an object.
4. The method of claim 1, wherein the relative address of the test point is a name of a performance counter.
5. The method of claim 1, wherein the complete address of the test point is a URL of the test point.
6. A computing device for specifying a complete address of a test point, the system comprising:
- a memory storing computer-executable instructions that implement: an application component that defines an application entity, the application component comprising an indication of a relative address of a test point for determining the health of an instance of the application entity; an abstract configuration of a system, the abstract configuration specifies at least one machine on which to deploy the application component; a component that formulates a complete address for the test point from the relative address of the test point and the specification of the at least one machine on which to deploy the application component as indicated by an actual address of the machine; and a component that probes the test point to determine the health of the application entity by retrieving contents of the test point using the formulated complete address; checking the retrieved contents of the test point to determine whether the application entity is healthy; and when it is determined that the application entity is not healthy, notifying a user that the application entity is not healthy;
- a processor for executing the computer-executable instructions stored in the memory.
7. The computing device of claim 6, wherein an application entity is a database.
8. The computing device of claim 6, wherein the application entity is a web application.
9. The computing device of claim 6, wherein the abstract configuration is an XML file.
10. The computing device of claim 6, wherein the complete address of the test point is a combination of the relative address of the test point and the address of the at least one machine on which to deploy the application component.
11. A method in a computing system with a processor for performing a health check of an application, the method comprising:
- determining a relative address of a test point of an application from an application component that defines the application;
- determining from an abstract configuration of a system a location where an instance of the application is to be deployed;
- formulating by the processor a complete address of the test point from the relative address of the test point and the location where an instance of the application is to be deployed as indicated by an actual address of the location;
- probing the test point using the complete address of the test point to determine the health of the application based on checking contents retrieved from the test point; and
- when it is determined that the application is not healthy, notifying a user that the application is not healthy.
12. The method of claim 11, wherein the relative address of the test point is a name of a web page.
13. The method of claim 11, wherein the relative address of the test point is a name of a variable provided by the application.
14. The method of claim 11, wherein the relative address of the test point is a name of a performance counter.
15. The method of claim 11, wherein the complete address of the test point is a URL of the test point.
16. The method of claim 11 further comprising, upon determining that the application is unhealthy, generating an error condition.
17. The method of claim 16, wherein generating the error condition comprises sending a user a notification of the error condition.
5347649 | September 13, 1994 | Alderson |
5432795 | July 11, 1995 | Robinson |
5931904 | August 3, 1999 | Banga et al. |
5933827 | August 3, 1999 | Cole et al. |
6070184 | May 30, 2000 | Blount et al. |
6286046 | September 4, 2001 | Bryant |
6456306 | September 24, 2002 | Chin et al. |
6609216 | August 19, 2003 | Almy et al. |
6934934 | August 23, 2005 | Osborne et al. |
20030093563 | May 15, 2003 | Young et al. |
20050108557 | May 19, 2005 | Kayo et al. |
20060190594 | August 24, 2006 | Jorgenson et al. |
20060200450 | September 7, 2006 | Keane et al. |
20070074203 | March 29, 2007 | Curtis et al. |
20070074204 | March 29, 2007 | Curtis et al. |
Type: Grant
Filed: Sep 27, 2005
Date of Patent: Sep 29, 2009
Patent Publication Number: 20070074074
Assignee: Microsoft Corporation (Redmond, WA)
Inventors: Pavel Curtis (Bellevue, WA), Robert Schumaker (Redmond, WA), David A. Nichols (Redmond, WA), Eshwar Somashekar (Seattle, WA), Guo-Wei Shieh (Sammamish, WA), Puja Gomber (Bellevue, WA), Travis Muhlestein (Redmond, WA), Sergei Meleshchuk (Issaquah, WA)
Primary Examiner: Scott T Baderman
Assistant Examiner: Kamini Patel
Attorney: Perkins Coie LLP
Application Number: 11/236,413
International Classification: G06F 11/00 (20060101);