The present disclosure relates to auto-cloudifying applications in a runtime environment. More particularly, the present disclosure relates to replacing isolated runtime constructs with distributed runtime constructs while executing software applications originally designed to execute in an isolated runtime environment.
Software developers design software applications according to computing environment constraints of a particular computer system. For example, a software developer may include runtime constructs such as global variables and local disk access commands in a software application intended for a computer system executing an isolated, single instance of the software application. The software developer, however, does include such runtime constructs in a software application intended for a distributed computing environment that invokes multiple software application instances. Cloud computing is a form of a distributed computing environment that stores information, such as programs and data, in a “cloud” that supports multiple users and multiple software application instances.
In some situations for simplicity purposes, a software developer may write a software application prototype based on single-instance constraints even though a distributed computing environment is the software application's final computing environment. In these situations, after the software developer debugs the software application, the software developer changes various runtime constructs for the software application to execute correctly in a distributed computing environment.
According to one embodiment of the present disclosure, an approach is provided in which distributed runtime environment executes a software application that includes isolated runtime constructs corresponding to an isolated runtime environment. During the execution, the distributed runtime environment identifies isolated runtime constructs included in the software application and selects distributed runtime constructs corresponding to the isolated runtime constructs. In turn, the distributed runtime environment executes the distributed runtime constructs in lieu of executing the isolated runtime constructs.
The foregoing is a summary and thus contains, by necessity, simplifications, generalizations, and omissions of detail; consequently, those skilled in the art will appreciate that the summary is illustrative only and is not intended to be in any way limiting. Other aspects, inventive features, and advantages of the present disclosure, as defined solely by the claims, will become apparent in the non-limiting detailed description set forth below.
The present disclosure may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings, wherein:
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used herein, the singular forms “a”, “an” and “the” 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 corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present disclosure has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The embodiment was chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure for various embodiments with various modifications as are suited to the particular use contemplated.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or computer program product. Accordingly, aspects of the present disclosure 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 that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present disclosure may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage 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 magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages (e.g., interpreted languages such as Ruby, PHP (PHP Hypertext Preprocessor), etc. 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 or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including 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).
Aspects of the present disclosure are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. 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 medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions 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, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
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 that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The following detailed description will generally follow the summary of the disclosure, as set forth above, further explaining and expanding the definitions of the various aspects and embodiments of the disclosure as necessary.
As described herein, an isolated runtime environment executes on an isolated computing environment that is self-contained and executes software applications on a single-instance basis utilizing isolated runtime constructs such as those corresponding to non-local variables and local disk accesses. Non-local variables, as described herein, refers to data variables that are not scoped to a particular method or function, such as data stored in memory for the purpose of being available to subsequent process invocations (e.g., global variables). Also as described herein, a distributed runtime environment executes on a distributed computing environment that includes components located on networked computers, which communicate amongst each other by sending messages using mechanisms such as remote procedure calls and message queues. Cloud computing is a form of distributed computing that stores information, such as programs and data, in a “cloud” that is accessible to a network connected user.
Developer 100 creates source code 105, which developer 100 writes according to isolated runtime environment constraints (e.g., local disk runtime constructs, non-local runtime constructs, etc.). Compiler 120 compiles source code 105 to create application 130, which includes program code 140 targeted for isolated runtime environment 150. As such, isolated runtime environment 150 executes application 130 in a single instance, self-contained manner.
In addition to executing on isolated runtime environment 150, application 130 is also executable on distributed runtime environment 170 because, as discussed in greater detail below, distributed runtime environment 170 executes distributed runtime constructs during execution instead of isolated runtime constructs included in application 130. In turn, distributed runtime environment 170 may invoke multiple instances of application 130 on distributed computing network 140. In one embodiment, distributed runtime environment 170 uses memcache 175 and database store 185 to manage the multiple software application instances. As those skilled in the art can appreciate, memcache 175 is part of a general-purpose distributed memory caching system to increase dynamic database-driven accesses by caching data and objects in memory to reduce the number of times an external data source (such as a database or API) must be read. Database store 185 is, in one embodiment, a shared persistent storage that is accessed/shared by multiple clients and/or multiple application instances (see
Execution engine 230 commences execution and retrieves instructions (e.g., Java byte code) from runtime data areas 210. For each instruction, execution engine 230 determines whether the instruction includes an isolated runtime construct, such as a local disk runtime construct or a non-local variable runtime construct (see
Execution engine 230 executes the distributed runtime constructs and, as such, sends/receives non-local variable data 270 to/from memcache 175, and sends/receives disk access data 280 to/from database store 185, which are both located in distributed computing environment 180.
When execution engine 230 determines that an instruction corresponds to a runtime construct that is not specific to an isolated runtime environment, such as a local variable runtime construct, execution engine 230 executes the instruction as is.
When execution engine 230 detects an instruction that includes a local disk runtime construct, execution engine accesses distributed lookup table 200 (e.g., a Java class library) to identify a corresponding distributed database access runtime constraint (e.g. accessing a blob data type in a persistent data store). In turn, execution engine 230 utilizes the distributed database access runtime construct to access a distributed database (database store 185) in a distributed computing environment.
When execution engine 230 detects an instruction that includes a non-local variable runtime construct, execution engine 230 identifies a distributed variable runtime constraint corresponding to the non-local variable runtime constraint. For example, execution engine 230 may replace local variable accesses to execute with memcache accesses backed by a shared remote persistent store. In turn, execution engine 230 utilizes the distributed variable runtime construct to send/receive data to/from a shared memory area (e.g., memcache 175) in a distributed computing environment.
The distributed runtime environment determines whether an instance of the software application is currently executing (decision 520). For example, in a Java-based runtime environment, a class loader loads shared files onto runtime data areas 210 the first time that a software application instance executes, which each subsequent software application instance shares. If the distributed runtime environment determines that a software application instance is not currently executing, decision 520 branches to the “No” branch, whereupon the distributed runtime environment initializes and loads shared application data (e.g., shared libraries) in the distributed runtime environment's runtime data areas 210 (step 530). On the other hand, if the distributed runtime environment determines that one or more instances of the software application are currently executing, decision 520 branches to the “Yes” branch, bypassing shared application data loading steps.
At step 540, the distributed runtime environment loads instance-specific application data in runtime data areas 210 for the newly requested instance. The distributed runtime environment invokes an instance of the distributed runtime environment's execution engine to execute the newly requested software application instance on distributed computer network 140 (pre-defined process block 550, see
When an execution engine instance terminates, the distributed runtime environment release the execution engine's instance-specific application data at step 560. The distributed runtime environment determines if other software application instances are executing (decision 570). If more instances are running, decision 570 branches to the “Yes” branch, which loops back to manage the execution engine instances. This looping continues until no more instances are running, at which point decision 570 branches to the “No” branch whereupon the distributed runtime environment releases shared application data stored in runtime data areas 210 (step 580), and ends software application processing at 590.
Processing commences at 600, whereupon the execution engine fetches an instruction (byte code) from runtime data areas 210 (step 610), and determines the runtime construct type of the instruction (decision 620). In one embodiment, the execution engine determines the instruction type by intercepting the request to access I/O runtime routines.
When the instruction type is a local disk runtime construct (e.g., File open, read, write, etc.), decision 620 branches the “Local Disk” branch, whereupon the execution engine accesses distributed lookup table 220 to retrieve a distributed database runtime construct corresponding to the local disk runtime construct (step 630, see
Referring back to decision 620, when the runtime construct is a non-local variable runtime construct, such as one that includes a global variable, decision 620 branches the “Non-Local Variable” branch, whereupon the execution engine identifies a distributed variable runtime construct corresponding to the non-local variable runtime construct (step 650, see
Referring back to decision 620, when the runtime construct is different than a local disk runtime construct or a non-local variable runtime construct, decision 620 branches to the “Other” branch, whereupon the execution instance executes the instruction as designed (step 670).
The execution engine determines whether to continue to execute the application instance (decision 680). If the execution engine should continue execution, decision 680 branches to the “Yes” branch, whereupon the execution engine instance retrieves and processes another instruction. This looping continues until the execution engine instance should terminate, at which point decision 680 branches to the “No” branch, whereupon processing returns at step 690.
Northbridge 715 and Southbridge 735 connect to each other using bus 719. In one embodiment, the bus is a Direct Media Interface (DMI) bus that transfers data at high speeds in each direction between Northbridge 715 and Southbridge 735. In another embodiment, a Peripheral Component Interconnect (PCI) bus connects the Northbridge and the Southbridge. Southbridge 735, also known as the I/O Controller Hub (ICH) is a chip that generally implements capabilities that operate at slower speeds than the capabilities provided by the Northbridge. Southbridge 735 typically provides various busses used to connect various components. These busses include, for example, PCI and PCI Express busses, an ISA bus, a System Management Bus (SMBus or SMB), and/or a Low Pin Count (LPC) bus. The LPC bus often connects low-bandwidth devices, such as boot ROM 796 and “legacy” I/O devices (using a “super I/O” chip). The “legacy” I/O devices (798) can include, for example, serial and parallel ports, keyboard, mouse, and/or a floppy disk controller. The LPC bus also connects Southbridge 735 to Trusted Platform Module (TPM) 795. Other components often included in Southbridge 735 include a Direct Memory Access (DMA) controller, a Programmable Interrupt Controller (PIC), and a storage device controller, which connects Southbridge 735 to nonvolatile storage device 785, such as a hard disk drive, using bus 784.
ExpressCard 755 is a slot that connects hot-pluggable devices to the information handling system. ExpressCard 755 supports both PCI Express and USB connectivity as it connects to Southbridge 735 using both the Universal Serial Bus (USB) the PCI Express bus. Southbridge 735 includes USB Controller 740 that provides USB connectivity to devices that connect to the USB. These devices include webcam (camera) 750, infrared (IR) receiver 748, keyboard and trackpad 744, and Bluetooth device 746, which provides for wireless personal area networks (PANs). USB Controller 740 also provides USB connectivity to other miscellaneous USB connected devices 742, such as a mouse, removable nonvolatile storage device 745, modems, network cards, ISDN connectors, fax, printers, USB hubs, and many other types of USB connected devices. While removable nonvolatile storage device 745 is shown as a USB-connected device, removable nonvolatile storage device 745 could be connected using a different interface, such as a Firewire interface, etcetera.
Wireless Local Area Network (LAN) device 775 connects to Southbridge 735 via the PCI or PCI Express bus 772. LAN device 775 typically implements one of the IEEE 802.11 standards of over-the-air modulation techniques that all use the same protocol to wireless communicate between information handling system 700 and another computer system or device. Optical storage device 790 connects to Southbridge 735 using Serial ATA (SATA) bus 788. Serial ATA adapters and devices communicate over a high-speed serial link. The Serial ATA bus also connects Southbridge 735 to other forms of storage devices, such as hard disk drives. Audio circuitry 760, such as a sound card, connects to Southbridge 735 via bus 758. Audio circuitry 760 also provides functionality such as audio line-in and optical digital audio in port 762, optical digital output and headphone jack 764, internal speakers 766, and internal microphone 768. Ethernet controller 770 connects to Southbridge 735 using a bus, such as the PCI or PCI Express bus. Ethernet controller 770 connects information handling system 700 to a computer network, such as a Local Area Network (LAN), the Internet, and other public and private computer networks.
While
The Trusted Platform Module (TPM 795) shown in
While particular embodiments of the present disclosure have been shown and described, it will be obvious to those skilled in the art that, based upon the teachings herein, that changes and modifications may be made without departing from this disclosure and its broader aspects. Therefore, the appended claims are to encompass within their scope all such changes and modifications as are within the true spirit and scope of this disclosure. Furthermore, it is to be understood that the disclosure is solely defined by the appended claims. It will be understood by those with skill in the art that if a specific number of an introduced claim element is intended, such intent will be explicitly recited in the claim, and in the absence of such recitation no such limitation is present. For non-limiting example, as an aid to understanding, the following appended claims contain usage of the introductory phrases “at least one” and “one or more” to introduce claim elements. However, the use of such phrases should not be construed to imply that the introduction of a claim element by the indefinite articles “a” or “an” limits any particular claim containing such introduced claim element to disclosures containing only one such element, even when the same claim includes the introductory phrases “one or more” or “at least one” and indefinite articles such as “a” or “an”; the same holds true for the use in the claims of definite articles.
Number | Name | Date | Kind |
---|---|---|---|
5278986 | Jourdenais | Jan 1994 | A |
6341368 | Deans | Jan 2002 | B1 |
6363433 | Nakajima | Mar 2002 | B1 |
7000006 | Chen | Feb 2006 | B1 |
7174370 | Saini | Feb 2007 | B1 |
7752626 | Pandey | Jul 2010 | B1 |
8127282 | Slattery | Feb 2012 | B2 |
8271653 | DeHaan | Sep 2012 | B2 |
8271974 | Mazhar et al. | Sep 2012 | B2 |
20080172658 | Russell | Jul 2008 | A1 |
20090119651 | Slattery | May 2009 | A1 |
20100306355 | Lagergren et al. | Dec 2010 | A1 |
20120030672 | Zygmuntowicz et al. | Feb 2012 | A1 |
20120096149 | Sunkara | Apr 2012 | A1 |
20120239825 | Xia et al. | Sep 2012 | A1 |
20130031158 | Salsburg et al. | Jan 2013 | A1 |
20130086549 | Riehl et al. | Apr 2013 | A1 |
20130091285 | Devarakonda et al. | Apr 2013 | A1 |
20130091557 | Gurrapu | Apr 2013 | A1 |
20140067864 | Holland et al. | Mar 2014 | A1 |
Entry |
---|
Almorsy, M., et al., SMURF: Supporting Multi-tenancy Using Re-Aspects Framework, 17th International Conference on Engineering of Complex Computer Systems (ICECCS), Jul. 18-20, 2012, pp. 361-370, [retrieved on Jul. 23, 2015], Retrieved from the Internet: <URL:http://ieeexplore.ieee.org/>. |
Nugraheni, E., Migration of Web Application SIMA into Multi-tenant SaaS, International Conference on ICT for Smart Society (ICISS), Jun. 13-14, 201, pp. 1-4, [retrieved on Jul. 23, 2015], Retrieved from the Internet: <URL:http://ieeexplore. ieee.org/>. |
Ghosh, “An Approach To Seamlessly Cloudify User-Generated Content From Mobile Devices,” Master's Thesis, Altoo University, Espoo, Finland, Aug. 25, 2011, 60 pages. |
“SmartCloud—System and Method for Faster VM Provisioning Time Utilizing Peers,” ip.com, disclosed anonymously, IPCOM000221313D, Sep. 2012, 5 pages. |
Office Action for U.S. Appl. No. 14/010,952 (Davis, “Auto-Cloudifying Applications Via Runtime Modifications,” filed Aug. 27, 2013), U.S. Patent and Trademark Office, mailed Nov. 17, 2014, 16 pages. |
Final Office Action for U.S. Appl. No. 14/010,952 (Davis, “Auto-Cloudifying Applications Via Runtime Modifications,” filed Aug. 27, 2013), U.S. Patent and Trademark Office, mailed Apr. 6, 2015, 14 pages. |
Notice of Allowance for U.S. Appl. No. 14/010,952 (Davis, “Auto-Cloudifying Applications Via Runtime Modifications,” filed Aug. 27, 2013), U.S. Patent and Trademark Office, mailed Aug. 3, 2015, 9 pages. |
Almorsy et al., “SMURF: Supporting Multi-tenancy Using Re-Aspects Framework,” 17th International Conference on Engineering of Complex Computer Systems (ICECCS), Paris, France, Jul. 2012, pp. 361-370. |
Nugraheni, “Migration of Web Application SIMA into Multi-tenant SaaS,” International Conference on ICT for Smart Society, Jakarta, Indonesia, Jun. 2013, 4 pages. |
Number | Date | Country | |
---|---|---|---|
20150067686 A1 | Mar 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14010952 | Aug 2013 | US |
Child | 14492314 | US |