A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
1. Field of Invention
The present invention is generally related to deployment of applications in an application server environment, and is particularly related to systems and methods for automatic hardware provisioning based on application characteristics.
2. Background
Typically, applications, such as Java applications, are deployed by first securing physical resources (such as gathering servers and group them into a cluster), and then performing deployment of the application to these physical resources. The hardware definition (i.e., the configuration of the physical resources) is static. As such, this technique does not allow for much flexibility when, e.g., the deployed applications require more computing power or less computing power. Such static definitions lead to poor hardware utilization optimization and added cost in terms of machines amortization and electric power consumption. Additionally, deployment is typically application server dependent. This means that switching from one application server (such as the Oracle Glassfish Server), to a different application server (such as Oracle WebLogic server), typically requires a new configuration, followed by a redeployment. These are the general areas that embodiments of the invention are intended to address.
As described herein, systems and methods are provided for automatically provisioning resources based on application characteristics. In accordance with an embodiment, a system can include a computer, including a computer readable medium and processor, and a template engine, executing on the computer. The template engine is configured to receive applications and associated metadata. The system can also include a virtualized environment, and a plurality of templates, each defining a different resource available within the virtualized environment. When the template engine receives an application and associated metadata, the template engine determines resource requirements for the application based on the associated metadata, compares the resource requirements with the plurality of templates, identifies appropriate templates for the resource requirements, and provisions resources in the virtualized environment using the appropriate templates. Hardware resources can then be allocated dynamically according to the needs of the virtualized environment. Such automatic provisioning eases deployment and undeployment of applications for users by simplifying the processes. Additionally, it allows for the allocated resources for a given application to by dynamically adjusted based on performance, which can be useful in any number of implementations, such as in cloud computing.
In the following description, the invention will be illustrated by way of example and not by way of limitation in the figures of the accompanying drawings. References to various embodiments in this disclosure are not necessarily to the same embodiment, and such references mean at least one. While specific implementations are discussed, it is understood that this is provided for illustrative purposes only. A person skilled in the relevant art will recognize that other components and configurations may be used without departing from the scope and spirit of the invention.
Furthermore, in certain instances, numerous specific details will be set forth to provide a thorough description of the invention. However, it will be apparent to those skilled in the art that the invention may be practiced without these specific details. In other instances, well-known features have not been described in as much detail so as not to obscure the invention.
As described herein, systems and methods are provided for automatically provisioning resources based on application characteristics. In accordance with an embodiment, a system can include a computer, including a computer readable medium and processor, and a template engine, executing on the computer. The template engine is configured to receive applications and associated metadata. The system can also include a virtualized environment, and a plurality of templates, each defining a different resource available within the virtualized environment. When the template engine receives an application and associated metadata, the template engine determines resource requirements for the application based on the associated metadata, compares the resource requirements with the plurality of templates, identifies appropriate templates for the resource requirements, and provisions resources in the virtualized environment using the appropriate templates. Hardware resources can then be allocated dynamically according to the needs of the virtualized environment. Such automatic provisioning eases deployment and undeployment of applications for users by simplifying the processes. Additionally, it allows for the allocated resources for a given application to by dynamically adjusted based on performance, which can be useful in any number of implementations, such as in cloud computing.
Additional advantages of such late binding include enabling the system to optimize the allocation of machines based on the application's characteristics and performance. The system can also increase or decrease the number of virtual machines used based on the application's usage statistics. Additionally, the density of applications running per server can be improved by moving/starting or stopping virtual machines. Application servers can be more easily maintained as hardware allocation is performed by the system upon application deployment. Also more efficient use of hardware can reduce hardware and power consumption costs.
Subsequently, one or more of the applications can be manually deployed 118 to the statically defined system, as shown at 120. In this example, the statically defined system has a plurality of servers (Server 1, 122, Server 2, 124, to server N, 126), each with its own resources, and to which two of the applications have been deployed. However, such a system suffers from being static. For example, if resources have been misallocated to the system (either too many or too few), the application may not function correctly or efficiently. Additionally, changes to such a system typically require the applications to be undeployed and then redeployed to a newly allocated system. This can cause the application to be unavailable during this period.
In accordance with an embodiment, virtualization can be used to associate physical resources (hardware infrastructure) to a deployment of an application dynamically and automatically. Physical resources do not need to be associated with an application before deployment, instead the appropriate physical resources can be dynamically determined and allocated during deployment. Additionally, by monitoring the performance of the deployed application, the physical resources which were initially allocated can be dynamically updated without requiring the application to be redeployed.
In accordance with an embodiment, applications can be deployed on one or more application server running in virtual machines, within a virtualization environment. Hardware (physical) resources can be provided based on characteristics of the application, instead of mapping applications to existing hardware resources. Thus, hardware allocation becomes a by-product of application deployment which provides the system with greater flexibility to customize environment to which the application is deployed (e.g., a cluster) based on the performance of the application.
In accordance with an embodiment, the virtualized environment can include one or more virtual machines. As shown in
After the application has been deployed to the virtualized environment, hardware is allocated 234 based on the resource requirements of the application. The hardware can be allocated from a backend hardware environment 236 which includes a plurality of generic hardware resources (238-242) such as hardware servers, computers, databases, etc. Both the virtualized environment to which the application is deployed, and the hardware environment which hosts the virtualized environment, can be updated dynamically without having to redeploy the application.
Once the template engine has determined the resource requirements of the application, it can compare them with the templates which are registered (i.e., available) with the template engine 306. The templates 308 can includes application server templates 310, message service templates 312, database templates 314, among others. The template engine can identify the appropriate templates 316 based on the application's resource requirements and the provision the appropriate resources using the identified templates 318. When the template engine provisions the appropriate resources, it obtains address information (such as IP addresses) for all of the resources. The template engine can then formally deploy the application using the address information for the resources so that the application can immediately communicate with all of the resources.
Subsequently, hardware resources can then be allocated 410 from the hardware environment 412. By deploying the application to a virtualized environment, and allocating hardware resources through a late binding, the resources allocated for a particular application can be dynamically adjusted according to the application's observed requirements, and further adjusted as the performance of the application requires.
As shown in
The method shown in
The present invention can be conveniently implemented using one or more conventional general purpose or specialized digital computer, computing device, machine, or microprocessor, including one or more processors, memory and/or non-transitory computer readable storage media programmed according to the teachings of the present disclosure. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.
In some embodiments, the present invention includes a computer program product which is a computer readable storage medium (media) having instructions stored thereon/in which can be used to program a computer to perform any of the processes of the present invention. The computer readable storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD -ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
The foregoing description of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to the practitioner skilled in the art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalence.