This invention relates to the field of describing runtime components of a solution for a computer system, and more particularly, to describing runtime components of a solution and how to manage the solution.
Many business computer applications are very complex and involve many runtime software components. Managing and monitoring the solution involves understanding all the relevant resources and how they relate to each other. For example, to determine whether the solution is running correctly requires the aggregation of the status of these manageable resources and understanding which resources are dependent on which other resources.
According to one aspect of the present invention, an apparatus for describing runtime components of a solution on a computer system comprises a description of the software components of a solution instance comprising relationships between the software components, wherein the description is a logical description independent of a particular physical instantiation of the solution instance.
According to another aspect of the present invention, a method for describing runtime components of a solution on a computer system comprises describing the software components of a solution instance comprising relationships between the software components, wherein the description is a logical description independent of a particular physical instantiation of the solution instance.
According to yet another aspect of the present invention, a computer program product for describing runtime components of a solution on a computer system, the computer program product comprises a computer readable medium having computer readable program code embodied therein. The computer readable program code comprises computer readable program code configured to describe the software components of a solution instance comprising relationships between the software components, wherein the description is a logical description independent of a particular physical instantiation of the solution instance.
Other aspects and features of the present invention, as defined solely by the claims, will become apparent to those ordinarily skilled in the art upon review of the following non-limited detailed description of the invention in conjunction with the accompanying figures.
As will be appreciated by one of skill in the art, the present invention may be embodied as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects all generally referred to herein as a “circuit” or “module.” Furthermore, the present invention may take the form of a computer program product on a computer-usable storage medium having computer-usable program code embodied in the medium.
Any suitable computer readable medium may be utilized. The computer-usable or computer-readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a nonexhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device. Note that the computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Computer program code for carrying out operations of the present invention may be written in an object oriented programming language such as Java7, Smalltalk or C++. However, the computer program code for carrying out operations of the present invention may also be written in conventional procedural programming languages, such as the “C” programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer. In the latter scenario, the remote computer may be connected to the user's computer through a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
The present invention is described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
A software component to be installed is packaged as an installable unit, which contains the “code” to be installed, together with a descriptor containing the information needed to install it. Installable units (IUs) are installed not into the operating system, but rather into a corresponding target hosting environment. For example, for a J2EE application (Java is a trademark of Sun Microsystems, Inc. in the United States, other countries, or both) the installer knows that it is installing this into a WebSphere application server (WebSphere is a trademark of International Business Machines Corporation in the United States, other countries, or both) WebSphere is a trademark of International Business Machines Corporation in the United States, other countries, or both) rather than into the operating system.
This design pattern can be used at all levels of the resource stack as shown in
Identity 104—The unique identifier for this component including manufacturer, version, compatibility with other versions, etc.
Environment checks and Requirements 105, 106—These describe the required properties and conditions of the hosting environment for this component.
Signatures 107—These describe how to determine if an installable unit is installed.
Instance properties 108—Key properties relating to the install,such as install path, port number.
In prior solutions, dependencies can only be described in terms of properties of the operating system, such as disk space, memory capacity, etc, or using custom pieces of code that can perform checks on the target hosting environment and which are run via the operating system. When the installer knows the target hosting environment, these dependencies can be described in terms of properties of the target hosting environment. The relevant properties of the hosting environment need to be exposed to allow this, but this is once per hosting environment, rather than per installable unit and in many cases these will already be available through existing management interfaces.
The installer does not need to understand the internals of an artifact, simply the parameters that are required to install it. The descriptor provides all the information needed by an installer, leaving the artifact itself as an opaque object. The only responsibility that the installer has is to make it available to the install interface on the target hosting environment.
The installer program can implement a generic install mechanism that can be applied to any artifact type and any hosting environment. The hosting environment is responsible for knowing how to install its artifact types, and the component packaging no longer has to include anything to map the install to operating system commands.
This approach has most value when the hosting environments all provide a common set of interfaces for install, uninstall, dependency checking and so on. Even without this, the fact that all things that must be deployed are described in a common way, with common description of their requirements their environment is still of value as it allows installers to reason about all artifact types in a common way.
The details of exactly what information is stored, or how, is not important to this disclosure. The descriptor might contain a single installable unit, or it might allow multiple installable units to be aggregated into a single package.
The installer presents the user with a list of all hosting environments and lets them choose 111. In this case, it is possible for the user to select one that does not support the given artifact type.
The descriptor 101 identifies the type of the artifact 102. The installer looks in a registry of hosting environments to find one or more that says that it hosts the particular artifact type—i.e. The artifact can be installed in it. The installer can then allow the user to select one (or more) from this list.
The descriptor 101 includes dependencies that describe the required hosting environment. For example, the descriptor 101 might indicate that the target hosting environment 103 must be a J2EE application server. The installer can then use this to locate an appropriate target.
This descriptor 101 shows dependencies that apply to either the immediate hosting environment of the artifact, or the operating system on which that hosting environment sits (e.g. disk space). However, there is no reason why dependencies outside this scope should not be used. For example, an EAR (Enterprise Archive) file needs to be located on a WebSphere application server that is using a DB2 database, rather than any other type of database.
A description is now provided of a method and apparatus for describing and packaging solutions for a computer system. A mechanism is provided for describing the targets of a solution in terms of the requirements that each software component has on its own target hosting environment and also the requirements that the solution itself imposes.
Referring to
The target elements 505 within the topology section 501 together describe the logical topology onto which the solution should be deployed. This logical topology is specified in terms of the requirements on the target hosting environments within the topology, including the relationships between them. It is also possible that the requirements may involve manageable resources that are not themselves hosting environments but which are used to establish requirements on targets. For example, locating a database that already has a particular database table within it.
The target element 503 within the content section 502 points to one of the targets in the logical topology, and specifies the target hosting environment for the associated installable unit 506. It may describe additional requirements for the installable unit. These are solution-level requirements that override or add to the requirements already defined within the installable unit.
Characteristics of the logical topology definition include:
One logical target may be mapped to multiple physical targets. A target scope statement 507 defines whether a logical target should be mapped to one, some or all of the candidate targets.
Requirements on a logical target are divided into selection requirements 508, which are used to define a candidate list of targets; and validation requirements 509, which are used to validate the selected targets.
Each installable unit may specify additional requirements 504 on the relationships between targets, or on characteristics of a target, including its properties, status and contents (e.g. the software installed into it).
The overall process for developing and deploying a solution is described below with reference to
The solution is then packaged as one or more solution module 606, at which point the logical topology is defined, and distributed to solution deployers 607. The solution deployer 607 makes installation-specific decisions about how the solution module is to be configured, and the solution deployment tooling assists in mapping the logical topology defined in the solution module onto the physical topology 608. The solution components (in the form of installable units) are then distributed and installed 609.
The described method focuses on the way the logical topology is described in the solution module definition and its use during deployment. The main way in which the logical topology is used is to support automated assistance in selecting the physical targets onto which the solution is to be deployed. Manual installation can intervene if there is an ambiguity.
The characteristics of the way the logical topology may be mapped to a physical topology is illustrated in the following example with reference to
The elements of the logical topology 710 it is targeted at are:
T1, the B2B Gateway (PAM (Plugable Authentication Module for Linux)), which hosts multiple channel engines and process engines;
T2, one process engine within T1;
T3, all of the channel engines within T1;
T4, the operating systems on which the channel engines are located, which must be Microsoft Windows 2K (Microsoft and Windows are registered trademarks of Microsoft Corporation in the United States, other countries, or both).
The logical targets 710 are mapped to physical targets 720. A possible high-level algorithm for deploying a solution module is as follows:
Select solution module.
Analyse contents. The input is the solution module definition. The output is a list of single-target installable units, their dependencies, and their targeting requirements.
Plan deployment. This results in a list of resolved targets, identifying which artifacts are to be deployed where.
Prepare for installation. The input is the list of installable units to be deployed, the dependency information and the target information. The output is a plan to be executed. This plan might be modified by the user, for example, to add scheduling information.
Install. The input is the deployment plan. Output will typically be returned asynchronously, and is the result of the installation.
The logical topology is primarily used in the “Plan deployment” step, in order to identify candidate targets. A possible algorithm for this is as follows:
Consolidate the complete set of logical topology requirements from the solution module and all embedded and referenced solution modules and installable units:
For each target in the logical topology:
This may require manual entry or selection of candidates, or an automated approach such as a search for matching targets in a registry.
For each target in the logical topology:
This might be done by a user, or automatically in accordance with some algorithm or policy.
For all embedded and referenced installable units, check that the requirements associated with that installable unit are satisfied by its resolved physical target(s).
The logical topology also supports defining solution parameters whose values are dependent on target characteristics, for example, properties or status. This addresses the problem of how to allow a solution to be configured in a context-sensitive manner. In a solution module, a parameter may be defined and associated with a property on a logical target. This parameter may then be used within the solution module, e.g. the parameter is associated with the property on a message queue that indicates which IP port the queue is receiving messages, and that is then used in the solution module when installing a component that will be sending messages to that queue.
A description is now provided of a method and apparatus for describing runtime components of a solution and their runtime dependencies in accordance with the present invention. One of the basic assumptions underlying this invention is that everything in a solution is a manageable resource. Any component in a system can be described and managed in a uniform way, at all levels of the software (and, potentially, the hardware) stack.
In this way the following are manageable resources:
The operating system and the elements inside the operating system such as file systems and processes;
The web application server, database server or a queue manager and the elements inside them such as J2EE applications, database tables, queues; and
The applications or solutions that run on the middleware and which may be composed of the elements such as J2EE applications, databases, etc.
The described method and apparatus is concerned with the composition of individual manageable resources into solutions, and how the runtime solutions can be managed. However, the same concepts could be applied at any level of the stack where an aggregate or group resource is composed of multiple individual resources for the purposes of management. For example, for managing server clusters.
The description provided above in relation to FIGS. 1 to 3 relates to how components of a solution can be installed. The description provided in relation to FIGS. 4 to 7 describes how solutions can be packaged for deployment and subsequent change management. This method differs in that it applies to the runtime management of a solution and how to monitor and administer the various runtime components of a solution. The solution may or may not have been installed via the mechanism described above in relation to FIGS. 1 to 7.
Referring to
A “solution instance” 804 is defined as a manageable resource that federates others together, and represents a higher-level entity that a user wants to monitor and control (for example, controls such as start, stop). Both solution modules 801 and solution instances 804 may be used at various levels of the software stack.
For example, a solution module may be used to create a “solution platform” 805, which may be a combination of a database 806, an application server 807, and a directory 808 configured together to perform as an e-business server. As a second example, a solution instance may be used to describe the application components 810 that provide one of the “solutions” 809 running on that solution platform 805.
Referring to
The administrator can see that the purchasing solution 901 has an overall status of “yellow” (shown as diagonal hatching) 907. The buyer application 902 and the buyer database 904 are operating normally as shown in “green” (shown as vertical hatching) 916. The B2B processes 906 are not operating and have a status of “red” (shown as checked hatching) 908. This results in an overall status of “yellow” for the purchasing solution 901 as the function of the overall solution is degraded but not completely stopped. If the buyer application 902 or the buyer database 904 were not operating, the overall solution status would be “red”.
It can be seen from
The key part of this description relates to how the information required to define and manage a solution instance is established in the runtime system, without requiring the writing of code for each solution instance. The concept is that a “solution specification sheet” (SSS) is defined when the solution is developed. This solution specification sheet contains the information which describes the components of the solution, the relationships between them, and the rules or constraints which determine how they should be managed. However, the solution specification sheet (like the solution module) is independent of any particular physical instantiation of the solution instance. Instead, it may be used either as part of the deployment process, or via a process of assisted discovery, to create a runtime representation of the solution instance which allows it to be managed.
An EAR file 1004 which contains a J2EE catalog application 1005;
A queue definition file 1006 which contains the definition of a queue 1007 to be used for orders;
A DDL (data definition language) file 1008 which contains the definition of the catalog database 1009.
These artifacts 1001 are packaged and defined in a solution module 1010. The solution tooling 1002 is also used to construct a solution specification sheet 1000, which describes the J2EE application 1005, queue 1007 and database 1009 and how the catalog solution (MySoln) 1014 federates 1012 these together. Although the example shows a one to one correspondence between artifacts 1001 in the solution module and components 1005, 1007, 1009 of a solution instance, this is not required. One artifact may cause the instantiation of multiple manageable resources. Furthermore, not all of those resources may be part of the solution instance. A solution instance may federate resources that are created by multiple solution modules or by other means.
During deployment, the artifacts 1001 in the solution module 1010 are targeted at and deployed to their receiving hosting environments. In this example, namely a WAS server 1015 for the EAR file 1004, an MQ server 1017 for the queue definition 1006, and a DB2 instance 1019 for the DDL file 1008.
The solution specification sheet 1000 is also targeted at a receiving environment that is capable of interpreting it. This environment has been called a “solution hosting environment” (SHE) 1024. As well as receiving the solution specification sheet 1000, the solution hosting environment 1024 also receives the list of target hosting environments from the deployment, and it uses this information in conjunction with the solution specification sheet 1000 to establish the identity of the components that are part of the solution instance. The solution specification sheet 1000 is deployed after the other solution artifacts 1001, so that the solution hosting environment 1024 can use the information provided to it to go out and automatically discover the manageable resource instances in the target hosting environments.
A similar process may be used for existing solutions, or ones which are not deployed using a solution module. In this case, instead of the deployment application constructing the list of target hosting environments that the solution hosting environment can use to discover the resource instances, this information must be provided by another means. One approach would be for the user to enter the list of hosting environments. Another would be to use information in the solution specification sheet to identify candidate hosting environments by searching in a registry or some other source of information, and then allowing a user to identify the actual hosting environments.
An identity of the solution instance 1101;
A set of target hosting environments 1102 relevant to the solution instance definition;
A set of components 1103 relevant to the solution instance definition; and
Solution characteristics 1104, such as relationships between the components.
In
Important characteristics of the solution specification sheet 1000 include the following:
The logical targets may map to multiple physical targets;
The logical components are described by defining the requirements on the components (e.g. their type, name or other characteristics, including required relationships to other components, such as the host's relationships in
Each logical component may map to multiple physical components;
The solution definition asserts the existence of relationships that define the solution instance and should be used to manage it (e.g. the federate relationships in
In this specific example, these operations are provided through a “touchpoint webservice” (TPWS) 1201. Installing the solution specification sheet 1000 causes the instantiation of a data object 1202 representing a solution instance within the solution hosting environment 1024. This data object 1202 includes a model 1203 of the manageable resource instances that comprise the solution.
For managing the solution instances 1202, the solution hosting environment 1024 exposes a set of standard operations 1204, for example, start, stop, getStatus. These operations 1204 can be applied to any solution instance 1202. The standard operations 1204 are provided through a TPWS 1206.
To implement these operations 1204, the solution hosting environment 1024 makes use of:
The manageable resource model 1203 that corresponds to the specific solution instance 1202;
Policy information 1205 that determines how operations 1204 should be applied; and
Optionally, executable or interpretable definitions (e.g. Code plugins or rules) which may have been provided for a specific solution instance 1207.
The above description shows how the runtime components of a computer solution can be described by a developer of a solution and managed by a user of the solution. The solution specification sheet provides a description of the components of the solution and their interrelationships. A solution hosting environment hosts the solution specification sheet and federates the resources used by the components described in the solution specification sheet. The solution specification sheet is used to describe a solution instance which can be displayed to a user as shown in
The present invention is typically implemented as a computer program product, comprising a set of program instructions for controlling a computer or similar device. These instructions can be supplied preloaded into a system or recorded on a storage medium such as a CD-ROM, or made available for downloading over a network such as the Internet or a mobile telephone network.
Improvements and modifications can be made to the foregoing without departing from the scope of the present invention.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “he” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Number | Date | Country | Kind |
---|---|---|---|
0326667.3 | Nov 2003 | GB | national |
0326668.1 | Nov 2003 | GB | national |
0408183.2 | Apr 2004 | GB | national |