In an Enterprise Resource Planning (ERP) system with multiple tenants, an ERP application (including table schema) is defined and stored as metadata in a shared application database. The present and future tenants (online or offline) include their own databases associated with the ERP database. The tenant databases include the business data owned by that tenant with a layout defined by the shared metadata definition.
In modern deployments, ERP systems are not static. Frequent updates are applied to ERP deployments including new functionality, features, regulatory obligations, and similar aspects. The updates result in changes to the shared schema. ERP systems with large number of tenants are challenged by inefficient schemes to propagate changes to the ERP system. Propagation of changes to all tenants result in difficulties and failures to synchronize because real time updates overload available ERP resources.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This summary is not intended to exclusively identify key features or essential features of the claimed subject matter, nor is it intended as an aid in determining the scope of the claimed subject matter.
Embodiments are directed to efficient maintenance and upgrade of tenant databases, on demand, in a multi-tenant enterprise resource planning (ERP) system with shared schema. In some example embodiments, schema changes may be propagated from a master to any number of tenants. Support may be provided for tenants to be offline. In addition, the changes may be applied at a mount time when the tenant connects to the ERP system. Database server load may be distributed when tenants are updated with new schema changes. Application metadata (table schemas) may be detected and applied to multiple tenants at a runtime.
These and other features and advantages will be apparent from a reading of the following detailed description and a review of the associated drawings. It is to be understood that both the foregoing general description and the following detailed description are explanatory and do not restrict aspects as claimed.
As briefly described above, efficient maintenance and upgrade of tenant databases may be achieved in a multi-tenant ERP system with shared schema. The schema change may be propagated from a master to any number of tenants. Support may be provided for tenants to be offline. In addition, the changes may be applied at a mount time when the tenants connect to the ERP system. Database server load may be distributed when tenants are updated with new schema changes. Furthermore, application metadata (table schemas) may be detected and applied to multiple tenants at a runtime.
In the following detailed description, references are made to the accompanying drawings that form a part hereof, and in which are shown by way of illustrations specific embodiments or examples. These aspects may be combined, other aspects may be utilized, and structural changes may be made without departing from the spirit or scope of the present disclosure. The following detailed description is therefore not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims and their equivalents.
While the embodiments will be described in the general context of program modules that execute in conjunction with an application program that runs on an operating system on a computing device, those skilled in the art will recognize that aspects may also be implemented in combination with other program modules.
Generally, program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that embodiments may be practiced with other computer system configurations, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, and comparable computing devices. Embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
Embodiments may be implemented as a computer-implemented process (method), a computing system, or as an article of manufacture, such as a computer program product or computer readable media. The computer program product may be a computer storage medium readable by a computer system and encoding a computer program that comprises instructions for causing a computer or computing system to perform example process(es). The computer-readable storage medium is a computer-readable memory device. The computer-readable storage medium can for example be implemented via one or more of a volatile computer memory, a non-volatile memory, a hard drive, and a flash drive.
Throughout this specification, the term “platform” may be a combination of software and hardware components to automate sharing of master schema across multiple tenants with dynamic update. Examples of platforms include, but are not limited to, a hosted service executed over a plurality of servers, an application executed on a single computing device, and comparable systems. The term “server” generally refers to a computing device executing one or more software programs typically in a networked environment. However, a server may also be implemented as a virtual server (software programs) executed on one or more computing devices viewed as a server on the network. More detail on these technologies and example embodiments may be found in the following description.
In diagram 100, an ERP service 108 may be provided by a datacenter 102 that hosts applications associated with the ERP service 108. The ERP service 108 may be provided to tenants 104 by the datacenter 102 through physical servers and virtual machines executed in those servers. The tenants 104 may be referred to as customers of the ERP service 108. Tenants 104 may be attached to or detached from the datacenter 102. An attach operation may be referred to as a mount operation at a mount time. A detach operation may be referred to as a dismount operation at a dismount time. An attach operation may establish a connection between one or more of the tenants 104 with the datacenter 102. The connection may include handshake protocols, a secure pipeline established through encrypted communications, and similar connection attributes. In addition, the tenants 104 may provide applications integrating the ERP service 108 to users 106. The applications may be executed on physical servers or virtual servers executed on those physical servers.
The tenants 104 may include organizations providing the applications. In an example configuration, the ERP service 108 may be provided to the tenants 104 with varying population of users 106. For example, a subset of the tenants 104 such as small businesses may provide ERP service to a subset of the users 106 subscribing to the applications provided by the small businesses. Applications of the small businesses may integrate and provide inventory control functionality of the ERP service 108. Another subset of the tenants 104 may include large businesses. The large businesses may provide applications integrating purchase management, shipping management, inventory management, and similar functionality of the ERP service 108.
Functionality of the ERP service 108 may be provided by distinct or integrated applications or services provided by the tenants 104. The users 106 may communicate with those applications integrating the ERP service 108 through a client application. The client application may include a browser rendering functionality of the ERP service 108 provided through applications of the tenant 104. The client application may render the functionality of the ERP service 108 while hiding the applications executing on tenants 104 or the functionality of the ERP service 108 integrated into the applications.
While the example system in
In diagram 200 of
According to some embodiments, the development tool 202 may lack access to tenant database 1 (206), tenant database 2 (208), and tenant database 3 (210). As such, the development tool 202 may be unable to perform schema changes to tables of the tenant databases 1 (206), 2 (208), and 3 (210). In addition, the tenant databases 1 (206), 2 (208), and 3 (210) may be unavailable during an edit operation by the development tool. In an example scenario, the tenant databases 1 (206), 2 (208), and 3 (210) may be offline, may not exist, or may be attached to another datacenter providing the ERP service.
The development tool 202 may update a table of the application database 204. A checksum of the metadata of the table may be computed by the development tool 202 when updating the table. The checksum may be stored. The tenant database 1 (206), 2 (208), and 3 (210) may be connected to the application database 204 through mount operations. One or more physical servers may manage the mount operations through an update application which executes business logic, read operations, and write operations to tables of the tenant database 1 (206), 2 (208), and 3 (210).
The server(s) managing the mount operations may host the tenant database 1 (206), 2 (208), and 3 (210). Alternatively, the server(s) may be intermediaries providing connection functionality between application database 204 and the tenant databases 1 (206), 2 (208), and 3 (210). The server(s) may detect changes to objects (metadata) within the application database (204) at startup of one of the tenant databases or by monitoring changes to the checksum at a runtime. The startup or an initiation of one of the tenant databases may be referred to as a mount time. The runtime may be referred to a period in which one of the tenant databases may be available to manage data consumed by clients 212, 214, and 216.
The schema checksum for the tables in the application database 204 may be retrieved and compared to the checksums stored in the tenant databases 1 (206), 2 (208), and 3 (210). Variations between the schema checksum and the checksums of the tenant databases may be interpreted as finding a change in an object (at the application database 204, or at one of the tenant databases). Lack of variation between the schema of the tenant databases and the application database 204 may be interpreted as the tenant databases 1 (206), 2 (208), and 3 (210) having matching schemas. The server managing the tenant databases 1 (206), 2 (208), and 3 (210) may be monitoring changes in checksum of the tenant databases and the application database 204 within a predetermined period. The predetermined period may be adjustable dynamically based on settings associated with the application database 204 and the tenant databases. Alternatively, the predetermined period may be a manually adjustable period by a privileged entity such as a user or another server.
Application of the schema change in the application database 204 may be postponed to one or more of the tenant databases 1 (206), 2 (208), and 3 (210) until a subsequent request by the tenant databases 1 (206), 2 (208), and 3 (210) on the application database 204. Postponing an application of a schema change may enable distribution in time of a load associated with a schema update process that may be resource expensive and overload resources associated with the application database 204.
In diagram 200 of
In diagram 300, the tables in
According to some embodiments, a development environment may manage a table 302 of an application database to provide templates for tenants to build applications. The development environment may not need a connection to a table 304 of a tenant database. The development environment may be unaware the tenant database. The tenant database may be managed by an update application executing in an application server. The development environment may provide a platform for developing an application for future deployment by the tenant. In addition, the development environment may be used to make changes to the tenant through the update application. Changes applied to the table 302 of the application database by the development environment may be detected by the update application and propagated to the table 304 of the tenant database. The table 302 and the table 304 may include ID, metadata, and checksum fields. The ID field may be an identification field associated with the metadata stored in the metadata field. The metadata field may include binary large object (BLOB) data, among others. The metadata field may store schema of applications and services to be provided by the tenants to clients or users. The checksum may include integer type data to reflect a status of the metadata stored by the tables 302 and 304.
The update application may synchronize the tenant database to the application database when a tenant is attached to an ERP service during a mount time. The update application may synchronize the tenant databases to apply changes at the application database to the tenant database. A synchronize tenant command may be invoked by the update application. Alternatively, an object metadata change monitor associated with the update application may detect a change. Synchronization may be optimized by using snapshots of metadata (ID based) and by collecting a list of changes. A comparison by the update application between the checksum of the table 302 and 304 may produce a selection for an action in a table 306. The table 306 may include operations to synchronize the tenant database to the application database.
The tenant actions in table 306 may include none. A comparison of the table 302 and the table 304 may produce a “none” selection. The “none” selection may indicate no changes between the tenant database and the application database. As such, no operations may be executed by the update application to synchronize the tenant database to the application database after a comparison of the table 302 and the table 304 produces a none selection.
Alternatively, a comparison of the table 302 and the table 304 may produce a modify selection. In response to determining a modify selection, the update application may modify an object in the tenant database based on a variance between the checksum of the tenant database and the checksum of the application database. On the other hand, if the checksums are different, the metadata from the blobs may be used to detect the actual changes. Furthermore, a comparison of the table 302 and table 304 may produce a remove selection. An absence of row entry in table 302 may cause the removal of an object from the tenant database. Moreover, a comparison of the table 302 and the table 304 may produce a create selection. The update application may create an object in the tenant database in response to an entry/row in table 302 and no corresponding row/entry in table 304.
The example scenarios and schemas in
Client applications executed on any of the client devices 411-413 may facilitate communications via application(s) executed by servers 414, or on individual server 416. A multi-tenant ERP system may propagate schema changes from a master to tenants. Support may be provided for offline tenants. The schema changes may be applied at a mount time when the tenants connect to the ERP system. A load on a database server of the ERP system may be distributed when tenants are updated with the schema changes. The ERP system may store a record associated with the changes and metadata in data store(s) 419 directly or through database server 418.
Network(s) 410 may comprise any topology of servers, clients, Internet service providers, and communication media. A system according to embodiments may have a static or dynamic topology. Network(s) 410 may include secure networks such as an enterprise network, an unsecure network such as a wireless open network, or the Internet. Network(s) 410 may also coordinate communication over other networks such as Public Switched Telephone Network (PSTN) or cellular networks. Furthermore, network(s) 410 may include short range wireless networks such as Bluetooth or similar ones. Network(s) 410 provide communication between the nodes described herein. By way of example, and not limitation, network(s) 410 may include wireless media such as acoustic, RF, infrared and other wireless media.
Many other configurations of computing devices, applications, data sources, and data distribution systems may be employed to provide maintenance and upgrade of tenant databases, on demand, in a multi-tenant ERP system with shared schema. Furthermore, the networked environments discussed in
Computing device 500 may also include a plurality of processing units that cooperate in executing programs. Depending on the exact configuration and type of computing device, the system memory 504 may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two. System memory 504 typically includes an operating system 505 suitable for controlling the operation of the platform, such as the WINDOWS® operating systems from MICROSOFT CORPORATION of Redmond, Wash. The system memory 504 may also include one or more software applications such as program modules 506, ERP service 522, and update application 524.
The ERP service 522 may propagate schema changes from a master to tenants. The update application 524 may enable changes to the schema at a mount time when the tenants connect to the ERP service 522. This basic configuration is illustrated in
Computing device 500 may have additional features or functionality. For example, the computing device 500 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in
Computing device 500 may also contain communication connections 516 that allow the device to communicate with other devices 518, such as over a wired or wireless network in a distributed computing environment, a satellite link, a cellular link, a short range network, and comparable mechanisms. Other devices 518 may include computer device(s) that execute communication applications, web servers, and comparable devices. Communication connection(s) 516 is one example of communication media. Communication media can include therein computer readable instructions, data structures, program modules, or other data. 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.
Example embodiments also include methods. These methods can be implemented in any number of ways, including the structures described in this document. One such way is by machine operations, of devices of the type described in this document.
Another optional way is for one or more of the individual operations of the methods to be performed in conjunction with one or more human operators performing some. These human operators need not be collocated with each other, but each can be only with a machine that performs a portion of the program.
Process 600 begins with operation 610, where a development tool may be enabled to edit metadata at an application database. At this stage, the development tool may be unaware of the tenant databases. At operation 620, a checksum of the metadata may be retrieved by an update application associated with the ERP system. The checksum may be computed and stored by a development tool when updating a metadata/definition of a table at the application database. At operation 630, the update application executing on a server that attaches the tenant databases to the application database at a mount time may detect changes to objects (metadata) of the application database either at startup or by monitoring to changes to the checksums at a runtime.
The operations included in process 600 are for illustration purposes. An ERP system according to embodiments may be implemented by similar processes with fewer or additional steps, as well as in different order of operations using the principles described herein.
The above specification, examples and data provide a complete description of the manufacture and use of the composition of the embodiments. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims and embodiments.
This application claims priority to U.S. Provisional Application Ser. No. 61/883,771 filed on Sep. 27, 2013. The provisional application is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
61883771 | Sep 2013 | US |