Method and apparatus for providing data access service, storage medium and electronic device
By migrating according to the structural unit type in the parallel coupler and using quasi-synchronous dual-write mode and user-managed dual-write mode, the impact of parallel coupler structural unit migration on system availability is resolved, an efficient migration process is achieved, and system availability and transaction performance are improved.
Patent Information
- Application Number
- CN202311355241.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2043-10-18
AI Technical Summary
Existing technologies can easily affect online transactions when migrating the structural units of parallel couplers, leading to longer response times or transaction pauses. Furthermore, traditional centralized migration methods can reduce system availability.
By responding to maintenance instructions, lock-type, cache-type, and list-type structure units in the parallel coupler are migrated to another parallel coupler according to the structure unit type, and the new parallel coupler is used to provide data access services after migration. The impact on the system is reduced by adopting quasi-synchronous dual-write mode and user-managed dual-write mode.
This reduces the impact of parallel coupler structure unit migration on system online transactions, improves system availability during migration, avoids the system downtime window requirement in traditional methods, and enhances system availability.
Smart Images

Figure CN117194387B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data access services, and more specifically, to a method and apparatus for providing data access services, a storage medium, and an electronic device. Background Technology
[0002] Currently, if a host platform needs to perform maintenance operations on a parallel coupler, it must migrate all structural units distributed across that parallel coupler to another parallel coupler in a centralized manner. This involves migrating all structural units from one parallel coupler to another within a single change window. This allows for hardware upgrades and other maintenance operations on the now-empty parallel coupler. However, this simple centralized migration method significantly impacts online transactions. For example, it increases system response time during transaction execution and may even cause transaction pauses, halting data access services. While traditional methods typically proactively request downtime windows to mitigate the impact of this centralized migration on online transactions, this approach also suffers from reduced system availability due to the excessive requests for downtime windows.
[0003] Therefore, in related technologies, there is a technical problem of how to migrate the structural units of parallel couplers without affecting system availability.
[0004] Regarding the relevant technologies, there is currently no effective solution to the technical problem of how to migrate the structural units of parallel couplers without affecting system availability.
[0005] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention
[0006] This application provides a method and apparatus for providing data access services, a storage medium, and an electronic device to at least solve the technical problem of how to migrate the structural units of a parallel coupler without affecting system availability.
[0007] According to one aspect of the embodiments of this application, a method for providing a data access service is provided, comprising: in response to a maintenance instruction sent by a target object, determining a first parallel coupler currently providing the data access service, wherein the first parallel coupler is a parallel coupler to be maintained as indicated by the maintenance instruction; migrating preset structural units contained in the first parallel coupler to a second parallel coupler according to structural unit types, wherein the structural unit types include at least one of the following: lock type, cache type, list type; and, if it is determined that all the preset structural units have been migrated to the second parallel coupler, using the second parallel coupler to replace the first parallel coupler to provide the data access service.
[0008] In an exemplary embodiment, migrating a preset structural unit contained in the first parallel coupler to the second parallel coupler according to the structural unit type includes: determining a lock type structural unit from the preset structural unit when it is determined that the structural unit type includes a lock type; determining a primary database established for the lock type structural unit in the first parallel coupler and a backup database established for the lock type structural unit in the second parallel coupler; wherein the data in the primary database includes at least the lock type structural unit; after modifying the current write mode of the lock type structural unit to a quasi-synchronous dual-write mode, migrating the lock type structural unit of the primary database to the backup database according to the binding relationship between the primary database and the backup database, so as to migrate the lock type structural unit of the first parallel coupler to the second parallel coupler.
[0009] In one exemplary embodiment, the current write mode of the lock type structure unit is modified to a quasi-synchronous dual-write mode at least by one of the following methods: when it is determined that the current write mode of the lock type structure unit is a single-write mode and the lock type structure unit is not accessed, the current write mode of the lock type structure unit is updated from a single-write mode to a quasi-synchronous dual-write mode; when it is determined that the current write mode of the lock type structure unit is a single-write mode and the lock type structure unit is accessed, the current write mode of the lock type structure unit is modified from a single-write mode to a dual-write mode, and the dual-write mode is updated to a quasi-synchronous dual-write mode.
[0010] In an exemplary embodiment, updating the current write mode of the lock type structure unit from a single-write mode to a quasi-synchronous dual-write mode includes: obtaining a first mode identifier of the lock type structure unit, wherein the first mode identifier is used to represent the single-write mode of the lock type structure unit; after modifying the first mode identifier to a second mode identifier, controlling the second mode identifier to take effect by calling a first enable instruction, wherein the second mode identifier is used to represent the quasi-synchronous dual-write mode of the lock type structure unit, and the first enable instruction is used to enable the current write mode of the lock type structure unit.
[0011] In an exemplary embodiment, modifying the current write mode of the lock type structure unit from a single-write mode to a dual-write mode, and updating the dual-write mode to a quasi-synchronous dual-write mode, includes: obtaining a first mode identifier of the lock type structure unit, wherein the first mode identifier is used to represent the single-write mode of the lock type structure unit; after modifying the first mode identifier to a third mode identifier, controlling the third mode identifier to take effect by calling a second enable instruction, wherein the third mode identifier is used to represent the dual-write mode of the lock type structure unit, and the second enable instruction is used to enable the current write mode of the lock type structure unit; modifying the third mode identifier to a second mode identifier according to a modification instruction, and controlling the second mode identifier to take effect by calling the second enable instruction, wherein the second mode identifier is used to represent the quasi-synchronous dual-write mode of the lock type structure unit.
[0012] In an exemplary embodiment, migrating a preset structural unit contained in the first parallel coupler to the second parallel coupler according to the structural unit type includes: if it is determined that the structural unit type includes a cache type, determining a cache type structural unit from the preset structural unit; modifying the current write mode of the cache type structural unit to a user-managed dual-write mode; after the user-managed dual-write mode of the cache type structural unit takes effect, determining the primary database established for the cache type structural unit in the first parallel coupler and the backup database established for the cache type structural unit in the second parallel coupler; migrating the cache type structural unit of the primary database to the backup database according to the binding relationship between the primary database and the backup database, so as to migrate the cache type structural unit of the first parallel coupler to the second parallel coupler.
[0013] In one exemplary embodiment, the method further includes: performing isolation operations required to complete the migration of the first parallel coupler, wherein performing isolation operations required to complete the migration of the first parallel coupler includes: controlling the backup database of the second parallel coupler to stop backing up data from the primary database of the first parallel coupler according to a first stop instruction; discarding the data in the backup database and using the data in the primary database to provide data access services.
[0014] In one exemplary embodiment, the method further includes: performing isolation operations required to complete the migration on the second parallel coupler, wherein performing isolation operations required to complete the migration on the second parallel coupler includes: in response to a second stop instruction, retrieving new data from the primary database between the previous backup time and the current time; backing up the new data to the backup database according to the binding relationship between the primary database and the backup database; releasing the binding relationship, discarding the data in the primary database, and providing data access services according to the data in the backup database, so as to use the second parallel coupler to replace the first parallel coupler in providing data access services.
[0015] In an exemplary embodiment, migrating a preset structural unit contained in the first parallel coupler to the second parallel coupler according to the structural unit type includes: determining a list-type structural unit from the preset structural unit when it is determined that the structural unit type includes a list type; determining a main database established for the list-type structural unit in the first parallel coupler and a backup database established for the list-type structural unit in the second parallel coupler; wherein the data in the main database includes at least the list-type structural unit; and migrating the list-type structural unit of the main database to the backup database according to the binding relationship between the main database and the backup database in response to a third enable instruction, so as to migrate the list-type structural unit of the first parallel coupler to the second parallel coupler; wherein the third enable instruction is used to enable the migration operation of the list-type structural unit.
[0016] In an exemplary embodiment, after migrating a list-type structural unit of the primary database to the backup database according to the binding relationship between the primary database and the backup database, the method further includes: determining the migration data of the backup database after the migration is completed; comparing the migration data with the original data in the primary database; and, if it is determined that the comparison result indicates that the migration data and the original data are inconsistent, controlling the primary database to migrate the list-type structural unit of the primary database to the backup database based on the binding relationship according to a first resend instruction.
[0017] In an exemplary embodiment, migrating a preset structural unit contained in the first parallel coupler to the second parallel coupler according to the structural unit type includes: classifying the preset structural units into multiple groups of structural units according to the structural unit type, wherein each group of structural units corresponds to a structural unit type; determining the unit order among the multiple structural units contained in each group of structural units for each group of structural units; and migrating each group of structural units according to the unit order, wherein the time interval between the multiple structural units contained in each group of structural units during migration is greater than a preset value.
[0018] According to another aspect of the embodiments of this application, a data access service providing apparatus is also provided, comprising: a determining module, configured to determine a first parallel coupler currently providing data access services in response to a maintenance instruction sent by a target object, wherein the first parallel coupler is a parallel coupler to be maintained as indicated by the maintenance instruction; a migration module, configured to migrate preset structural units contained in the first parallel coupler to a second parallel coupler according to structural unit types, wherein the structural unit types include at least one of the following: lock type, cache type, list type; and a replacement module, configured to use the second parallel coupler to replace the first parallel coupler to provide data access services when it is determined that all the preset structural units have been migrated to the second parallel coupler.
[0019] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to perform the above-described method for providing data access services when it is run.
[0020] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for providing the data access service through the computer program.
[0021] This application enables the identification of a first parallel coupler currently providing data access services in response to a maintenance instruction sent by a target object. The first parallel coupler is the parallel coupler to be maintained as indicated by the maintenance instruction. Preset structural units contained in the first parallel coupler are migrated to a second parallel coupler according to their structural unit types, where the structural unit type includes at least one of the following: lock type, cache type, or list type. When all preset structural units have been migrated to the second parallel coupler, the second parallel coupler is used to replace the first parallel coupler to provide data access services. This technical solution addresses the problem in related technologies of how to migrate the structural units of a parallel coupler without affecting system availability. By adjusting the centralized migration method of all structural units in the parallel coupler to a method of migrating all structural units in the parallel coupler according to their structural unit types, the impact of structural unit migration on online transactions can be reduced, thereby improving the system's availability during the migration of all structural units in the parallel coupler. Attached Figure Description
[0022] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and, together with the description thereof, serve to explain this application and do not constitute an undue limitation thereof. In the drawings:
[0023] Figure 1 This is a schematic diagram showing the distribution of structural units of a parallel coupler according to an embodiment of this application;
[0024] Figure 2 This is a flowchart of a method for providing a data access service according to an embodiment of this application;
[0025] Figure 3 This is a schematic flowchart of a method for providing data access services according to an embodiment of this application;
[0026] Figure 4 This is a schematic diagram (a) of the migration process of the lock type structure unit according to an embodiment of this application;
[0027] Figure 5 This is a schematic diagram (II) of the migration process of the lock type structure unit according to an embodiment of this application;
[0028] Figure 6 This is a schematic diagram (a) illustrating the migration process of a cache type structure unit according to an embodiment of this application;
[0029] Figure 7 This is a schematic diagram (II) illustrating the migration process of a cache type structure unit according to an embodiment of this application;
[0030] Figure 8 This is a schematic diagram (a) of the host cluster hardware deployment according to an embodiment of this application;
[0031] Figure 9 This is a schematic diagram (II) of the host cluster structure deployment according to an embodiment of this application;
[0032] Figure 10 This is a schematic diagram illustrating the data access service provided by a lock type structure unit according to an embodiment of this application;
[0033] Figure 11 This is a schematic diagram illustrating the provision of data access services by a cache type structure unit according to an embodiment of this application;
[0034] Figure 12 This is a structural block diagram of a data access service providing apparatus according to an embodiment of this application. Detailed Implementation
[0035] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0036] It should be noted that the terms and terms such as "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0037] The following is an explanation of some of the technical terms used in this application.
[0038] Parallel SYSPLEX represents a host parallel coupled system, which can also be understood as a host cluster.
[0039] Coupling Facility (CF) is a mechanism for sharing memory among multiple service virtual machines in a host platform cluster, implemented using physical hardware.
[0040] CF STRUCTURE, the parallel coupler structure unit, is a memory region in a parallel coupler. It is the smallest management unit of the parallel coupler and includes three types: lock type structure unit, cache type structure unit, and list type structure unit.
[0041] GBP, Global Buffer Pool, is a global buffer pool structure unit in the DB2 database software on the host platform, and is a cache-type structure unit.
[0042] User-Managed Duplexing refers to a user-managed dual-write mode for structural units. A replica of the structural unit is distributed in two parallel couplers, one as the primary replica and the other as the backup replica. The data replication process between the two replicas and the synchronization guarantee between the replicas are managed by the user of the structural unit (also known as the user of the structural unit, such as the host platform database software DB2). Currently, the user-managed dual-write mode only supports dual-write functionality for cached structural units.
[0043] System-Managed Duplexing refers to a dual-write mode for managing structural unit systems. Two parallel couplers each distribute a structural unit replica, one as the primary replica and the other as the backup replica. The host platform operating system manages the data copying process between the two replicas and ensures synchronization. This mode requires a dedicated physical fiber optic connection between the two parallel couplers. Once enabled, the operating system performs the synchronization process between the primary and backup replicas in the background, consuming significant CPU resources of the parallel couplers. Because strict consistency of data between the two structural unit replicas needs to be guaranteed in real time, there is an upper limit to the physical distance between the two parallel couplers.
[0044] Asynchronous System-Managed Duplexing refers to a near real-time synchronous dual-write mode managed by a structured unit system. One structured unit is distributed across two parallel couplers, one as the primary copy and the other as the backup copy. The host platform operating system manages the data copying process and synchronization guarantees between the copies. This mode also requires a dedicated physical fiber optic connection between the two parallel couplers. Once enabled, the system performs the synchronization process between the primary and backup copies in the background, consuming significant CPU resources on the parallel couplers. However, this consumption is less than that of System-Managed Duplexing, but still higher than that of Single-Write Mode and User-Managed Duplexing. Since strict consistency between the two structured unit copies does not need to be guaranteed in real-time, there is no upper limit to the distance between the physical hosts of the two parallel couplers.
[0045] The method embodiments provided in this application can be implemented as follows: Figure 1 Executed in the host parallel coupler shown. Figure 1 This is a schematic diagram showing the distribution of structural units of a parallel coupler according to an embodiment of this application. For example... Figure 1 As shown, the structural units in parallel coupler 1 are migrated to parallel coupler 2 according to the structural unit types of lock type structural units, cache type result units, and list type structural units. Then, isolation maintenance operations are performed on parallel coupler 1.
[0046] Optionally, the operation method used for parallel coupler 1 may be as follows:
[0047] 1. Set parallel coupler 1 to maintenance mode: SETXCF START, MAINT, CFNM = CF1;
[0048] 2. Perform a reallocation operation (REALLCATE) on all structural units of all types in the host cluster: SETXCF START, REALLOCATE.
[0049] Specifically, first set parallel coupler 1 to maintenance mode, then redistribute all structural units of all types in the host cluster, migrate all structural units in parallel coupler 1 to parallel coupler 2, and then perform hardware maintenance and other operations on the migrated parallel coupler 1.
[0050] In this embodiment, after the maintenance of parallel coupler 1 is completed, parallel coupler 1 can be re-integrated. The specific implementation process is as follows:
[0051] 1. Restore the maintenance mode of parallel coupler CF1 to service mode: SETXCFSTOP, MAINT, CFNM = CF1;
[0052] 2. Perform a reallocation operation (REALLCATE) on all structural units of all types in the host cluster: SETXCF START, REALLOCATE.
[0053] Through the above merging operation, all structural units of all types in the host cluster can be redistributed. That is, all structural units currently distributed in parallel coupler 2 are restored to parallel coupler 1 according to the pre-distribution order of structural unit type, so that they can be accessed by multiple virtual machines in the host cluster.
[0054] Next, the structural units of the parallel coupler will be described with reference to Table 1 below.
[0055] Table 1 Comparison of the structural units of parallel couplers
[0056]
[0057] The comparison results of different structural units in terms of current write mode, CPU consumption, degree of impact of migration on online, and migration duration are shown in Table 1. For example, the current write mode of the lock type structural unit includes single write mode, quasi-synchronous dual write mode, and dual write mode, while the current write mode of the list type only includes single write mode.
[0058] Among them, the lock type structure unit is, for example, the Global Resource Relationship (GRS) structure unit of the parallel coupled system, whose main access objects are file switches, etc. Typically, only single-write mode (SIMPLEX) is used for GRS. If the dual-write mechanism (DUPLEX) is enabled for the GRS structure unit of the parallel coupled system, currently only the strong synchronous replication mode (Synchronous Duplex) is supported. The response time of this structure unit will increase by about 6 times compared to single-write mode (SIMPLEX).
[0059] For the DB2 database software, the global lock LOCK1 is the most critical management target. All transactions (including updates and queries) rely on DB2 LOCK1 lock management to ensure the data consistency requirements of accounting-related business. Rebuilding this structural unit will have a significant impact on online transactions, and the degree of impact is positively correlated with the volume of online transactions during that period.
[0060] DB2 uses the global lock LOCK1 to support a near real-time synchronous dual-write mode for structure units. For example, a structure unit can be distributed across two parallel couplers, one as the primary copy and the other as the backup copy. The host platform operating system manages the data replication process and synchronization guarantees between the two. The near real-time synchronous dual-write mode for lock-type structure units consumes less overhead than the standard dual-write mode, but more overhead than the single-write mode and the user-managed dual-write mode.
[0061] However, the near real-time synchronous dual-write mode does not require strict consistency of data between the two structural unit copies in real time, and there is no limit to the distance between the physical hosts of the two parallel couplers.
[0062] Among them, the cache type (CACHE) structure unit is mostly used for read-only objects. In use, data that multiple logical partitions (virtual machines) need to access together or data that is frequently read is read from the disk and stored in the coupler's cache type structure unit to improve the access efficiency of multiple service virtual machines, save access time, and improve transaction response efficiency.
[0063] For cached structural units used by DB2 databases, a dual-write (DUPLEX) approach is typically employed in practice, managed through negotiation among the structural unit's users (i.e., multiple DB2 database instances on multiple virtual machines). In this approach, the same structural unit is deployed in two couplers: one parallel coupler stores the primary copy, and the other parallel coupler stores the backup copy. DB2, as the structural unit's user, manages the synchronization of content between the primary and backup copies. A typical example is the global buffer pool (GBP) structural unit used by DB2.
[0064] Reconstruction and maintenance operations for this type of structural unit involve two operations: converting the dual-write mode (DUPLEX) to the single-write mode (SIMPLEX) and converting the single-write mode (SIMPLEX) to the dual-write mode (DUPLEX).
[0065] When switching from single-write mode to dual-write mode, a cache-type structural unit creates a new copy from one structural unit within a parallel coupler to another parallel coupler. The data from the original structural unit is then copied to the newly created structural unit. Later, users of the cache-type structural unit reach a consistency point between the two copies according to specific needs or frequency. Before this consistency point, the content in the two structural units is completely consistent, achieving high availability through mutual backup of the structural units. When switching from dual-write mode to single-write mode, the dual-write synchronization mechanism between the two copies is disconnected, and one copy is discarded. The business virtual machine uses the other copy to continue providing services. During the conversion between these two modes, the impact of switching from dual-write mode to single-write mode on online transactions is minimal, and users are largely unaware of it. Conversely, the conversion from single-write mode to dual-write mode has a slightly greater impact on transactions. Therefore, the conversion operation is best performed during off-peak hours for online transactions.
[0066] The list-type structural unit enables cross-virtual machine system message exchange and task distribution. During deployment, the two couplers have an equal relationship in the use and distribution of list-type structural units. The distribution of various structural units within the two couplers can be planned according to the load between them and the required structural unit type. Typical examples include list-type structural units IXCSTR1-IXCSTR8 used for communication between logical partitions. DB2's SCA (shared communication area) is also a list-type structural unit used for database control information. In actual use, the amount of data in the structural unit is relatively small, and the daily access volume is also low, making a dual-write mode feasible. If a dual-write mode modification of DB2 SCA structural units is to be implemented, it is recommended to implement it simultaneously with DB2 LOCK1, ensuring thorough testing before production deployment.
[0067] This embodiment provides a method for providing data access services. Figure 2 This is a flowchart of a method for providing a data access service according to an embodiment of this application, the process including the following steps:
[0068] Step S202: In response to the maintenance instruction sent by the target object, determine the first parallel coupler currently providing data access services, wherein the first parallel coupler is the parallel coupler to be maintained indicated by the maintenance instruction;
[0069] Step S204: Migrate the preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type, wherein the structural unit type includes at least one of the following: lock type, cache type, list type;
[0070] Step S206: If it is determined that all the preset structural units have migrated to the second parallel coupler, the second parallel coupler is used to replace the first parallel coupler to provide data access services.
[0071] Through the above steps, in response to the maintenance instruction sent by the target object, the first parallel coupler currently providing data access services is determined, wherein the first parallel coupler is the parallel coupler to be maintained as indicated by the maintenance instruction; the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler according to the structural unit type, wherein the structural unit type includes at least one of the following: lock type, cache type, list type; if it is determined that all the preset structural units have been migrated to the second parallel coupler, the second parallel coupler is used to replace the first parallel coupler to provide data access services. The above embodiment solves the technical problem in the related art of how to migrate the structural units of a parallel coupler without affecting the system availability. From the perspective of the structural units in the parallel coupler, by adjusting the centralized migration method of all structural units in the parallel coupler to the method of migrating all structural units in the parallel coupler according to the structural unit type, the impact of the structural unit migration of the parallel coupler on the system's online transactions can be reduced, thereby improving the system's availability when all structural units in the parallel coupler are migrated.
[0072] Optionally, after performing step S206, a prompt message can be sent to the target object, which prompts the target object to maintain the first parallel coupler that has been migrated.
[0073] In the above embodiments, by formulating a maintenance method from the perspective of the impact of structural unit type on online transactions, compared with the traditional centralized migration method, the impact of the migration process on the performance of online transactions of the system is reduced. The isolation operation required in the maintenance of parallel couplers can be achieved without downtime windows, thereby improving the system availability time.
[0074] In an exemplary embodiment, the implementation process of migrating the preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type in step S204 above specifically includes: when it is determined that the structural unit type includes a lock type, determining a lock type structural unit from the preset structural unit; determining the main database established for the lock type structural unit in the first parallel coupler, and the backup database established for the lock type structural unit in the second parallel coupler; wherein the data in the main database includes at least the lock type structural unit; after modifying the current write mode of the lock type structural unit to a quasi-synchronous dual-write mode, migrating the lock type structural units of the main database to the backup database according to the binding relationship between the main database and the backup database, so as to migrate the lock type structural units of the first parallel coupler to the second parallel coupler.
[0075] Optionally, the aforementioned backup database can be understood as a blank database created based on the primary database.
[0076] Optionally, the primary database mentioned above can include multiple primary replicas, and operations on the primary database can be understood as operations on the primary replicas. The processing of the backup database is similar to that of the primary database and will not be elaborated upon here.
[0077] Optionally, the operation of migrating the lock type structure unit of the primary database to the backup database can be carried out during the business off-peak window closest to the maintenance window before the parallel coupler maintenance, such as implementing the near real-time dual-write mode of lock type structure unit DB2 LOCK1 about half an hour in advance.
[0078] Based on the above embodiments, the data access service can be provided by replacing the first parallel coupler with the second parallel coupler through the following steps: providing data access service based on the backup database, and unbinding the binding relationship, saving the backup database in the second parallel coupler, and discarding the main database in the first parallel coupler.
[0079] In an exemplary embodiment, the above-described technical solution of modifying the current write mode of the lock type structure unit to a quasi-synchronous dual-write mode is implemented by at least one of the following methods: when it is determined that the current write mode of the lock type structure unit is a single-write mode and the lock type structure unit is not accessed, the current write mode of the lock type structure unit is updated from the single-write mode to the quasi-synchronous dual-write mode; when it is determined that the current write mode of the lock type structure unit is a single-write mode and the lock type structure unit is accessed, the current write mode of the lock type structure unit is modified from the single-write mode to the dual-write mode, and the dual-write mode is updated to the quasi-synchronous dual-write mode.
[0080] Through the above embodiments, for lock type structure units that have not been accessed, the modified current write mode can be made effective directly. For lock type structure units that have been accessed, further calls are required after modifying the current write mode for it to take effect, which can improve the success rate of modifying the current write mode of lock type structure units.
[0081] In one exemplary embodiment, a method for updating the current write mode of the lock type structure unit from a single-write mode to a quasi-synchronous dual-write mode is further proposed, specifically including the following steps: obtaining a first mode identifier of the lock type structure unit, wherein the first mode identifier is used to represent the single-write mode of the lock type structure unit; after modifying the first mode identifier to a second mode identifier, controlling the second mode identifier to take effect by calling a first enable instruction, wherein the second mode identifier is used to represent the quasi-synchronous dual-write mode of the lock type structure unit, and the first enable instruction is used to enable the current write mode of the lock type structure unit.
[0082] It should be noted that the current write mode of the lock type structure unit opened by the first open instruction can be understood as a quasi-synchronous dual write mode.
[0083] In an exemplary embodiment, the implementation scheme for modifying the current write mode of the lock type structure unit from a single-write mode to a dual-write mode and updating the dual-write mode to a quasi-synchronous dual-write mode is further described through the following steps: obtaining a first mode identifier of the lock type structure unit, wherein the first mode identifier is used to represent the single-write mode of the lock type structure unit; after modifying the first mode identifier to a third mode identifier, controlling the third mode identifier to take effect by calling a second enable instruction, wherein the third mode identifier is used to represent the dual-write mode of the lock type structure unit, and the second enable instruction is used to enable the current write mode of the lock type structure unit; modifying the third mode identifier to a second mode identifier according to the modification instruction, and controlling the second mode identifier to take effect by calling the second enable instruction, wherein the second mode identifier is used to represent the quasi-synchronous dual-write mode of the lock type structure unit.
[0084] In one exemplary embodiment, other technical solutions are also proposed to implement the above step S204 of migrating the preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type. The specific steps include: when it is determined that the structural unit type includes a cache type, determining a cache type structural unit from the preset structural unit; modifying the current write mode of the cache type structural unit to a user-managed dual-write mode; after the user-managed dual-write mode of the cache type structural unit takes effect, determining the main database established for the cache type structural unit in the first parallel coupler and the backup database established for the cache type structural unit in the second parallel coupler; migrating the cache type structural units of the main database to the backup database according to the binding relationship between the main database and the backup database, so as to migrate the cache type structural units of the first parallel coupler to the second parallel coupler.
[0085] In an exemplary embodiment, modifying the current write mode of the cache type structure unit to a user-managed dual-write mode may include: if it is determined that the current write mode of the lock type structure unit is a single-write mode, updating the current write mode of the lock type structure unit from a single-write mode to a user-managed dual-write mode.
[0086] In an exemplary embodiment, the following technical solution is further proposed: performing isolation operations required to complete the migration of the first parallel coupler, wherein performing isolation operations required to complete the migration of the first parallel coupler includes: controlling the backup database of the second parallel coupler to stop backing up data from the main database of the first parallel coupler according to a first stop instruction; discarding the data in the backup database and using the data in the main database to provide data access services.
[0087] In one exemplary embodiment, further, isolation operations required to complete the migration can be performed on the second parallel coupler. These isolation operations include: in response to a second stop command, retrieving new data from the primary database between the previous backup time and the current time; backing up the new data to the backup database according to the binding relationship between the primary database and the backup database; releasing the binding relationship, discarding the data in the primary database, and providing data access services based on the data in the backup database, thereby using the second parallel coupler to replace the first parallel coupler in providing data access services.
[0088] In an exemplary embodiment, a further proposed method for migrating the preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type in step S204 is proposed. The specific steps include: if the structural unit type is determined to include a list type, determining a list type structural unit from the preset structural units; determining a main database established in the first parallel coupler for the list type structural unit, and a backup database established in the second parallel coupler for the list type structural unit; wherein the data in the main database includes at least the list type structural unit; in response to a third enable instruction, migrating the list type structural units of the main database to the backup database according to the binding relationship between the main database and the backup database, thereby migrating the list type structural units of the first parallel coupler to the second parallel coupler; wherein the third enable instruction is used to enable the migration operation of the list type structural units.
[0089] In an exemplary embodiment, after migrating the list-type structure unit of the primary database to the backup database according to the binding relationship between the primary database and the backup database, the following scheme can be further implemented: determining the migration data of the backup database after the migration is completed; comparing the migration data with the original data in the primary database; and if it is determined that the comparison result indicates that the migration data and the original data are inconsistent, controlling the primary database to migrate the list-type structure unit of the primary database to the backup database based on the binding relationship according to a first resend instruction.
[0090] Optionally, in an exemplary embodiment, the feedback information sent by the backup database after each migration is determined. If the feedback information is determined to indicate that the list-type structure unit migration failed, the master database is controlled to resend the failed list-type structure unit to the backup database according to the second resend instruction.
[0091] In an exemplary embodiment, the process of migrating the preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type in step S204 can be further implemented by the following steps: classifying the preset structural units into multiple groups of structural units according to the structural unit type, wherein each group of structural units corresponds to a structural unit type; determining the unit order among the multiple structural units contained in each group of structural units for each group of structural units; migrating each group of structural units according to the unit order, wherein the time interval between the multiple structural units contained in each group of structural units during migration is greater than a preset value.
[0092] In this embodiment, taking the cache type structure unit as an example, all cache type structure units can be executed in a serial order, and the interval of the migration command for each cache type structure unit can be set to at least 1 second.
[0093] Optionally, in an exemplary embodiment, the process of migrating the preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type may further include: monitoring the service throughput of the first parallel coupler when providing data access services; if it is determined that the service throughput is less than a service throughput threshold, and if it is determined that the service time when the first parallel coupler provides data access services belongs to a preset time period, then the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler according to the structural unit type. If neither the service throughput is less than the service throughput threshold nor the service time when the first parallel coupler provides data access services belongs to a preset time period is true, then the preset structural units contained in the first parallel coupler are not migrated.
[0094] The aforementioned preset time period is, for example, a low-business period between 11 p.m. and 4 a.m., but is not limited to this.
[0095] In an exemplary embodiment, for the process of migrating the preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type in step S204 above, the following implementation steps are further proposed: monitoring the service throughput of the first parallel coupler when providing data access services; if it is determined that the service throughput is less than the service throughput threshold, and if it is determined that the service time when the first parallel coupler provides data access services belongs to a preset time period, then the target structural units contained in the first parallel coupler are migrated to the second parallel coupler according to the structural unit type.
[0096] The above embodiments reduce the impact of lock type structure unit migration on online transactions by migrating preset structure units during off-peak business hours.
[0097] In one embodiment, the original maintenance strategy based on the perspective of the parallel coupler can be adjusted to a more refined maintenance strategy based on the structural units used by the distributed host cluster within the parallel coupler, thereby solving the problem of transaction performance degradation caused by centralized processing of all types of structural units within the parallel coupler.
[0098] In the process of isolating parallel couplers, differentiated migration measures are taken for structural units in parallel couplers according to lock type, cache type, and list type. This solves the impact on online transaction performance caused by the migration operation required for different types of structural units due to parallel coupler isolation, and minimizes the impact of migration operations of different types of structural units on online services.
[0099] Optionally, in one embodiment, the centralized processing method is changed to a processing method based on the structural unit type during the isolation phase and the merging phase of the parallel coupler. This can solve the problem of online transaction response time jitter caused during centralized migration, and the isolation and merging operations in the maintenance work of the parallel coupler can be realized without downtime.
[0100] In this embodiment, during the isolation process of the parallel coupler, the differentiated migration measures for the structural units in the parallel coupler according to lock type, cache type, and list type may specifically include:
[0101] 1. By adjusting the lock type structure unit from the normally deployed single-write mode to the quasi-synchronous dual-write mode, the problem of decreased online transaction performance caused by excessive CPU utilization due to maintaining the quasi-synchronous dual-write mode during operation is avoided.
[0102] 2. During the off-peak business period before the maintenance of the first parallel coupler where the lock type structure unit is located, the lock type structure unit is actively adjusted to quasi-synchronous dual-write mode to realize the creation of the backup copy of structure unit DB2 LOCK1 and the data synchronization between the primary copy and the backup copy in advance.
[0103] 3. Then, the lock type structure unit of the first parallel coupler is migrated to the second parallel coupler. During the migration, the primary copy or backup copy is retained to continue providing services to the outside world, thereby reducing the impact of the migration operation of the lock type structure unit and optimizing the online service performance of the system during maintenance.
[0104] Optionally, in this embodiment, the differentiated migration measures for structural units in the parallel coupler based on lock type, cache type, and list type may further include:
[0105] 1. Deploy the cache type structure unit in synchronous dual-write mode;
[0106] 2. Migrate the cache type structure unit of the first parallel coupler to the second parallel coupler. During the migration, retain the primary or backup copy to continue providing services, reduce the impact of the migration operation of the lock type structure unit, and optimize the online service performance of the system during maintenance.
[0107] 3. During off-peak business hours, perform migration operations on cache type structural units;
[0108] 4. For migration operations of all cache type structural units in the same host cluster, a serial execution method is adopted, and the interval between migration commands of each cache type structural unit is controlled to be at least 1 second to ensure that multiple cache type structural units will not migrate at the same time.
[0109] Optionally, in this embodiment, the differentiated migration measures for structural units in the parallel coupler based on lock type, cache type, and list type may further include:
[0110] 1. Migrate the list-type structure unit of the first parallel coupler to the second parallel coupler;
[0111] 2. During off-peak business hours, perform migration operations on list-type structural units;
[0112] 3. Perform migration operations on all list-type structural units in the same host cluster in sequence, and control the interval between migration commands for each list-type structural unit to be at least 1 second to ensure that multiple list-type structural units do not migrate at the same time.
[0113] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. To better understand the above method for providing data access services, the following description, in conjunction with embodiments, illustrates the process, but is not intended to limit the technical solutions of the embodiments of this application. Specifically:
[0114] In an optional embodiment, Figure 3 This is a schematic flowchart (I) of a method for providing data access services according to an embodiment of this application. The following is in conjunction with... Figure 3 The method for providing the data access service in this embodiment will be described, and the specific steps are as follows:
[0115] Step S301, migrate lock type structure units: During the isolation phase of the parallel coupler, lock type structure units are selected and migrated; among them, lock type structure units include the parallel coupling system global lock GRS structure unit ISGLOCK and the database global lock type structure unit DB2 LOCK1 lock type structure unit, and the GRS structure unit ISGLOCK and the DB2 LOCK1 structure unit need to be migrated respectively.
[0116] Migration operations for the GRS structure unit ISGLOCK can be performed during periods of low access to this structure unit, such as the period between nighttime batch processing and the daytime peak online activity, when there are fewer locking operations on files, etc.
[0117] If the GRS structure unit ISGLOCK and the DB2 LOCK1 structure unit have been migrated, it means that the lock type structure unit in the host cluster has completed the migration operation.
[0118] Step S302: In the isolation phase of the parallel coupler, cache type structure units are selected and migrated.
[0119] In this step, the migration operation of one cache type structure unit can be processed at a time, reducing the impact on online transactions when multiple cache type structure units are migrated at the same time.
[0120] If the migration of all cache type structure units is complete, it means that the migration operation of cache type structure units in the host cluster is complete.
[0121] Step S303: In the isolation phase of the parallel coupler, list-type structural units are selected and migrated.
[0122] In this step, the migration operation of one list-type structural unit can be processed at a time, reducing the impact on online transactions when multiple list-type structural units are migrated simultaneously.
[0123] If all list-type structural units have completed their migration, it means that the list-type structural units in the host cluster have completed their migration operation.
[0124] During the isolation phase of the parallel coupler, after steps S301 to S303 are completed, it can be determined that all structural units of all types in the parallel coupler to which isolation is to be performed have completed the migration operation to another parallel coupler. Maintenance personnel can then implement physical isolation and subsequent maintenance operations on this parallel coupler. At this time, the host cluster continues to provide shared memory access services through another parallel coupler, ensuring the normal operation of the host cluster's external services.
[0125] By taking into account the type characteristics of different structural units and the impact of migration operations on online transactions, and by sequentially migrating different types of structural units in the host cluster, the impact of the isolation operation of the parallel coupler on online transactions can be minimized. All structural units of all types in the parallel coupler can be migrated without requesting a downtime window to complete the isolation operation of the parallel coupler.
[0126] Optionally, in one embodiment, the migration process of the lock type structure unit is described in conjunction with the following steps. In this embodiment, the current write mode of the lock type structure unit DB2 LOCK1 used by the DB2 database can be modified to the quasi-synchronous system-managed duplexing mode. That is, under normal system operation, without changing the definition of the original database lock type structure unit or adding any DUPLEX-related control parameters, the problem of decreased online transaction performance caused by excessive CPU utilization under single-write mode (SIMPLEX) can be solved.
[0127] The specific implementation method is as follows: First, in the definition stage of the DB2 LOCK1 structure unit, set the following keyword: PREFLIST(CF1, CF2). Among them, PREFLIST(CF1, CF2) represents the priority order of the two parallel couplers of the pre-allocated replicas in this cache structure unit, where CF1 is the preferred parallel coupler of the replica (i.e., the first parallel coupler), and CF2 is the parallel coupler where the alternative replicas are located (i.e., the second parallel coupler).
[0128] It should be noted that in the scenario of maintaining the undistributed parallel coupler of DB2 LOCK1, the migration and relocation operations of the DB2 LOCK1 lock type structural units are not involved.
[0129] like Figure 4 As shown, during the off-peak business hours before the maintenance of the parallel coupler where DB2 LOCK1 is distributed, the operating mode of the DB2 LOCK1 structural unit is proactively adjusted to quasi-synchronous dual-write mode. By implementing quasi-synchronous dual-write, the creation of the backup copy of the structural unit DB2 LOCK1 and the data synchronization between the primary copy (i.e., the aforementioned primary database) and the backup copy (i.e., the aforementioned backup database) are achieved in advance. The specific implementation method includes:
[0130] Step 1, create a backup copy;
[0131] Step 2, establish quasi-synchronous replication. Specifically, use the following keywords to adjust the definition of the DB2 LOCK1 structure unit, thereby changing the original single-write mode to quasi-synchronous dual-write mode: "DUPLEX(ALLOWED,ASYNCHONLY);PREFLIST(CF1,CF2)".
[0132] Among them, DUPLEX(ALLOWED, ASYNCHONLY) indicates that the DB2 LOCK1 lock type structure unit can enable dual-write mode, and ASYNCHONLY indicates that the current write mode has been changed to Asynchronous User-Managed Duplexing.
[0133] By changing the current write mode to near real-time dual-write mode instead of real-time dual-write mode (User-Managed Duplexing), the problems of excessive CPU consumption of parallel coupler computing resources and longer online transaction time caused by the synchronization of the primary and backup replicas in the backend can be avoided under real-time dual-write mode (User-Managed Duplexing).
[0134] Next, the new lock type structure unit definition will take effect:
[0135] "SETXCF START, POLICY, TYPE=CFRM, POLNM=CFRMPOLx"; where SETXCF START, POLICY, TYPE=CFRM indicates that the START command of the SETXCF command selects to apply a new defined policy for the lock type structure unit, and POLNM=CFRMPOLx indicates the name of the newly applied policy.
[0136] It should be noted that this operation only applies to the definition of the modified structural unit. It does not yet apply to structural units in the parallel coupler memory that are being accessed by the business virtual machine. Additional operations are required to apply the changes to structural units in the parallel coupler.
[0137] Step 3, activate the near real-time dual-write mode of the lock type structure unit DB2 LOCK1 in the parallel coupler:
[0138] “SETXCF START, REBUILD, DUPLEX, STRNM = DB2_LOCK1”; where the START option of the SETXCF command is called to enable dual-write mode for the lock type structure unit DB2_LOCK1. The system will adjust this structure unit to near real-time synchronous dual-write mode according to the declaration in the policy (using the DUPLEX(ALLOWED, ASYCHONLY) keyword).
[0139] After creating a backup copy of the lock-type structure unit in another parallel coupler CF2 (i.e., the second parallel coupler mentioned above) (e.g., through PREFLIST(CF1, CF2)), a quasi-synchronous dual-write replication relationship (i.e. the binding relationship mentioned above) is established between the primary copy and the backup copy. The data in the primary copy is copied to the backup copy, and the business virtual machine continues to access the original primary copy to provide online transaction operation support.
[0140] It should be noted that the above operations can be performed during the off-peak business window closest to the maintenance window before parallel coupler maintenance, such as implementing the near real-time dual-write mode of lock type structure unit DB2 LOCK1 about half an hour in advance.
[0141] By following the steps above, and by establishing a backup copy of the lock-type structural unit DB2 LOCK1 in advance and completing the data copying operation between the primary copy and the backup copy, the problem of excessively long migration time caused by the large data volume during full centralized migration of the lock-type structural unit in the original single-write mode can be solved. Furthermore, performing the migration during the off-peak business window closest to the maintenance window can minimize the CPU consumption of the parallel coupler computing resources caused by enabling the near real-time dual-write mode of the lock-type structural unit.
[0142] Furthermore, in one embodiment, such as Figure 5 As shown, the settings "SETXCF STOP, REBUILD, DUPLEX, STRNM=DB2_LOCK1, KEEP=NEW" are used to isolate the parallel coupler where the lock type structure unit DB2 LOCK1 is located.
[0143] Specifically, the DUPLEX function is stopped by calling the STOP option of the SETXCF command. STRNM=DB2_LOCK1 represents the name of the DB2_LOCK1 structure unit that implements the DUPLEX function stop. KEEP=NEW means that the backup copy in the original quasi-synchronous dual-write mode is retained, and the primary copy in the original dual-write mode is discarded to achieve isolation of the parallel coupler where the original primary copy is located (i.e., the first parallel coupler mentioned above).
[0144] Then, the original backup copy is transformed into the new primary copy. The business virtual machine can access the primary copy of the new lock type structure unit after strong consistency synchronization is completed to provide services to the outside world. This operation is automatically implemented by the system based on commands and does not require manual intervention.
[0145] Next, the synchronization and replication relationship of the lock type structure unit is disconnected. This operation is automatically performed by the system based on commands and requires no manual intervention.
[0146] Furthermore, the original master copy of the lock-type structure unit is discarded. This operation is automatically performed by the system based on commands, requiring no manual intervention.
[0147] By following the steps above, during migration, one copy of the parallel coupler can be discarded according to the distribution location of the structure unit in the parallel coupler, while the primary copy or backup copy is retained to continue providing services. This minimizes the impact of the DB2 LOCK1 structure unit migration operation used by the database on the online application operation process and optimizes the online service performance of the system during maintenance. During the off-peak online period before maintenance of the parallel coupler containing the lock-type structural unit begins, enabling the near-real-time dual-write mode of the database lock-type structural unit and establishing a backup copy in another parallel coupler in advance can reduce the excessive consumption of CPU resources of the parallel coupler caused by long-term operation of the near-synchronous dual-write mode. Furthermore, by establishing the backup copy in advance, the data replication from the primary copy to the backup copy is completed in advance, reducing the migration time of the lock-type structural unit in the original single-write mode from minutes to seconds. This shortens the migration process of the lock-type structural units used by the database, solves the problem of the excessively long period of inaccessibility of online transactions for the lock-type structural unit DB2 LOCK1 during the migration process, reduces the impact of the migration process on online transactions, and the switching between the primary copy and the backup copy can be made almost transparent to online transactions, so that the migration process of the lock-type structural unit does not require a downtime window.
[0148] Optionally, in one embodiment, combined with Figure 6 The migration process for cache type structural units is described. In this embodiment, all cache type structural units used by the DB2 database, specifically the GBP global buffer pool structural units, are routinely deployed in User-Managed Duplexing mode. The definition of each GBP structural unit is set using the following keywords: "DUPLEX(ENABLED); PREFLIST(CF1, CF2);".
[0149] DUPLEX(ENABLED) indicates that the user-managed dual-write mode for this cache structure unit is enabled, and PREFLIST(CF1, CF2) indicates that the primary copy and backup copy of this cache structure unit are pre-allocated in two parallel couplers, where CF1 is the parallel coupler where the primary copy is located (equivalent to the first parallel coupler mentioned above), and CF2 is the parallel coupler where the backup copy is located (equivalent to the second parallel coupler mentioned above).
[0150] Depending on the specific parallel coupler requiring isolation operations, such as implementing isolation operations on the parallel coupler containing cache-type structural units, etc. Figure 6 As shown, in step 1, the copy relationship of the cache type structure unit is broken;
[0151] Step 2: Discard the cached type structure unit replica. The implementation method for this operation is the same as above and will not be repeated here. It should be noted that discarding a cached type structure unit replica is transparent to the operation of online transactions and has minimal impact.
[0152] Step 3: The business virtual machine continues to use the primary replica of the cached structure unit to provide services normally. This operation is automatically performed by the system based on commands and requires no manual intervention.
[0153] The above steps can be achieved using the following command:
[0154] The command is set to "SETXCF STOP, REBUILD, DUPLEX, STRNM=GBPx, KEEP=OLD". The STOP option of the SETXCF command stops the DUPLEX function. STRNM=GPBx represents the name of the GBP structure unit that stops the DUPLEX function. KEEP=OLD means retaining the primary copy in the original dual-write mode and discarding the backup copy.
[0155] In this embodiment, the Global Buffer Pool (GBP) structure unit used by the DB2 database is routinely deployed in a quasi-synchronous dual-write mode. During migration, one copy of the parallel coupler is discarded according to the distribution location of the structure unit, while the primary copy or backup copy is retained to continue providing services. This minimizes the impact of the migration operation of the GBP structure unit used by the database on the online application operation and optimizes the online service performance of the system during maintenance.
[0156] Furthermore, in one embodiment, depending on the parallel coupler that actually requires isolation, isolation is performed on the parallel coupler containing the main copy of the cache type structural unit, such as... Figure 7 As shown, the specific steps are as follows:
[0157] The following command can be used to isolate the parallel coupler containing the primary and secondary copies of the cache type structure unit:
[0158] "SETXCF STOP, REBUILD, DUPLEX, STRNM=GBPx, KEEP=NEW".
[0159] Specifically, the DUPLEX function is stopped by calling the STOP option of the SETXCF command. STRNM=GPBx represents the name of the GBP structure unit that implements the DUPLEX function stop. KEEP=NEW means that the backup copy in the original dual-write mode is retained and the primary copy in the original dual-write mode is discarded to achieve isolation of the parallel coupling where the original primary copy is located.
[0160] Step 1: Based on the above commands, the incremental updates from the previous consistency point to the current time are synchronously copied to the backup copy. At this time, online transactions that are accessing this cache type structure unit will be briefly stopped.
[0161] Among them, the impact of isolation operations on the parallel coupler containing the primary copy of the cache structure unit is greater than that on the parallel coupler containing the backup copy of the cache structure unit:
[0162] It should be noted that this operation is performed automatically by the system based on commands, without the need for manual intervention.
[0163] Step 2: The original backup copy becomes the new master copy.
[0164] Step 3: The business virtual machine uses the copy of the new cache structure unit after strong consistency synchronization to access the external service. This operation is automatically implemented by the system based on commands and does not require manual intervention.
[0165] Step 4: Disconnect the synchronous replication relationship of the cache type structure unit. This operation is automatically performed by the system based on commands and requires no manual intervention.
[0166] Step 5: Discard the original copy of the cached type structure unit. This operation is performed automatically by the system based on commands and requires no manual intervention.
[0167] It should be noted that the impact of cache type migration operations on online transactions under the dual-write mode of user-managed structural units is far less than that of lock type structural unit migration operations. However, within the impact of structural unit migration operations under the dual-write mode of user-managed cache type, discarding a primary replica of a cache type structural unit has a greater impact on online transaction execution than discarding a backup replica. Generally, to minimize the impact, cache type structural unit migration operations are performed during off-peak online traffic periods.
[0168] Optionally, migration operations for multiple cache type structural units used by a host cluster can be executed sequentially, with the interval between migration commands for each cache type structural unit controlled to be at least 1 second, in order to avoid multiple cache type structural units migrating simultaneously.
[0169] Optionally, in one embodiment, the migration process of list-type structural units is described. List-type structural units can realize cross-virtual machine system message interaction and task distribution. Messages lost during the migration process of list-type structural units will be retransmitted. Therefore, the migration process of list-type structural units will not affect the operation of online transactions.
[0170] The following command performs a migration of a list-type structural unit:
[0171] "SETXCF START,REBUILD,STRNM=IXCSTRx,LOCATOIN=OTHER".
[0172] Specifically, the START option of the SETXCF command is used to perform a migration operation on the list-type structure unit IXCSTRx. LOCATION=OTHER means that the list-type structure unit is moved from the current parallel coupler to another parallel coupler.
[0173] In this embodiment, migration operations can be performed sequentially on all list-type structural units in the same host cluster. The interval between migration commands for each list-type structural unit is controlled to be at least 1 second to avoid multiple list-type structural units migrating simultaneously. This reduces the impact of the migration process of all list-type structural units on the business and further reduces the impact on online transactions when the parallel coupler is isolated. As a result, the availability of the system and the user experience are improved when the parallel coupler is isolated without the need for a downtime window.
[0174] In an optional embodiment, the host platform is typically deployed using a cluster architecture to meet the requirements of high concurrency and high availability for business continuity. The business system deploys multiple business virtual machines (referred to as logical partitions, LPARs, on the host platform) on the host platform, building these virtual machines into a parallel coupled system (cluster). Database and transaction middleware process instances are deployed on each virtual machine. The host used by the host platform software is, for example, an IBM z-series mainframe (hereinafter referred to as the host).
[0175] like Figure 8 As shown, to achieve business continuity, the host platform physical hardware adopts a parallel coupled system architecture (cluster), with a 4+2 structure, namely 4 physical hosts and 2 physical parallel couplers. Figure 8 The physical hosts are designated as Physical Host 1 through Physical Host 4, and the two physical parallel couplers are designated as Parallel Coupler 1 and Parallel Coupler 2. Devices of the same type have the same model and processing capacity to achieve mutual backup and high availability. Physical connections between the various physical hardware components are achieved via fiber optic cables to meet access requirements.
[0176] The single physical disk storage unit uses RAID-10 technology to balance data verifiability and striping write speed requirements; disk mirroring technology is used between multiple disk storage units to improve disk availability.
[0177] The disk mirroring hot-swapping technology divides the host disk storage into two types of disk devices: production master disks and production slave disks. Redundant fiber optic connections are used between each logical partition and the production master disk, as well as between the production master disk and the production slave disk. In disk mirroring hot-swapping technology, after a production transaction sends a write operation to the production master disk, the technology then synchronously writes the update to the production slave disk. Only after these two write operations are completed is the disk write operation considered finished, and the transaction continues. When the production master disk experiences a fatal hardware failure that cannot be automatically repaired, the disk mirroring hot-swapping technology converts the original production slave disk into the production master disk, providing data update and read services, thus ensuring that transactions can continue. After the production master disk failure is resolved, the technology's rollback function restores the system to its pre-failure state. The entire switching process is transparent to business operations.
[0178] Each physical host is divided into logical partitions (LPARs), each of which becomes the smallest independent working unit, i.e., a virtual machine (VM). Each LPAR is primarily categorized based on its purpose: business VMs responsible for transaction processing, network VMs responsible for communication, and data VMs responsible for data replication. Different software is installed on each type of VM according to its function. Business VMs can install the z / OS operating system, DB2 database, transaction middleware CICS, message queue middleware MQ, and other software. This deployment method, which involves deploying multiple types of software within a single VM, is completely different from the separate deployment of application VMs and database VMs in open systems. To ensure proper disk data replication, GDPS software required for data replication needs to be installed on data VMs. Network VMs primarily fulfill the interconnection requirements between the host and the external gateway, providing SNA protocol functionality.
[0179] Regarding the number of logical partitions (virtual machines), to ensure the business's concurrent processing capabilities while also considering high availability, multiple virtual machines of each type are typically deployed. Figure 9 In total, four service virtual machines were deployed to meet the service support requirements, with one service virtual machine deployed on each physical host.
[0180] like Figure 9As shown, to achieve efficient interaction and communication between multiple logical partitions across multiple physical host hardware devices and to enable high concurrency in business processing, the host platform uses physical parallel couplers (CF). At least two parallel coupler hardware units are installed simultaneously during installation to achieve hardware redundancy. Physical hosts and physical parallel couplers are fully connected via fiber optic cables. Communication between physical hosts relies on the physical memory of the parallel couplers. The parallel coupler host divides its memory into parallel coupled structure units (CF STRUCTURE), which serve as the smallest management unit, providing support for interaction between physical hosts. A parallel coupled system (cluster) provides cross-system extended (XES) services, offering efficient access services to users of database instances, middleware instances, etc., running on virtual machines.
[0181] The parallel coupler host can be viewed as an external memory management machine, which internally divides and manages memory according to the type of structure unit used. Based on different functions and types, the structure units in the parallel coupler are divided into three types: lock type structure units, cache type structure units, and list type structure units. Logical partitions between different physical hosts achieve communication and data sharing by accessing different structure units within the coupler.
[0182] like Figure 10 As shown, the lock type (LOCK) structural unit stores records of mutually exclusive accesses to the same resource within the parallel coupled system (PARALLELLSYSPLEX), such as multiple business virtual machines simultaneously attempting to modify the same file. To reduce the impact on transactions caused by the migration of database lock type structural units across parallel couplers, and to reduce the consumption of computing resources (CPU) during migration, the host cluster can briefly enable a near real-time synchronous dual-write mode for the structural unit system management of lock type structural unit DB2 LOCK1, seeking a trade-off between CPU utilization and the impact on transactions during parallel coupler maintenance.
[0183] like Figure 11As shown, cache-type structural units are deployed in both parallel couplers. One parallel coupler stores the primary copy, and the other stores the backup copy. DB2 manages the synchronization of content between the primary and backup copies. A typical example is the global buffer pool (GBP) structural unit used by DB2. In this case, the primary copy can be used to provide data access services. When switching from single-write mode to dual-write mode, a cache-type structural unit is created from one structural unit in one parallel coupler to a new copy in the other parallel coupler. Then, the data content of the original structural unit is copied to the newly created structural unit. In this case, the backup copy can be used to provide data access services.
[0184] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0185] This embodiment also provides a data access service providing apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.
[0186] Figure 12 This is a structural block diagram of a data access service providing apparatus according to an embodiment of this application, the apparatus comprising:
[0187] The determination module 1202 is used to determine the first parallel coupler currently providing data access services in response to a maintenance instruction sent by the target object, wherein the first parallel coupler is the parallel coupler to be maintained indicated by the maintenance instruction.
[0188] The migration module 1204 is used to migrate the preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type, wherein the structural unit type includes at least one of the following: lock type, cache type, list type;
[0189] The alternative module 1206 is used to provide data access services by replacing the first parallel coupler with the second parallel coupler when it is determined that all the preset structural units have migrated to the second parallel coupler.
[0190] The data access service providing apparatus according to the embodiments of this application can, in response to a maintenance instruction sent by a target object, determine a first parallel coupler currently providing data access services, wherein the first parallel coupler is the parallel coupler to be maintained as indicated by the maintenance instruction; migrate preset structural units contained in the first parallel coupler to a second parallel coupler according to structural unit type, wherein the structural unit type includes at least one of the following: lock type, cache type, list type; when it is determined that all the preset structural units have been migrated to the second parallel coupler, the second parallel coupler is used to replace the first parallel coupler to provide data access services. By adopting the above technical solution, the technical problem in related technologies of how to migrate the structural units of a parallel coupler without affecting system availability is solved. From the perspective of the structural units in the parallel coupler, adjusting the centralized migration method of all structural units in the parallel coupler to a method of migrating all structural units in the parallel coupler according to structural unit type can reduce the impact of structural unit migration on system online transactions, thereby improving the system availability during the migration of all structural units in the parallel coupler.
[0191] In an exemplary embodiment, the migration module 1204 further includes a first determining unit, configured to determine a lock type structural unit from the preset structural unit when it is determined that the structural unit type includes a lock type; a second determining unit, configured to determine a primary database established for the lock type structural unit in the first parallel coupler, and a backup database established for the lock type structural unit in the second parallel coupler; wherein the data in the primary database includes at least the lock type structural unit; and a first migration unit, configured to migrate the lock type structural unit of the primary database to the backup database according to the binding relationship between the primary database and the backup database after modifying the current write mode of the lock type structural unit to a quasi-synchronous dual write mode, so as to migrate the lock type structural unit of the first parallel coupler to the second parallel coupler.
[0192] In an exemplary embodiment, the first migration unit is further configured to implement the above-mentioned technical solution of modifying the current write mode of the lock type structure unit to a quasi-synchronous dual-write mode in the following manner: when it is determined that the current write mode of the lock type structure unit is a single-write mode and the lock type structure unit is not accessed, the current write mode of the lock type structure unit is updated from the single-write mode to the quasi-synchronous dual-write mode; when it is determined that the current write mode of the lock type structure unit is a single-write mode and the lock type structure unit is accessed, the current write mode of the lock type structure unit is modified from the single-write mode to the dual-write mode, and the dual-write mode is updated to a quasi-synchronous dual-write mode.
[0193] In an exemplary embodiment, the first migration unit is further configured to: obtain a first mode identifier of the lock type structure unit, wherein the first mode identifier is used to represent the single write mode of the lock type structure unit; after modifying the first mode identifier to a second mode identifier, control the second mode identifier to take effect by calling a first enable instruction, wherein the second mode identifier is used to represent the quasi-synchronous dual write mode of the lock type structure unit, and the first enable instruction is used to enable the current write mode of the lock type structure unit.
[0194] In an exemplary embodiment, the first migration unit is further configured to: obtain a first mode identifier of the lock type structure unit, wherein the first mode identifier is used to represent a single-write mode of the lock type structure unit; after modifying the first mode identifier to a third mode identifier, control the third mode identifier to take effect by calling a second enable instruction, wherein the third mode identifier is used to represent a dual-write mode of the lock type structure unit, and the second enable instruction is used to enable the current write mode of the lock type structure unit; modify the third mode identifier to a second mode identifier according to a modification instruction, and control the second mode identifier to take effect by calling the second enable instruction, wherein the second mode identifier is used to represent a quasi-synchronous dual-write mode of the lock type structure unit.
[0195] In an exemplary embodiment, the migration module 1204 further includes: a third determining unit, configured to determine a cache type structural unit from the preset structural units when it is determined that the structural unit type includes a cache type; a first modifying unit, configured to modify the current write mode of the cache type structural unit to a user-managed dual-write mode; a fourth determining unit, configured to determine, after the user-managed dual-write mode of the cache type structural unit takes effect, the primary database established for the cache type structural unit in the first parallel coupler and the backup database established for the cache type structural unit in the second parallel coupler; and a second migration unit, configured to migrate the cache type structural units of the primary database to the backup database according to the binding relationship between the primary database and the backup database, so as to migrate the cache type structural units of the first parallel coupler to the second parallel coupler.
[0196] In an exemplary embodiment, the migration module 1204 further includes a first isolation module, configured to: perform isolation operations required to complete the migration of the first parallel coupler, wherein the isolation operations required to complete the migration of the first parallel coupler include: controlling the backup database of the second parallel coupler to stop backing up data from the main database of the first parallel coupler according to a first stop instruction; discarding the data in the backup database and using the data in the main database to provide data access services.
[0197] In an exemplary embodiment, the migration module 1204 further includes a second isolation module, configured to: perform isolation operations required to complete the migration on the second parallel coupler, wherein performing the isolation operations required to complete the migration on the second parallel coupler includes: in response to a second stop instruction, retrieving new data from the primary database between the previous backup time and the current time; backing up the new data to the backup database according to the binding relationship between the primary database and the backup database; releasing the binding relationship, discarding the data in the primary database, and providing data access services according to the data in the backup database, so as to use the second parallel coupler to replace the first parallel coupler in providing data access services.
[0198] In an exemplary embodiment, the migration module 1204 further includes: a fifth determining unit, configured to determine a list-type structural unit from the preset structural units when it is determined that the structural unit type includes a list type; a sixth determining unit, configured to determine a main database established for the list-type structural unit in the first parallel coupler and a backup database established for the list-type structural unit in the second parallel coupler; wherein the data in the main database includes at least the list-type structural unit; and a third migration unit, configured to migrate the list-type structural unit of the main database to the backup database according to the binding relationship between the main database and the backup database in response to a third enabling instruction, so as to migrate the list-type structural unit of the first parallel coupler to the second parallel coupler; wherein the third enabling instruction is used to enable the migration operation of the list-type structural unit.
[0199] In an exemplary embodiment, the migration module 1204 further includes: a third migration unit, configured to determine the migration data of the backup database after the migration is completed; compare the migration data with the original data in the master database; and, if the comparison result indicates that the migration data and the original data are inconsistent, control the master database to migrate the list-type structure unit of the master database to the backup database based on the binding relationship according to a first resend instruction.
[0200] In an exemplary embodiment, the migration module 1204 further includes: a classification unit, configured to classify the preset structural unit into multiple groups of structural units according to the structural unit type, wherein each group of structural units corresponds to a structural unit type; a sequence determination unit, configured to determine the unit order among the multiple structural units contained in each group of structural units; and a fourth migration unit, configured to migrate each group of structural units according to the unit order, wherein the time interval between the multiple structural units contained in each group of structural units during migration is greater than a preset value.
[0201] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the above embodiments when it is run.
[0202] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0203] S1, in response to the maintenance instruction sent by the target object, determine the first parallel coupler currently providing data access services, wherein the first parallel coupler is the parallel coupler to be maintained indicated by the maintenance instruction;
[0204] S2, according to the structural unit type, the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler, wherein the structural unit type includes at least one of the following: lock type, cache type, list type;
[0205] S3, if it is determined that all the preset structural units have migrated to the second parallel coupler, the second parallel coupler is used to replace the first parallel coupler to provide data access services.
[0206] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0207] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0208] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0209] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0210] S1, in response to the maintenance instruction sent by the target object, determine the first parallel coupler currently providing data access services, wherein the first parallel coupler is the parallel coupler to be maintained indicated by the maintenance instruction;
[0211] S2, according to the structural unit type, the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler, wherein the structural unit type includes at least one of the following: lock type, cache type, list type;
[0212] S3, if it is determined that all the preset structural units have migrated to the second parallel coupler, the second parallel coupler is used to replace the first parallel coupler to provide data access services.
[0213] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0214] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0215] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0216] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for providing a data access service, characterized in that, include: In response to a maintenance instruction sent by the target object, a first parallel coupler currently providing data access services is determined, wherein the first parallel coupler is the parallel coupler to be maintained indicated by the maintenance instruction; According to the structural unit type, the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler, wherein the structural unit type includes at least one of the following: lock type, cache type, list type; If it is determined that all the preset structural units have migrated to the second parallel coupler, the second parallel coupler is used to replace the first parallel coupler to provide data access services. According to the structural unit type, the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler, including: If it is determined that the structural unit type includes a lock type, a lock type structural unit is determined from the preset structural unit; The main database established within the first parallel coupler for the lock-type structure unit and the backup database established within the second parallel coupler for the lock-type structure unit are determined; wherein, the data in the main database includes at least the lock-type structure unit; After modifying the current write mode of the lock type structure unit to the quasi-synchronous dual write mode, the lock type structure unit of the primary database is migrated to the backup database according to the binding relationship between the primary database and the backup database, so as to migrate the lock type structure unit of the first parallel coupler to the second parallel coupler.
2. The method for providing data access services according to claim 1, characterized in that, The current write mode of the lock type structure unit is modified to a quasi-synchronous dual-write mode by at least one of the following methods: If it is determined that the current write mode of the lock type structure unit is single write mode and the lock type structure unit is not accessed, the current write mode of the lock type structure unit is updated from single write mode to quasi-synchronous dual write mode. If it is determined that the current write mode of the lock type structure unit is single write mode and the lock type structure unit is accessed, the current write mode of the lock type structure unit is changed from single write mode to dual write mode, and the dual write mode is updated to quasi-synchronous dual write mode.
3. The method for providing data access services according to claim 2, characterized in that, Updating the current write mode of the lock type structure unit from single write mode to quasi-synchronous dual write mode includes: Obtain the first mode identifier of the lock type structure unit, wherein the first mode identifier is used to represent the single write mode of the lock type structure unit; After the first mode identifier is modified to the second mode identifier, the second mode identifier is activated by calling the first enable instruction. The second mode identifier is used to represent the quasi-synchronous dual-write mode of the lock type structure unit, and the first enable instruction is used to enable the current write mode of the lock type structure unit.
4. The method for providing data access services according to claim 2, characterized in that, Modifying the current write mode of the lock type structure unit from single-write mode to dual-write mode, and updating the dual-write mode to quasi-synchronous dual-write mode, includes: Obtain the first mode identifier of the lock type structure unit, wherein the first mode identifier is used to represent the single write mode of the lock type structure unit; After the first mode identifier is modified to the third mode identifier, the third mode identifier is activated by calling the second enable instruction. The third mode identifier is used to represent the dual write mode of the lock type structure unit, and the second enable instruction is used to enable the current write mode of the lock type structure unit. The third mode identifier is modified to the second mode identifier according to the modification instruction, and the second mode identifier is controlled to take effect by calling the second enable instruction. The second mode identifier is used to represent the quasi-synchronous dual write mode of the lock type structure unit.
5. The method for providing data access services according to claim 1, characterized in that, According to the structural unit type, the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler, which further includes: If it is determined that the structure unit type includes a cache type, a cache type structure unit is determined from the preset structure unit; Modify the current write mode of the cache type structure unit to user-managed dual-write mode; After the user management dual-write mode of the cache type structure unit takes effect, the main database established for the cache type structure unit in the first parallel coupler and the backup database established for the cache type structure unit in the second parallel coupler are determined. Based on the binding relationship between the primary database and the backup database, the cache type structure unit of the primary database is migrated to the backup database, so as to migrate the cache type structure unit of the first parallel coupler to the second parallel coupler.
6. The method for providing data access services according to claim 5, characterized in that, The method further includes: Performing isolation operations on the first parallel coupler to complete the migration, the isolation operations on the first parallel coupler to complete the migration include: According to the first stop command, the backup database of the second parallel coupler is controlled to stop data backup from the main database of the first parallel coupler; Discard the data in the backup database and use the data in the primary database to provide data access services.
7. The method for providing data access services according to claim 5, characterized in that, The method further includes: Perform the isolation operation required to complete the migration on the second parallel coupler, the isolation operation including: In response to the second stop command, new data from the previous backup time to the current time is retrieved from the main database; The newly added data is backed up to the backup database according to the binding relationship between the primary database and the backup database. The binding relationship is released, the data in the primary database is discarded, and data access services are provided based on the data in the backup database, so that the second parallel coupler can replace the first parallel coupler to provide data access services.
8. The method for providing data access services according to claim 1, characterized in that, According to the structural unit type, the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler, which further includes: If it is determined that the structure unit type includes a list type, a list type structure unit is determined from the preset structure unit; The main database established within the first parallel coupler for the list-type structure unit and the backup database established within the second parallel coupler for the list-type structure unit are determined; wherein, the data in the main database includes at least the list-type structure unit; In response to a third enable instruction, the list-type structure unit of the primary database is migrated to the backup database according to the binding relationship between the primary database and the backup database, so as to migrate the list-type structure unit of the first parallel coupler to the second parallel coupler; wherein, the third enable instruction is used to enable the migration operation of the list-type structure unit.
9. The method for providing data access services according to claim 8, characterized in that, After migrating the list-type structure unit of the primary database to the secondary database according to the binding relationship between the primary database and the secondary database, the method further includes: Determine the migration data of the backup database after the migration is completed; The migration data is compared with the original data in the main database; If the comparison result indicates that the migrated data and the original data are inconsistent, the master database is controlled to migrate the list-type structure unit of the master database to the backup database based on the binding relationship according to the first resend instruction.
10. The method for providing data access services according to claim 1, characterized in that, According to the structural unit type, the preset structural units contained in the first parallel coupler are migrated to the second parallel coupler, which further includes: The preset structural units are classified into multiple groups of structural units according to the structural unit type, wherein each group of structural units corresponds to a structural unit type. For each group of structural units, the unit order among the multiple structural units contained in each group of structural units is determined; The structural units in each group are migrated in the order of the units, wherein the time interval between the multiple structural units in each group is greater than a preset value.
11. A data access service providing apparatus, characterized in that, include: A determination module is used to determine the first parallel coupler currently providing data access services in response to a maintenance instruction sent by the target object, wherein the first parallel coupler is the parallel coupler to be maintained indicated by the maintenance instruction; A migration module is used to migrate preset structural units contained in the first parallel coupler to the second parallel coupler according to the structural unit type, wherein the structural unit type includes at least one of the following: lock type, cache type, list type; An alternative module is used to provide data access services by replacing the first parallel coupler with the second parallel coupler when it is determined that all the preset structural units have migrated to the second parallel coupler. The migration module is further configured to: determine a lock type structural unit from the preset structural units when the structural unit type includes a lock type; determine the primary database established for the lock type structural unit in the first parallel coupler and the backup database established for the lock type structural unit in the second parallel coupler; wherein the data in the primary database includes at least the lock type structural unit; after modifying the current write mode of the lock type structural unit to a quasi-synchronous dual-write mode, migrate the lock type structural unit of the primary database to the backup database according to the binding relationship between the primary database and the backup database, so as to migrate the lock type structural unit of the first parallel coupler to the second parallel coupler.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method according to any one of claims 1 to 10.
13. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 10 through the computer program.
Citation Information
Patent Citations
Method, system and program products for copying coupling facility structures
US6609214B1