To exploit benefits of cloud computing, it can be desirable to retarget applications, designed for execution in on-premise data centers, to the cloud. One option is to re-architect an application for the cloud environment. A less expensive option is to move the pre-existing application to the cloud for execution. However, there are several obstacles associated with moving the application. For example, the application is not guaranteed to run on the same machine or node. In fact, movement is common to address unexpected failures and reboots. This is troubling for stateful applications that expect a disk to be available to read and write. In one instance, a portion of node storage can be made available to a container in which a stateful application executes. However, if the container restarts or moves nodes, data is lost. To avoid data loss, an external store is typically utilized in place of local storage to separate the application from its data.
The following presents a simplified summary to provide a basic understanding of some aspects of the disclosed subject matter. This summary is not an extensive overview. It is not intended to identify key/critical elements or to delineate the scope of the claimed subject matter. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
Briefly described, the subject disclosure pertains to data-aware orchestration that facilitates lifting and shifting of existing applications and associated data into a distributed or cloud platform without developer action. An application can be encapsulated in a container that provides for non-native execution with respect to a distributed system platform. A driver can be employed to create and expose a volume to a container for saving application state data. The volume can be co-located with the application on a compute node. Further, the volume can be partitioned as well as replicated automatically on one or more compute nodes.
To the accomplishment of the foregoing and related ends, certain illustrative aspects of the claimed subject matter are described herein in connection with the following description and the annexed drawings. These aspects are indicative of various ways in which the subject matter may be practiced, all of which are intended to be within the scope of the disclosed subject matter. Other advantages and novel features may become apparent from the following detailed description when considered in conjunction with the drawings.
Stateful applications, which access and write data to a local disk, have traditionally been designed for, and run in, on-premise data centers. For instance, application processing logic can read from and write to a database. To exploit benefits of cloud computing, it may be desirable to execute an on-premise application in a cloud or distributed environment. In one instance, an application can be re-coded natively for a distributed system, which is expensive in terms of time and resources. Further, distributed systems involve unexpected failures caused by power failure and reboots for updates, among other things. Stateful applications thus need to ensure data is not lost in failure cases, which is typically accomplished through use of a remote data store. Remote data stores, however, have several disadvantages. First, there is a latency cost associated with remote access that negatively affects processing time. Second, if the same service runs on multiple virtual machines or multiple services run on different machines that are all utilizing the same storage, there is a data consistency problem. Additionally, if a cache is used to expedite processing, some writes might not have been pushed to the remote data store before failure and thus some transaction data may be lost. Another disadvantage of such a cache is that if a container moves nodes, the cache will need to be built up again and until then some latency will be present.
The subject description pertains to data-aware orchestration in conjunction with a distributed system platform that permits lifting and shifting of pre-existing applications and associated data without developer action. A distributed system platform, or framework, comprises a set of services to facilitate deploying and managing cloud applications, wherein cloud applications are applications that rely on remote servers for processing logic and data storage that is network accessible by way of the internet and a web browser, for example. In accordance with one implementation, code associated with an existing on-premise application can be packaged in a container and provided to the distributed system platform for execution as a cloud application. A volume driver enables projection of a storage volume into the application space such that the packaged code can interact with a local store. Furthermore, a driver service can trigger replication of local data on one or more other storage nodes. In this manner, data access is fast in comparison to latency associated with a network hop to acquire data from a remote network-accessible store. Further, data replicas enable data to be persistent and safe in the event of a crash or other failure. In other words, an existing database application and store can be lifted from an on-premise system and shifted to execute in a cloud environment such that the application and store are highly available and reliable without further developer action. In addition to replication, simple declarative partitioning is enabled in which a workload can be distributed across a number of available machines.
Various aspects of the subject disclosure are now described in more detail with reference to the annexed drawings, wherein like numerals generally refer to like or corresponding elements throughout. It should be understood, however, that the drawings and detailed description relating thereto are not intended to limit the claimed subject matter to the particular form disclosed. Rather, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the claimed subject matter.
Referring initially to
The driver component 120 and the driver service component 130 can form part of distributed system platform 140 and services provided thereby. The distributed system platform 140 provides a means for deploying and managing distributed or cloud-native applications across a cluster of compute nodes. The local data store 150 can correspond to a non-volatile computer-readable storage medium on a compute node such as a computer or virtual machine.
Turning attention to
In some instances, storage needs might be so large that more than one machine is needed. The partition component 220 can trigger or enable multiple partitions to be established across multiple cluster nodes for storage of application code and state data. Moreover, the partition component 220 can perform such actions in response to declarative specification by a developer or the like as to how many partitions are desired or needed. By way of example, one can indicate that an application, or service, is to have two gigabytes of disk and ten instances of the service. In response, the partition component 220 can partition data automatically such that there are ten instances of a service running in parallel each pointing to their own sliver of two gigabytes of a volume disk.
The replication component 230 can generate replicas of data stores on different nodes of a cluster to support failover and provide high availability, wherein high availability refers to an ability of an application, service, or resource to remain constantly accessible even when confronted with disruptions. In response to declarative specification as to the number of replicas desired, the replication component 240 can enable or trigger generation of such replicas as well as automatic update of the replicas as changes occur. Stated differently, local data co-located with a corresponding application can be copied, or shadowed, to one or more data replicas. As a result, if a failure occurs, data loss is prevented by reacquiring data from a replica.
Referring briefly to
While the data storage structure 300 shows support for a stateful data store associated with an application, it should be appreciated that the stateless application, or instance thereof, can also be saved to the volume disk to enable partitioning and replication of the application and its state. Further, if the application crashes, the local copy of the application can allow for fast recovery. Additionally, data-aware orchestration seeks to ensure co-location of an application and data and consistent movement thereof. To that end, if an application fails movement can be to a location where the data already exists and if the data fails movement can be to a location where the application already exists. Replication and failover to an already present replica is expeditious and solves problems associated can with traditional use of remote stores, wherein transaction data can be lost due employment of a cache whose data is not pushed to the remote store prior to failure and subsequent latency associated with re-building a cache.
Turning attention to
In operation, the application 112 can issue a read or write request to the volume 114 projected in the container component 110. The read or write request is next provided to the driver component 120, which subsequently passes the request to the kernel driver component 122. The kernel driver component 122 then sends the request to the driver service component 130, which ultimately processes the request with respect to the local data store 150 to read or write data in accordance with the request. In response to processing of the request, the same path can be traversed backward to return read data or a write confirmation.
In accordance with one or more embodiments, data can be classified into two or more classes, such as hot and cold. Hot data denotes data that is frequently accessed, and cold data identifies data that is infrequently accessed. Data can be deemed hot or cold data based on observed and/or predicted usage. Further, one or more thresholds can be specified to define when data usage is frequent versus infrequent. Furthermore, data may change classes over time. Hot data can be saved locally co-located on the same compute node with computations that operate over the data for fast processing. Cold data can be saved to a remote compute node. Further, hot and cold classes of data can inform a decision regarding hardware. For instance, hot data can be stored on premium disks, non-volatile random-access memory (NVRAM), or other technologies for speed, while cold data can be placed on spinning disk drives. Moreover, hardware placement decisions can be utilized even if all data is stored on a single node or substrate. One or more components of the distributed system platform 140 can perform classification and data placement, including, but not limited to, the driver component 120 and the driver service component 130.
The aforementioned systems, architectures, platforms, environments, and the like have been described with respect to interaction between several components. It should be appreciated that such systems and components can include those components or sub-components specified therein, some of the specified components or sub-components, and/or additional components. Sub-components could also be implemented as components communicatively coupled to other components rather than included within parent components. Further yet, one or more components and/or sub-components may be combined into a single component to provide aggregate functionality. For example, the driver component 122 and driver service component 130 may be combined into a single component. Communication between systems, components and/or sub-components can be accomplished in accordance with either a push and/or pull model. The components may also interact with one or more other components not specifically described herein for the sake of brevity, but known by those of skill in the art. By way of example, and not limitation, each compute node can include inter and intra communication services to enable at least node set up and replication.
Furthermore, various portions of the disclosed systems above and methods below can include or employ artificial intelligence, machine learning, or knowledge or rule-based components, sub-components, processes, means, methodologies, or mechanisms (e.g., support vector machines, neural networks, expert systems, Bayesian belief networks, fuzzy logic, data fusion engines, classifiers . . . ). Such components, inter alia, can automate certain mechanisms or processes performed thereby to make portions of the systems and methods more adaptive as well as efficient and intelligent. By way of example, and not limitation, such mechanisms can be utilized in conjunction with partitioning data to predict which data will be utilized frequently and ensure that such data is stored locally as opposed to remotely. Further, predictions regarding potential failures can be utilized to trigger generation of one or more additional replicas. Further yet, such mechanism can be utilized to classify data (e.g., hot, warm, cold) based on predicted usage frequency.
In view of the exemplary systems described above, methods that may be implemented in accordance with the disclosed subject matter will be better appreciated with reference to flow chart diagrams of
In accordance with some embodiments, the application and state data can correspond to a database system and local stored procedures that execute over the database. Further, traditional on-premise workloads use a database that is setup separately to make the data highly available. With aspects disclosed herein the database can be moved in a container to the cloud and made highly available through replication.
Aspects of the subject disclosure pertain to the technical problem of lifting and shifting an application from a first execution environment to a second execution environment different from the first execution environment. For example, an application encoded for execution in an on-premise data center can be lifted and shifted to a distributed or cloud environment. Technical mechanisms are utilized to orchestrate non-native execution of an application in conjunction with a distributed system platform. The application can be encapsulated for execution in a container and a driver can be employed to expose a volume to the application for state storage. Further, the driver can create a volume from a distributed-system platform store on a compute node, and partitioning and replication can be performed automatically based on declarative specification of a number of partitions and/or replicas. Furthermore, the application and data are co-located on a compute node and data-aware orchestration is performed to ensure such collocation even after a failure.
Portions of this disclosure focus on lift and shift migration in which an application or operation is lifted from an on-premise environment and shifted to a cloud environment without requiring re-architecting for the cloud environment. However, this is not meant to be limiting. Other embodiments can shift applications from one data center to another. Further, aspects of the disclosure are applicable to newly architected applications or operations as opposed to preexisting applications or operations.
The subject disclosure various products and processes that perform, or are configured to perform, various actions regarding data-aware orchestration. What follows are one or more exemplary systems and methods.
A system comprises: a processor coupled to a memory that includes machine-executable instructions that when executed by the processor perform the following acts in conjunction with a distributed system platform: creating a volume on a local store of a compute node, responsive to a container comprising a user application, wherein the user application is non-native with respect to the distributed system platform; exposing the volume to the container from which application data can be saved and retrieved by the application in the container, wherein the local store and the container are co-located on the compute node; and automatically replicating the application and the application data on a predetermined number of additional compute nodes in a distributed cluster. The system further comprises switching to a replica on a different compute node comprising the application and the application data after a failure. Further, the system comprises automatically partitioning the application and the application data across multiple compute nodes based on a predetermined number of partitions, and automatically replicating application partitions on the predetermined number of additional compute nodes in the distributed cluster. In one instance, the local store forms part of a state store of the distributed system platform on the compute node. Further, the replication service of the distributed system platform automatically replicates the data in the state store across the predetermined number of compute nodes. Also, the volume is partitioned, wherein the local store comprises frequently accessed data and less frequently accessed data is stored on a remote compute node. In another instance, the application is a preexisting on-premise application. In still another instance, the the compute node is one of a plurality of virtual machines that exist on a physical machine.
A method comprises: executing, on a processor, instructions that cause a distributed system platform to perform the following actions: identifying a container comprising a user application, wherein the user application is non-native with respect to the distributed system platform; creating a volume on a local store, wherein the local store and container are co-located on a compute node; exposing the volume to the container from which application data can be saved and retrieved by the application of the container; and automatically replicating the user application and the application data from the local store to a one or more different compute nodes. The method further comprises updating the one or more different compute nodes with application data changes. Further, the method comprises switching processing to one of the one or more different compute nodes comprising replicas of the application and the application data after a failure on the compute node. The method also comprises recovering from crash, in which the application terminates or stops functioning properly, with local data accessible by way of the exposed volume. The method further comprises automatically partitioning the application and the application data across multiple compute nodes in accordance with a predetermined number of partitions, and routing an external transaction to a corresponding compute node of the multiple compute nodes based on data utilized by the transaction. Furthermore, the method comprises partitioning the application data such that frequently utilized data is stored in the local store and infrequently utilized data is stored in a remote compute node.
A system comprises: a processor coupled to a memory that includes computer executable instructions that when executed on the processor provides a distributed system platform, comprising: a volume driver that initiates creation of a volume on a local store and exposes the volume to a container from which data can be saved and retrieved by a user application encapsulated in the container, wherein the container and local store are co-located on a compute node and the user application is non-native to the distributed system platform; and a replicator that automatically replicates the application and saved data in the local store on a predetermined number of additional compute nodes in a distributed system cluster. In one instance, the distributed system platform further comprises a partition component that automatically partitions the application and saved data across multiple compute nodes in accordance with a predetermined number of partitions. Further, the distributes system platform automatically switches primary processing to one of the additional compute nodes comprising replicas of the application and the application data after a failure on the compute node. Furthermore, the local store is built on a state store of the distributed system platform on the compute node.
As used herein, the terms “component” and “system,” as well as various forms thereof (e.g., components, systems, sub-systems . . . ) are intended to refer to a computer-related entity, either hardware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, a processor, an object, an instance, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a computer and the computer can be a component. One or more components may reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers.
The conjunction “or” as used in this description and appended claims is intended to mean an inclusive “or” rather than an exclusive “or,” unless otherwise specified or clear from context. In other words, “‘X’ or ‘Y’” is intended to mean any inclusive permutations of “X” and “Y.” For example, if “‘A’ employs ‘X,’” “‘A employs ‘Y,’” or “‘A’ employs both ‘X’ and ‘Y,’” then “‘A’ employs ‘X’ or ‘Y’” is satisfied under any of the foregoing instances.
Furthermore, to the extent that the terms “includes,” “contains,” “has,” “having” or variations in form thereof are used in either the detailed description or the claims, such terms are intended to be inclusive in a manner similar to the term “comprising” as “comprising” is interpreted when employed as a transitional word in a claim.
To provide a context for the disclosed subject matter,
While the above disclosed system and methods can be described in the general context of computer-executable instructions of a program that runs on one or more computers, those skilled in the art will recognize that aspects can also be implemented in combination with other program modules or the like. Generally, program modules include routines, programs, components, data structures, among other things that perform particular tasks and/or implement particular abstract data types. Moreover, those skilled in the art will appreciate that the above systems and methods can be practiced with various computer system configurations, including single-processor, multi-processor or multi-core processor computer systems, mini-computing devices, mainframe computers, as well as personal computers, hand-held computing devices (e.g., personal digital assistant (PDA), smart phone, tablet, watch . . . ), microprocessor-based or programmable consumer or industrial electronics, and the like. Aspects can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. However, some, if not all aspects, of the disclosed subject matter can be practiced on stand-alone computers. In a distributed computing environment, program modules may be located in one or both of local and remote memory devices.
With reference to
The processor(s) 1120 can be implemented with a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any processor, controller, microcontroller, or state machine. The processor(s) 1120 may also be implemented as a combination of computing devices, for example a combination of a DSP and a microprocessor, a plurality of microprocessors, multi-core processors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. In one embodiment, the processor(s) 1120 can be a graphics processor.
The computer 1102 can include or otherwise interact with a variety of computer-readable media to facilitate control of the computer 1102 to implement one or more aspects of the disclosed subject matter. The computer-readable media can be any available media that can be accessed by the computer 1102 and includes volatile and nonvolatile media, and removable and non-removable media. Computer-readable media can comprise two distinct and mutually exclusive types, namely computer storage media and communication media.
Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes storage devices such as memory devices (e.g., random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM) . . . ), magnetic storage devices (e.g., hard disk, floppy disk, cassettes, tape . . . ), optical disks (e.g., compact disk (CD), digital versatile disk (DVD) . . . ), and solid state devices (e.g., solid state drive (SSD), flash memory drive (e.g., card, stick, key drive . . . ) . . . ), or any other like mediums that store, as opposed to transmit or communicate, the desired information accessible by the computer 1102. Accordingly, computer storage media excludes modulated data signals as well as that described with respect to communication media.
Communication media embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media.
Memory 1130 and mass storage device(s) 1150 are examples of computer-readable storage media. Depending on the exact configuration and type of computing device, memory 1130 may be volatile (e.g., RAM), non-volatile (e.g., ROM, flash memory . . . ) or some combination of the two. By way of example, the basic input/output system (BIOS), including basic routines to transfer information between elements within the computer 1102, such as during start-up, can be stored in nonvolatile memory, while volatile memory can act as external cache memory to facilitate processing by the processor(s) 1120, among other things.
Mass storage device(s) 1150 includes removable/non-removable, volatile/non-volatile computer storage media for storage of large amounts of data relative to the memory 1130. For example, mass storage device(s) 1150 includes, but is not limited to, one or more devices such as a magnetic or optical disk drive, floppy disk drive, flash memory, solid-state drive, or memory stick.
Memory 1130 and mass storage device(s) 1150 can include, or have stored therein, operating system 1160, one or more applications 1162, one or more program modules 1164, and data 1166. The operating system 1160 acts to control and allocate resources of the computer 1102. Applications 1162 include one or both of system and application software and can exploit management of resources by the operating system 1160 through program modules 1164 and data 1166 stored in memory 1130 and/or mass storage device(s) 1150 to perform one or more actions. Accordingly, applications 1162 can turn a general-purpose computer 1102 into a specialized machine in accordance with the logic provided thereby.
All or portions of the disclosed subject matter can be implemented using standard programming and/or engineering techniques to produce software, firmware, hardware, or any combination thereof to control a computer to realize the disclosed functionality. By way of example and not limitation, the data-aware orchestration system 100 or portions thereof, can be, or form part, of an application 1162, and include one or more modules 1164 and data 1166 stored in memory and/or mass storage device(s) 1150 whose functionality can be realized when executed by one or more processor(s) 1120.
In accordance with one particular embodiment, the processor(s) 1120 can correspond to a system on a chip (SOC) or like architecture including, or in other words integrating, both hardware and software on a single integrated circuit substrate. Here, the processor(s) 1120 can include one or more processors as well as memory at least similar to processor(s) 1120 and memory 1130, among other things. Conventional processors include a minimal amount of hardware and software and rely extensively on external hardware and software. By contrast, an SOC implementation of processor is more powerful, as it embeds hardware and software therein that enable particular functionality with minimal or no reliance on external hardware and software. For example, the data-aware orchestration system 100 and/or functionality associated therewith can be embedded within hardware in a SOC architecture.
The computer 1102 also includes one or more interface components 1170 that are communicatively coupled to the system bus 1140 and facilitate interaction with the computer 1102. By way of example, the interface component 1170 can be a port (e.g. serial, parallel, PCMCIA, USB, FireWire . . . ) or an interface card (e.g., sound, video . . . ) or the like. In one example implementation, the interface component 1170 can be embodied as a user input/output interface to enable a user to enter commands and information into the computer 1102, for instance by way of one or more gestures or voice input, through one or more input devices (e.g., pointing device such as a mouse, trackball, stylus, touch pad, keyboard, microphone, joystick, game pad, satellite dish, scanner, camera, other computer . . . ). In another example implementation, the interface component 1170 can be embodied as an output peripheral interface to supply output to displays (e.g., LCD, LED, plasma, organic light-emitting diode display (OLED) . . . ), speakers, printers, and/or other computers, among other things. Still further yet, the interface component 1170 can be embodied as a network interface to enable communication with other computing devices (not shown), such as over a wired or wireless communications link.
What has been described above includes examples of aspects of the claimed subject matter. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the claimed subject matter, but one of ordinary skill in the art may recognize that many further combinations and permutations of the disclosed subject matter are possible. Accordingly, the disclosed subject matter is intended to embrace all such alterations, modifications, and variations that fall within the spirit and scope of the appended claims.
This application claims the benefit of U.S. Provisional Application No. 62/712,948 filed Jul. 31, 2018, the entirety of which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
9910712 | Antony | Mar 2018 | B2 |
20140181051 | Montulli | Jun 2014 | A1 |
20140181813 | Deshpande | Jun 2014 | A1 |
20140196056 | Kottomtharayil | Jul 2014 | A1 |
20140201737 | Mitkar | Jul 2014 | A1 |
20160004721 | Iyer | Jan 2016 | A1 |
20160077926 | Mutalik | Mar 2016 | A1 |
20160283281 | Antony | Sep 2016 | A1 |
20160359955 | Gill | Dec 2016 | A1 |
20160371153 | Dornemann | Dec 2016 | A1 |
20160373291 | Dornemann | Dec 2016 | A1 |
Entry |
---|
“International Search Report and Written Opinion Issued in PCT Application No. PCT/US19/038068”, dated Sep. 10, 2019, 14 Pages. |
Number | Date | Country | |
---|---|---|---|
20200042222 A1 | Feb 2020 | US |
Number | Date | Country | |
---|---|---|---|
62712948 | Jul 2018 | US |