The present invention relates generally to the field of computing, and more specifically, to data processing and management.
Generally, Active/Active Sites is a network of independent computer processing systems where each system has access to a replication database in order to give each system access and usage of shared workloads. In an Active/Active Sites system environment all requests are load-balanced across all available processing systems. Where a failure occurs on a system, another system in the network takes its place. Active/Active Sites (i.e., A/A Sites) are designed to provide continuous availability, disaster recovery, and cross-region workload balancing for defined Active/Active Sites workloads associated with the Active/Active Sites system environment. Active/Active Sites workloads are currently limited to online transaction processing (OLTP) applications and data objects associated with the OLTP applications. Specifically, online transaction processing (OLTP) workloads are comprised of short transactions that perform business operations (such as changing/updating database records) across one or more database management systems (DBMS) on an Active/Active Sites system environment. Batch workloads are long running processes comprised of DBMS transactions that may modify large amounts of data and often uses storage outside of the DBMS (e.g., files) to record the progress of the process for recovery purposes.
Specifically, batch workloads or batch processing is an execution of a series of programs (“jobs”) on a computer without manual intervention. The input data to set up the batch workloads/jobs are preselected through scripts, command-line parameters, or job control language. More specifically, in batch processing, a program may utilize a set of data files as input, process the data, and may produce a set of intermediate and output data files to help facilitate the execution of the batch workloads. This operating environment is termed as “batch processing” since the input data is collected into batches of files and are processed in batches by the program.
A method for managing at least one batch job comprising a plurality of workloads executing on both a primary system and on a secondary system, and for synchronizing both software data and hardware data stored on the primary system with the secondary system using at least one proxy replication engine is provided. The method may include detecting a type of region switch request. The method may further include, in response to the detected type of region switch request, stopping the execution of the plurality of workloads on the primary system. The method may further include, in response to stopping the execution of the plurality of workloads, suspending a replication of the software data stored on the primary system with the software data stored on the secondary system, and suspending a replication of the hardware data stored on the primary system with the hardware data stored on the secondary system. The method may further include utilizing the at least one proxy replication engine to determine a point-in-time (PIT) at which the execution of the plurality of workloads on the primary system is stopped, at which the replication of the software data is suspended, and at which the replication of the hardware data is suspended, wherein utilizing the at least one proxy replication engine comprises using the at least one proxy replication engine to read from at least one secondary log the hardware data comprising a plurality of batch components associated with the plurality of workloads and the point-in-time (PIT).
The method may also include switching the replication of the software data that occurs from the primary system to the secondary system to occur from the secondary system to the primary system. The method may further include switching the replication of the hardware data that occurs from the primary system to the secondary system to occur from the secondary system to the primary system. The method may also include synchronizing the software data and the hardware data for the plurality of workloads up to the determined point-in-time (PIT) and based on the point-in-time (PIT) associated with the plurality of batch components. The method may further include activating the execution of the plurality of workloads on the secondary system from the determined point-in-time (PIT), and based on the switching of the replication of both the hardware data and the software data, and based on the synchronization of the software data and the hardware data up to the determined point-in-time (PIT) associated with the at least one proxy engine and the plurality of batch components.
A computer system for managing at least one batch job comprising a plurality of workloads executing on both a primary system and on a secondary system, and for synchronizing both software data and hardware data stored on the primary system with the secondary system using at least one proxy replication engine is provided. The computer system may include one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, whereby the computer system is capable of performing a method. The method may include detecting a type of region switch request. The method may further include, in response to the detected type of region switch request, stopping the execution of the plurality of workloads on the primary system. The method may further include, in response to stopping the execution of the plurality of workloads, suspending a replication of the software data stored on the primary system with the software data stored on the secondary system, and suspending a replication of the hardware data stored on the primary system with the hardware data stored on the secondary system. The method may further include utilizing the at least one proxy replication engine to determine a point-in-time (PIT) at which the execution of the plurality of workloads on the primary system is stopped, at which the replication of the software data is suspended, and at which the replication of the hardware data is suspended, wherein utilizing the at least one proxy replication engine comprises using the at least one proxy replication engine to read from at least one secondary log the hardware data comprising a plurality of batch components associated with the plurality of workloads and the point-in-time (PIT).
The method may also include switching the replication of the software data that occurs from the primary system to the secondary system to occur from the secondary system to the primary system. The method may further include switching the replication of the hardware data that occurs from the primary system to the secondary system to occur from the secondary system to the primary system. The method may also include synchronizing the software data and the hardware data for the plurality of workloads up to the determined point-in-time (PIT) and based on the point-in-time (PIT) associated with the plurality of batch components. The method may further include activating the execution of the plurality of workloads on the secondary system from the determined point-in-time (PIT), and based on the switching of the replication of both the hardware data and the software data, and based on the synchronization of the software data and the hardware data up to the determined point-in-time (PIT) associated with the at least one proxy engine and the plurality of batch components.
A computer program product for managing at least one batch job comprising a plurality of workloads executing on both a primary system and on a secondary system, and for synchronizing both software data and hardware data stored on the primary system with the secondary system using at least one proxy replication engine is provided. The computer program product may include one or more computer-readable storage devices and program instructions stored on at least one of the one or more tangible storage devices, the program instructions executable by a processor. The computer program product may include program instructions to detect a type of region switch request. The computer program product may further include program instructions to, in response to the detected type of region switch request, stop the execution of the plurality of workloads on the primary system. The computer program product may also include program instructions to, in response to stopping the execution of the plurality of workloads, suspending a replication of the software data stored on the primary system with the software data stored on the secondary system, and suspending a replication of the hardware data stored on the primary system with the hardware data stored on the secondary system. The computer program product may further include program instructions to utilize the at least one proxy replication engine to determine a point-in-time (PIT) at which the execution of the plurality of workloads on the primary system is stopped, at which the replication of the software data is suspended, and at which the replication of the hardware data is suspended, wherein utilizing the at least one proxy replication engine comprises using the at least one proxy replication engine to read from at least one secondary log the hardware data comprising a plurality of batch components associated with the plurality of workloads and the point-in-time (PIT).
The computer program product may also include program instructions to switch the replication of the software data that occurs from the primary system to the secondary system to occur from the secondary system to the primary system. The computer program product may further include program instructions to switch the replication of the hardware data that occurs from the primary system to the secondary system to occur from the secondary system to the primary system. The computer program product may also include program instructions to synchronize the software data and the hardware data for the plurality of workloads up to the determined point-in-time (PIT) and based on the point-in-time (PIT) associated with the plurality of batch components. The computer program product may further include program instructions to activate the execution of the plurality of workloads on the secondary system from the determined point-in-time (PIT), and based on the switching of the replication of both the hardware data and the software data, and based on the synchronization of the software data and the hardware data up to the determined point-in-time (PIT) associated with the at least one proxy engine and the plurality of batch components.
These and other objects, features and advantages of the present invention will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings. The various features of the drawings are not to scale as the illustrations are for clarity in facilitating one skilled in the art in understanding the invention in conjunction with the detailed description. In the drawings:
Detailed embodiments of the claimed structures and methods are disclosed herein; however, it can be understood that the disclosed embodiments are merely illustrative of the claimed structures and methods that may be embodied in various forms. This invention may, however, be embodied in many different forms and should not be construed as limited to the exemplary embodiments set forth herein. In the description, details of well-known features and techniques may be omitted to avoid unnecessarily obscuring the presented embodiments.
Embodiments of the present invention relate generally to the field of computing, and more particularly, to data processing and management. The following described exemplary embodiments provide a system, method and program product for resynchronizing at least one batch job comprising a plurality of workloads executing on both a primary system and on a secondary system by using at least one proxy replication engine. Specifically, proxy replication engines may be utilized to synchronize at a determined point-in-time (PIT) the restart of A/A Sites managed online transaction processing (OLTP) workloads and batch components that are associated with a batch job according to one embodiment. Furthermore, the present embodiment has the capacity to improve the technical field associated with restarting a batch job based on a planned or unplanned region switch by using proxy replication engines to read from secondary logs and synchronize the software data and hardware data associated with the batch job to thereby eliminate time conflicts that arises during the batch job restart. More specifically, the system, method and program product may manage and synchronize batch components and workloads associated with batch jobs while maintaining a point-in-time (PIT) consistency between the online transaction processing (OLTP) workloads and the batch components.
As previously described with respect to data processing and management, online transaction processing (OLTP) may include a transactional system that processes workloads comprising short transactions. For example, the OLTP workloads may include transactions that perform business operations across one or more database management systems (DBMSs). Batch processing may include long running batch jobs comprised of: 1) multiple OLTP workloads that modify large amounts of data objects, and 2) batch components, such as sets of intermediate data files as well as job scheduler states and plan files, to help facilitate the execution of the OLTP workloads. The batch components may be received as input (for example, from a user/administrator or based on computer machine-learning techniques), and be utilized to describe how, when, what order, and the state of the batch jobs that include the OLTP workloads.
Batch processing may be performed on one or more active sites in an Active/Active Sites system environment. Specifically, a standby site may be used in case of a system disaster to the one or more active sites and/or to share the processing of the batch jobs. More specifically, in an Active/Active continuous availability topology, there may be two or more sites where any given workload associated with a batch job can execute at a prescribed time or can be used to restart a batch job in case of a disaster. As such, Active/Active Sites (aka A/A Sites) are designed to provide continuous availability, disaster recovery, and cross-site workload balancing for defined Active/Active workloads. However, Active/Active workloads, such as OLTP workloads, are limited to workloads that can only be software replicated by capturing log records and replaying transactions. But batch jobs, particularly in a mainframe environment, may use some operations that are not software logged. These operations that are not software logged may include the batch components associated with the batch jobs such as the aforementioned intermediate data files and the job scheduler states and plan files. Such batch components must be considered in all planned and unplanned Active/Active workload and/or site switches.
While Active/Active Sites can currently provide software replication for the data objects targeted by the OLTP transactions associated with the batch jobs, support for the synchronization of batch components, such as intermediate data files as well as job scheduler states and plan files, that are critical for the successful re-processing of interrupted batch jobs during site switches, are only supported today using hardware. Specifically, the synchronization of batch components may include concurrent disk recovery (DR) sites that are synchronized using disk replication, and a procedural methodology to re-sync the software replicated OLTP workloads with the disk recovered data at the successor site.
However, in the current procedural methodology, since software replication and hardware replication are managed separately, the OLTP workload data associated with the Active/Active Sites may be inconsistent in time with the batch components once the resynchronization process is completed at a successor site. Specifically, the procedural methodology to re-sync an online transaction processing (OLTP) software replication with a hardware recovery disk replication site is hampered by data conflicts that arise during the resynchronization process between the disk replication of intermediate files and job scheduler states/plan files with the software replication of the OLTP workloads. These conflicts arise due to the natural point-in-time (PIT) inconsistency between batch components associated with disk replication, which manages PIT consistency at a track (or step-by-step) boundary, and the OLTP workloads associated with software replication, which manages point-in-time (PIT) consistency at a transactional boundary. Thus, the point-in-time (PIT) where the software replication and the disk replication of a batch job are resynchronized at the successor site may be inconsistent.
Therefore, the resynchronization may cause a discrepancy between the OLTP workload transaction files and the batch components (i.e. the intermediate data files, and the job scheduler states and plan files) during a batch job start or restart on the successor site. As such, it may be advantageous, among other things, to provide a system, method and computer program product for managing and synchronizing batch components and OLTP workloads associated with batch jobs while maintaining point-in-time (PIT) consistency between the OLTP workloads and the batch components. Specifically, in response to a planned, or unplanned, interruption of a batch job, the system, method, and program product may eliminate data and time inconsistencies between batch components and the OLTP workloads associated with the batch job start/restart by utilizing a proxy server to determine the point-in-time (PIT) of the interruption for the OLTP workload data and batch component data. More specifically, the system, method and computer program product may determine the point-in-time (PIT) of the interruption for the OLTP workload data and batch component data by reading from secondary replication logs, and use the proxy server to re-synchronize the batch components and the OLTP workloads up to the point-in-time of the planned, or unplanned, interruption.
According to at least one implementation of the present embodiment, a planned or unplanned system region switch may be detected between a primary system and a secondary system. Then, in response to the detection of the system region switch, the execution of a plurality of workloads on the primary system may be stopped. Next, in response to the detection of the system region switch, replication of the software data stored on the primary system with the software data stored on the secondary system may be suspended. Also, in response to the detection of the system region switch, replication of the hardware data stored on the primary system with the hardware data stored on the secondary system may be suspended. Then, one or more proxy replication engines may be utilized to determine/capture the point-in-time (PIT) at which the A/A Sites workloads are stopped, at which replication of the non-A/A Sites workload data (i.e. hardware-replicated batch components) that is associated with the A/A Sites workloads is suspended, and at which the A/A Sites workload data. Next, the replication of the software data that occurs from the primary system to the secondary system may be switched to occur from the secondary system to the primary system. Then, the replication of the hardware data that occurs from the primary system to the secondary system may be switched to occur from the secondary system to the primary system. Next, the one or more proxy replication engines may be utilized to restart the A/A Sites workloads by synchronizing the software data with the hardware data following the determined type of region switch. Then, the batch job resynchronization program 108A may activate execution of the A/A Sites workloads on the secondary system based the determined point-in-time (PIT).
The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: 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), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code 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. The computer readable program instructions 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). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable 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 readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement 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 instructions, which comprises one or more executable instructions for implementing the specified logical function(s). 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 carry out combinations of special purpose hardware and computer instructions.
The following described exemplary embodiments provide a system, method, and program product for resynchronizing at least one batch job comprising a plurality of workloads executing on both a primary system and on a secondary system by using at least one proxy replication engine.
Specifically, according to at least one implementation of the present embodiment, a planned or unplanned system region switch may be detected between a primary system and a secondary system. Then, in response to the detection of the system region switch, the execution of a plurality of workloads on the primary system may be stopped. Next, in response to the detection of the system region switch, replication of the software data stored on the primary system with the software data stored on the secondary system may be suspended. Also, in response to the detection of the system region switch, replication of the hardware data stored on the primary system with the hardware data stored on the secondary system may be suspended. Then, one or more proxy replication engines may be utilized to determine/capture the point-in-time (PIT) at which the A/A Sites workloads are stopped, the at which replication of the non-A/A Sites workload data (i.e. hardware-replicated batch components) that is associated with the A/A Sites workloads is suspended, and at which the A/A Sites workload data (i.e. software data including OLTP workload data) that is associated with the A/A Sites workloads is suspended based on the detected type of region switch. Next, the replication of the software data that occurs from the primary system to the secondary system may be switched to occur from the secondary system to the primary system. Then, the replication of the hardware data that occurs from the primary system to the secondary system may be switched to occur from the secondary system to the primary system. Next, the one or more proxy replication engines may be utilized to restart the A/A Sites workloads by synchronizing the software data with the hardware data following the determined type of region switch. Then, the batch job resynchronization program 108A may activate execution of the A/A Sites workloads on the secondary system based the determined point-in-time (PIT).
Referring to
In
As depicted in
As previously described, the networked computer environment 100 may include server computers 114 and 116 that are enabled to run DB2 replication, IMS replication, and/or VSAM replication. The client computer 102 may issue transactions 118 via a communication network 110 to a workload distributor 112. The workload distributor 112 is software and/or hardware that balances the workload distribution for each transaction, and may determine how the workload should be distributed to the regions. As such, the workload distributor 112 may interact with servers 114 and 116. Server 114 and server 116 may be separated by unlimited distances, running the same applications and having the same data. As such, servers 114 and 116 will replicate with each other to ensure cross-region (or cross-site) workload balancing and continuous availability and disaster recovery.
The communication network may include various types of communication networks, such as a wide area network (WAN), local area network (LAN), a telecommunication network, a wireless network, a public switched network and/or a satellite network.
The client computer 102 may communicate with workload distributor 112 via the communications network 110. The workload distributor 112 may execute computer instructions for continuous availability across multiple regions or regions at unlimited distances. The one or more workload distributors 112 may operate in any type of environment that is capable of executing a software application. One or more workload distributors 112 may include a high-speed computer processing device, such as a mainframe computer or router, to manage the volume of operations governed by an entity for which a continuous availability across multiple region or sites at unlimited distances process is executing. The one or more workload distributors 112 may be part of an enterprise (e.g., a commercial business) that implements the continuous availability across multiple regions or sites at unlimited distances.
As previously described, the system depicted in
Specifically, in
Furthermore, in
Also, for example, in case of a region switch or system failure to Region A 202, the active instances of the workloads may be processed on System B 220 of the Region B 204 and the standby instances of the workloads may be replicated and stored on the Region A 202. For the Region B 204, the A/A Sites workloads in Region B 204 may include OLTP workloads that may be received from batch job data stored on the DB2 database located on server 116, which is software replicated from the DB2 database located on server 114. Furthermore, the now active Region B 204 may include a copy of processed OLTP workloads (represented by OLTP′, or OLTP prime), which may be stored on DB2 OLTP′ database 236, whereby the copy of the processed OLTP workloads may represent the OLTP workloads that have been processed by Sysplex A 212 as well as the OLTP workloads that will be processed by Sysplex B 218 on the System B 220.
Additionally, there may be non-A/A Sites workload data that is executed and stored on Region A 202 and/or Region B 220. Specifically, for Region A 202, the non-A/A Sites workload data may include batch component data that is associated with the batch jobs processed on Region A 202 and/or Region B 204. More specifically, in the A/A Sites continuous availability topology depicted in
According to one embodiment, the batch component data may include a first batch component that may include the transactional target end-state of target objects associated with the OLTP workloads, i.e. the state (such as complete/incomplete, or updated/not updated) of the ultimate target object of the OLTP workload. For Region B 204, a log of the first batch component may be retrieved from Log A 246, which may include batch component data associated with the first batch component from Sysplex A 212, the workload data on the DB2 database located on server 114, and/or the copy of the executed OLTP workload data stored on DB2 OLTP′ database 234. For Region A 202, a log of the first batch component may be retrieved from Log B 244, which may include batch component data associated with the first batch component from Sysplex B 218, the workload data on the DB2 database located on server 116, and/or the copy of the executed OLTP workload data stored on DB2 OLTP′ database 236.
Additionally, the batch component data may include a second batch component that may include the sets of intermediate data files that constitute a working set, or scratchpad data, of a batch job. For example, the working set may include temporary or other files that are used as a transfer mechanism between any two steps associated with the batch job, or more particularly, the OLTP workloads. This data may be typically stored in fast access flat files during processing of a batch job. For Region A 202, the second batch component may be retrieved from the Log B 244, which may include batch component data associated with the second batch component from a database such as VSAM (for the purpose of
Furthermore, the batch component data may include a third batch component that may include the job scheduler state and plan information, i.e. a collection of schedule data and plan information that enables a batch job to be restarted, from where it left off, after a planned or unplanned outage. The job scheduler state and plan information is typically maintained in physical storage (both in flat files, as referenced above, and more complex storage mechanisms such as VSAM, DB2, or IMS as represented in
There are additional batch components that may come into play, but such batch components are covered by this invention, and its methodology, as well. Examples of other batch components that may be a factor include: job control language (JCL) for a batch job, input files, look-up files, etc. For the sake of simplicity, embodiments of the present invention include the three most commonly-discussed batch components (described above) that are required for synchronization.
As previously described, software replication, such as DB2 Q-replication, may keep the A/A Sites workload's data almost in synch across System A 210 and System B 220. Hardware replication (i.e., disk replication) may mirror all the data (i.e., the A/A Sites workload data and non-A/A Sites workload data) from Region A 202 to Region B 204 for System B 220, and from Region B 204 to Region A 202 for System A 210. However, proxy replication engines 214 and 216 may be used to provide a time consistency between the hardware-replicated batch components and the software-replicated OLTP workloads during a batch job start/restart based on a planned or unplanned region switch. Specifically, and as previously described, the proxy replication engines 214, 216 may read from the secondary logs (Log A 246 and Log B 244) that include the aforementioned batch component data to determine/pinpoint the point-in-time (PIT) at which the OLTP workloads and batch components are stopped during a system failure or region switch for a batch job. The proxy replication engines 214, 216 may also be used to apply the data associated with the batch job up to the determined point-in-time (PIT) at the successor site for the batch job start/restart. Employing read from secondary support, it is guaranteed by the hardware mirroring that all log data to a specific point in time (PIT) has been received and thus can be applied. This log data, at this determined point in time (PIT) snapshot, constitutes a transactional record that is consistent with the related batch components (as previously discussed) that may be maintained in the same disk consistency group on the secondary logs.
As previously described, starting or re-starting a multi-step batch job on its originating site is a fairly less complicated process. While anomalies can result in imprecise restarts, they are rare conditions. In an Active/Active, continuous availability topology, there are two or more sites (Region B 204 and Region A 202) where any given workload can execute at a prescribed time. It is the desire of practitioners of Active/Active to be able to start or restart a multi-step batch job at an alternate site, after the unplanned outage of the primary site. Should the multi-step batch job be in-progress, at the time of the outage, the synchronization of the three batch components (i.e. the first batch component, the second batch component, and the third batch component) is critical for a precise restart, (that is, to restart at the point where the original batch job failed). Synchronization is no less critical, though, for a start of a new batch job at the surviving site, as current processes allow for data conflicts between all of the three batch components and the OLTP workloads.
In the proxy configuration depicted in
Thus, according to one embodiment of the present invention, when there is a request for a planned region or workload switch for System A 210, the batch job resynchronization program 108A (using GDPS/A-A scripts) may perform the following: enable the A/A Sites workloads to switch from using the active instances of a workload (i.e., server 114) on System A 210 in Region A 202 to the standby instance of the workloads on System B 220 in Region B 204. The switch may be initiated by an operator by clicking on a “route” button or initiating a region switch script on a GDPS/A-A graphical user interface (GUI). The batch components may provide the capability to restart System A 210 and its associated workload off the secondary mirrored volumes (Log A 246) in Region B 246. The GDPS script capability may be used to provide this capability. The script may be initiated by the operator. The script may stop System A 210 and its associated workload (i.e., server 114) in Region A 202, reverse disk replication from Region A 202 to Region B 204 to Region B 204 to Region A 202, and restart System A 210 and its associated workloads in Region B 204 from the point-in-time (PIT) of the region switch using the proxy replication engine 216. Additionally, when System A 210 is restarted in Region B 204, the former active workload instances of active/standby and/or active/query configurations (i.e., running on server 114) are restarted and become the standby instances of the workloads. Similar processing may take place for a planned or unplanned region switch for System B 220.
Referring now to
Then, at 304, in response to the detected region switch request, the batch job resynchronization program 108A may stop all execution of A/A Sites workloads on the primary system, System A 210 (i.e., will not accept new work). For example, all the OLTP transactions (i.e., the workloads) 118 (
Furthermore, at 306, and in response to the detected region switch request, the batch job resynchronization program 108A may suspend replication of the software data stored on the primary system (System A 210) to the software data stored on the secondary system (System B 220), and suspend replication of the hardware data stored on the primary system (System A 210) to the hardware data stored on the secondary system (System B 220). With respect to step 306, and as previously described in
Then, at 308, the batch job resynchronization program 108A may utilize one or more proxy engines, such as proxy engine 216, to determine/capture the point-in-time (PIT) at which the A/A Sites workloads are stopped, at which replication of the non-A/A Sites workload data (i.e. hardware data including batch components) that is associated with the A/A Sites workloads is suspended, and at which the A/A Sites workload data (i.e. software data including OLTP workload data) that is associated with the A/A Sites workloads is suspended based on the detected type of region switch. Specifically, and as previously described, the three batch components (i.e. the first batch component, the second batch component, and the third batch component) needed for multi-step batch job starts and restarts can be point-in-time (PIT) consistent at the proxy replication engine 216 when the disk volumes that hold the DBMS logs (representing the first batch component) and the disk volumes that hold the intermediate files (representing the second batch component) and the disk volumes that hold the job scheduler state (representing the third batch component) are all captured and maintained in the same disk consistency group/set on the secondary logs, such as Log A 246. As such, the proxy replication engine 216 may read from the secondary log (Log A 246) located on server 116, to determine/pinpoint the point-in-time (PIT) at which the OLTP workloads and batch components are stopped during the determined type of region switch for the batch job on the primary system (i.e. System A 210). The captured point-in-time (PIT) may represent the status, step, position, and/or the amount of the hardware data and the software data replicated, and the end point-in-time (PIT) of the synchronization between the hardware replicated data and the software replicated data at the time of the stoppage. Therefore, after an outage of the primary system (System A 210), the proxy replication engine 216 (reading from the secondary Log A 246) holds a point-in-time snapshot of all of the batch components necessary for a batch job start or restart for System B 220.
Next, at 310, the batch job resynchronization program 108A may switch the replication of the software data that occurs from the primary system (System A 210) to the secondary system (System B 220) to occur from the secondary system (System B 220) to the primary system (System A 210). Specifically, the A/A Sites workloads are switched from Region A 202 (
Then, at 312, the batch job resynchronization program 108A may switch the replication of the hardware data that occurs from the primary system (System A 210) to the secondary system (System B 220) to occur from the secondary system (System B 220) to the primary system (System A 210). Specifically, disk replication associated with the hardware replication is switched from Region A 202 (
Next, at 314, the batch job resynchronization program 108A may utilize the proxy engine 216 to restart the A/A Sites workloads by synchronizing the A/A Sites workload data (i.e. the software data including the OLTP workloads data) with the non A/A Sites workload data (i.e. the hardware data including the batch components) following the determined type of region switch. Specifically, and as previously described with respect to the proxy configuration depicted in
Then, at 316, the batch job resynchronization program 108A may activate execution of the A/A Sites workloads on the secondary system (System B 220) based the determined point-in-time (PIT) of the A/A Sites workloads, the switching of the replication of both the hardware data and the software data, and on the synchronization of the software data and the hardware data up to the determined point-in-time (PIT) associated with the at least one proxy engine and the plurality of batch components.
It may be appreciated that
Data processing system 800, 900 is representative of any electronic device capable of executing machine-readable program instructions. Data processing system 800, 900 may be representative of a smart phone, a computer system, PDA, or other electronic devices. Examples of computing systems, environments, and/or configurations that may represented by data processing system 800, 900 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, network PCs, minicomputer systems, and distributed cloud computing environments that include any of the above systems or devices.
Workload balancing program 300 may be implemented on an electronic device such as user client computer 102 (
Each set of internal components 800a, b, c also includes a R/W drive or interface 832 to read from and write to one or more portable computer-readable tangible storage devices 936 such as a CD-ROM, DVD, memory stick, magnetic tape, magnetic disk, optical disk or semiconductor storage device. A software program 108 can be stored on one or more of the respective portable computer-readable tangible storage devices 936, read via the respective R/W drive or interface 832 and loaded into the respective hard drive 830.
Each set of internal components 800a, b, c also includes network adapters or interfaces 836 such as a TCP/IP adapter cards, wireless wi-fi interface cards, or 3G or 4G wireless interface cards or other wired or wireless communication links. A software program 108 in client computer 102 can be downloaded to client computer 102 from an external computer via a network (for example, the Internet, a local area network or other, wide area network) and respective network adapters or interfaces 836. From the network adapters or interfaces 836, the software program 108 in client computer 102 is loaded into the respective hard drive 830. The network may comprise copper wires, optical fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
Each of the sets of external components 900a, b, c can include a computer display monitor 920, a keyboard 930, and a computer mouse 934. External components 900a, b, c can also include touch screens, virtual keyboards, touch pads, pointing devices, and other human interface devices. Each of the sets of internal components 800a, b, c also includes device drivers 840 to interface to computer display monitor 920, keyboard 930 and computer mouse 934. The device drivers 840, R/W drive or interface 832 and network adapter or interface 836 comprise hardware and software (stored in storage device 830 and/or ROM 824).
Aspects of the present invention have been described with respect to block diagrams and/or flowchart illustrations of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer instructions. These computer 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 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.
The aforementioned programs can be written in any combination of one or more programming languages, including low-level, high-level, object-oriented or non object-oriented languages, such as Java, Smalltalk, C, and C++. 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 a 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). Alternatively, the functions of the aforementioned programs can be implemented in whole or in part by computer circuits and other hardware (not shown). The one or more operating systems 828, the software program 106 (
The batch job resynchronization program 108A (
It is understood in advance that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported providing transparency for both the provider and consumer of the utilized service.
Service Models are as follows:
Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based e-mail). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as follows:
Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load-balancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure comprising a network of interconnected nodes.
Referring now to
Referring now to
Hardware and software layer 60 includes hardware and software components. Examples of hardware components include: mainframes 61; RISC (Reduced Instruction Set Computer) architecture based servers 62; servers 63; blade servers 64; storage devices 65; and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 71; virtual storage 72; virtual networks 73, including virtual private networks; virtual applications and operating systems 74; and virtual clients 75.
In one example, management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 82 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may comprise application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal 83 provides access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 85 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer 90 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analytics processing 94; transaction processing 95; and batch job resynchronization 96. A batch job resynchronization program 108A, 108B (
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.