Data disaster recovery method and system
By dividing the main platform and the backup platform in the data disaster recovery system, the duplication and redundancy of data collection and processing caused by the Hadoop cluster setting is avoided, and the consistency of the data is ensured.
Patent Information
- Application Number
- CN202111026638.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-02
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-09-02
AI Technical Summary
In the existing technology, setting up two sets of Hadoop clusters leads to duplication and data storage redundancy in data collection, data ETL, and data indicator processing, and errors caused by the processing process lead to inconsistent data comparisons between the two places.
By setting up two sets of Hadoop clusters in the data disaster recovery system, they are divided into the main platform and the backup platform. The main platform is set up with a data service layer, a data acquisition layer and a data computing layer. The data acquisition layer collects the current business information of the business system and It is sent to the data computing layer for processing, and the processing result is converted into an HFILE file and inserted into the write cluster. The write cluster synchronizes it to the read cluster and the backup platform to avoid repeated processing and redundant storage.
It solves the problems of data collection, ETL processing and storage redundancy and ensures the consistency of data between the two places.
Smart Images

Figure CN113742137B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and more specifically, to a data disaster recovery method and system. Background Art
[0002] The core transaction systems related to deposits, loans and foreign exchange in the financial industry need to implement corresponding disaster recovery settings in accordance with the requirements of the regulatory authorities. Although the regulatory authorities have not yet made certain requirements for big data disaster recovery, big data technology has begun to set up corresponding disaster recovery operations in important external channel applications.
[0003] In the existing technology, the traditional business system is mainly set up in the same city with multiple active settings. Specifically, two sets of the same Hadoop clusters and application services are set up in the same city. However, setting up two sets of clusters not only easily leads to duplication and redundant data storage in related data collection, data ETL, and data index processing, but also easily causes errors caused by various processing processes, resulting in inconsistent data comparisons between the two locations. Summary of the invention
[0004] In view of this, the present invention provides a data disaster recovery method and system to solve the problem in the prior art that due to the setting of two sets of clusters, there are duplications and data storage redundancy in related data collection, data ETL, and data indicator processing, as well as errors caused by various processing processes, resulting in inconsistent comparison of data between two locations.
[0005] The first aspect of the present invention discloses a data disaster recovery system, comprising: a main platform and a backup platform, wherein the main platform comprises a data service layer, a data acquisition layer, and a data computing layer, wherein the data service layer comprises a read cluster and a write cluster, and the system comprises:
[0006] The data acquisition layer is used to collect current business information of the business system and send the current business information to the data calculation layer; wherein the current business information includes multiple current business data;
[0007] The data computing layer is used to receive the current business information, perform data processing on the current business information, convert the obtained calculation result of the current business information into an HFILE file, and insert the HFILE file into the write cluster;
[0008] The write cluster is used to synchronize the HFILE file to the read cluster and the standby platform when detecting the inserted HFILE file.
[0009] Optionally, the main platform further includes a data storage layer, and the data acquisition layer is further used for:
[0010] The current business information is acquired and stored.
[0011] Optionally, the receiving the current business information, performing data processing on the current business information, converting the obtained calculation result of the current business information into an HFILE file, and inserting the HFILE file into the data computing layer of the write cluster, is specifically used for:
[0012] Receive the current business information sent by the data acquisition layer, and perform ETL processing on the current business information to obtain a current business information calculation result, wherein the current business information calculation result includes a calculation result of each current business data;
[0013] Using the putlist function, sequentially obtain the calculation results of the first preset number of the business data from the current business information calculation results, convert the data format of the calculation results of the preset number of the business data into a target data format, generate an HFILE subfile, and insert the HFILE subfile into a target Region node in the write cluster until all the calculation results of the business data are inserted;
[0014] The write cluster includes a plurality of the Region nodes, a second preset number of target Region nodes are pre-set in the plurality of the Region nodes, the number of the target Region nodes is equal to the number of the HFILE sub-files, and the HFILE file is composed of the HFILE sub-files.
[0015] Optionally, when the inserted HFILE file is detected, synchronizing the HFILE file to the read cluster and the write cluster of the standby platform is specifically used for:
[0016] When the inserted HFILE sub-file is detected, the HFILE sub-file is synchronized to the read cluster and the standby platform until all the HFILE sub-files related to the current business information are synchronized to the read cluster and the standby platform.
[0017] Optionally, the system further includes:
[0018] The read cluster is used to merge various HFILE sub-files related to the current business information.
[0019] A second aspect of the present invention discloses a data disaster recovery method, which is applied to a data disaster recovery system. The data disaster recovery system includes: a main platform and a backup platform. The main platform includes a data service layer, a data acquisition layer, and a data computing layer. The data service layer includes a read cluster and a write cluster. The method includes:
[0020] The data acquisition layer collects current business information of the business system and sends the current business information to the data calculation layer; wherein the current business information includes multiple current business data;
[0021] The data computing layer receives the current business information, performs data processing on the current business information, converts the obtained calculation result of the current business information into an HFILE file, and inserts the HFILE file into the write cluster;
[0022] When the write cluster detects the inserted HFILE file, it synchronizes the HFILE file to the read cluster and the standby platform.
[0023] Optionally, the main platform further includes a data storage layer, and the method further includes:
[0024] The data storage layer obtains the current business information and stores the current business information.
[0025] Optionally, the data computing layer receives the current business information, performs data processing on the current business information, converts the obtained calculation result of the current business information into an HFILE file, and inserts the HFILE file into the write cluster, including:
[0026] Receive the current business information sent by the data acquisition layer, and perform ETL processing on the current business information to obtain a current business information calculation result, wherein the current business information calculation result includes a calculation result of each current business data;
[0027] Using the putlist function, sequentially obtain the calculation results of the first preset number of the business data from the current business information calculation results, convert the data format of the calculation results of the preset number of the business data into a target data format, generate an HFILE subfile, and insert the HFILE subfile into a target Region node in the write cluster until all the calculation results of the business data are inserted;
[0028] The write cluster includes a plurality of the Region nodes, a second preset number of target Region nodes are pre-set in the plurality of the Region nodes, the number of the target Region nodes is equal to the number of the HFILE sub-files, and the HFILE file is composed of the HFILE sub-files.
[0029] Optionally, when the write cluster detects the inserted HFILE file, synchronizing the HFILE file to the read cluster and the standby platform includes:
[0030] When the inserted HFILE sub-file is detected, the HFILE sub-file is synchronized to the read cluster and the standby platform until all the HFILE sub-files related to the current business information are synchronized to the read cluster and the standby platform.
[0031] Optionally, when the write cluster detects the inserted HFILE file, after synchronizing the HFILE file to the read cluster, the method further includes:
[0032] The read cluster merges the HFILE sub-files related to the current business information.
[0033] The present invention provides a data disaster recovery method and system. Two sets of Hadoop clusters are set in a data disaster recovery system, and the two Hadoop clusters are divided into a main platform and a backup platform. A data service layer, a data acquisition layer, and a data calculation layer are set in the main platform. The current business information of the business system is collected through the data acquisition layer, and the current business information is sent to the data calculation layer, so that after receiving the current business information, the data calculation layer processes the current business information to obtain the current business information calculation result, and after converting the current business information calculation result into a corresponding HFILE file, the HFILE file is inserted into the write cluster, so that when the write cluster detects the inserted HFILE file, the HFILE file is synchronized to the read cluster and the backup platform. The technical solution provided by the present invention divides two Hadoop clusters into a main platform and a standby platform, and sets a write cluster and a read cluster in the main platform. After the collected business information is processed by the main platform, the obtained result is inserted into the write cluster, and finally the inserted result is synchronized to the read cluster and the standby platform through the write cluster. That is to say, the process of processing the business information is realized by the main platform, and the standby platform only needs to store the result synchronized from the main platform, thereby solving the problem in the prior art that the duplication and data storage redundancy of related data collection, data ETL, and data indicator processing due to the setting of two Hadoop clusters, as well as the errors caused by various processing processes, lead to inconsistent comparison of data in two places. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0035] Figure 1 A schematic diagram of the structure of a data disaster recovery system provided by an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of the structure of another data disaster recovery system provided by an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of the structure of another data disaster recovery system provided by an embodiment of the present invention;
[0038] Figure 4 A schematic diagram of a data disaster recovery method provided by an embodiment of the present invention;
[0039] Figure 5 A flowchart of another data disaster recovery method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0042] It should be noted that the concepts such as "first" and "second" mentioned in the disclosure of the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0043] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of the present invention are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0044] See also Figure 1 , shows a structural diagram of a data disaster recovery system provided by an embodiment of the present invention, the data disaster recovery system includes a main platform 101 and a backup platform 102, the main platform includes a data service layer, a data acquisition layer, and a data computing layer, wherein the data service layer includes a read cluster and a write cluster.
[0045] In an embodiment of the present application, two Hadoop clusters can be set up in the data disaster recovery system, and the two Hadoop clusters can be divided into a primary platform and a backup platform. A data service layer, a data acquisition layer, and a data computing layer can be set up in the primary platform, and a read cluster and a write cluster can be set up in the data service layer.
[0046] The data acquisition layer is used to collect the current business information of the business system and send the current business information to the data calculation layer, where the current business information includes multiple current business data.
[0047] In the embodiment of the present application, the data acquisition layer collects the current business information of the business system in two specific ways, one is active data collection and the other is passive data collection.
[0048] The specific process of active data collection is as follows: the data acquisition layer uses big data collection technology to batch collect the current business information of the business system, or uses kafka+flink to collect the current business information of the business system in real time.
[0049] It should be noted that the data acquisition layer uses big data collection technology to call the sqoop component to batch collect the current business information of the business system.
[0050] The specific process of passive data collection is: receiving the current business information actively sent by the business system, and loading the received current business information.
[0051] The data computing layer is used to receive the current business information sent by the data acquisition layer, and perform data processing on the received current business information. After obtaining the calculation result of the current business information, the calculation result of the current business information is converted into an HFILE file, and the HFILE file is inserted into the write cluster.
[0052] In an embodiment of the present application, in order to improve the efficiency of inserting into the write cluster, after receiving the current business information sent by the data acquisition layer, the data computing layer performs ETL processing on the current business information, and obtains the calculation results of the current business information, it can use the putlist function to sequentially obtain the calculation results of the first preset number of business data from the calculation results of the current business information, and convert the data format of the calculation results of the first preset number of business data into the target data format to generate an HFILE sub-file; insert the HFILE sub-file into a target Region node in the write cluster until the calculation results of all business data are inserted. Among them, the target data format can be a binary format, and ETL is the abbreviation of Extract, transform, and load, which means that the current business information can be extracted, cleaned, converted, loaded, and other data processing.
[0053] Alternatively, after receiving the current business information sent by the data acquisition layer, the data computing layer performs ETL processing on the current business information and obtains the calculation results of the current business information, it can use put in an asynchronous manner to sequentially obtain the calculation results of the first preset number of business data from the current business information calculation results, and convert the data format of the calculation results of the first preset number of business data into the target data format, generate an HFILE sub-file, and insert the HFILE sub-file into a target Region node in the write cluster until all the calculation results of the business data are inserted. The target data format can be in binary format.
[0054] In an embodiment of the present application, the write cluster includes multiple Region nodes. In order to ensure the reasonable use of the Region nodes in the write cluster, a second preset number of target Regoin nodes can be set in advance in the multiple Region nodes of the write cluster, and the number of set target Region nodes can be equal to the number of HFILE sub-files to be generated.
[0055] Optional, combined Figure 1 refer to Figure 2 , the main platform provided by the present invention also includes a data storage layer.
[0056] The data storage layer is used to obtain the current business information of the business system collected by the data acquisition layer, and store the obtained current business information so that the data calculation layer can obtain the current business information from the data storage layer, perform ETL processing on the current business information, convert the calculation results of the current business information into HFILE files, and insert the HFILE files into the write cluster.
[0057] Furthermore, the data computing layer can also obtain the historical business information of the business system from the data storage layer, associate the historical business information of the business system with the current business information of the business system, and use the associated historical business information to perform ETL processing on the current business information to obtain the calculation results of the current business information.
[0058] The write cluster is used to synchronize the HFILE file to the read cluster and the standby platform when an inserted HFILE file is detected.
[0059] Optional, combined Figure 2 See the exam Figure 3 A read cluster is pre-set in the standby platform, and the write cluster can synchronize the HFILE file to the read cluster of the standby platform.
[0060] In an embodiment of the present application, when the write cluster detects the inserted HFIE sub-file, it synchronizes the HFILE sub-file to the read cluster of the primary platform and the read cluster of the backup platform until all HFILE sub-files related to the current business information are synchronized to the read cluster of the primary platform and the read cluster of the backup platform.
[0061] Further, in an embodiment of the present application, in order to reduce the number of HFILE sub-files stored in the read cluster of the primary platform or the read cluster of the backup platform, the related HFILE sub-files in the read cluster can be merged to achieve fast retrieval and avoid long reading delays. The read cluster of the primary platform or the read cluster of the backup platform can merge the HFILE sub-files related to the current business information.
[0062] Furthermore, it should be noted that in order to improve the data localization rate of the primary and backup platforms, the read cluster of the primary platform or the read cluster of the backup platform can perform major_compact on the currently stored data during the off-peak period of business; and in order to avoid the instability of cluster resources caused by the merging of a large number of HFILE sub-files, the read cluster of the primary platform or the read cluster of the backup platform can avoid the traffic overhead caused by a large number of compacts by turning off major_compact.
[0063] It should be noted that when the business system accesses the data of the read cluster, the cache number of batch data query scans can be reasonably set to 5 times the number of single query entries to improve the response efficiency of high-frequency batch data queries and reduce the number of remote procedure call protocols (RPCs).
[0064] The present invention provides a data disaster recovery system. Two Hadoop clusters are set in the data disaster recovery system, and the two Hadoop clusters are divided into a main platform and a backup platform. A data service layer, a data acquisition layer, and a data calculation layer are set in the main platform. The data acquisition layer collects current business information of the business system, and sends the current business information to the data calculation layer, so that after receiving the current business information, the data calculation layer processes the current business information to obtain the current business information calculation result, and after converting the current business information calculation result into a corresponding HFILE file, the HFILE file is inserted into the write cluster, so that when the write cluster detects the inserted HFILE file, the HFILE file is synchronized to the read cluster and the backup platform. The technical solution provided by the present invention divides two Hadoop clusters into a main platform and a standby platform, and sets a write cluster and a read cluster in the main platform. After the collected business information is processed by the main platform, the obtained result is inserted into the write cluster, and finally the inserted result is synchronized to the read cluster and the standby platform through the write cluster. That is to say, the process of processing the business information is realized by the main platform, and the standby platform only needs to store the result synchronized from the main platform, thereby solving the problem in the prior art that the duplication and data storage redundancy of related data collection, data ETL, and data indicator processing due to the setting of two Hadoop clusters, as well as the errors caused by various processing processes, lead to inconsistent comparison of data in two places.
[0065] based on Figure 1 The data disaster recovery system shown in the present invention also discloses a data disaster recovery method. The data disaster recovery system includes: a main platform and a backup platform. The main platform includes a data service layer, a data acquisition layer, and a data computing layer. The data service layer includes a read cluster and a write cluster. Figure 4 FIG. 1 is a flow chart of a data disaster recovery method according to an embodiment of the present invention, and the data disaster recovery method specifically includes the following steps:
[0066] S401: The data acquisition layer collects current business information of the business system and sends the current business information to the data calculation layer; wherein the current business information includes multiple pieces of current business data.
[0067] In the embodiment of the present application, the data acquisition layer collects the current business information of the business system in two specific ways, one is active data collection and the other is passive data collection.
[0068] The specific process of active data collection is as follows: the data acquisition layer uses big data collection technology to batch collect the current business information of the business system, or uses kafka+flink to collect the current business information of the business system in real time.
[0069] It should be noted that the data acquisition layer uses big data collection technology to call the sqoop component to batch collect the current business information of the business system.
[0070] The specific process of passive data collection is: receiving the current business information actively sent by the business system, and loading the received current business information.
[0071] S402: The data computing layer receives the current business information, performs data processing on the current business information, converts the obtained calculation result of the current business information into an HFILE file, and inserts the HFILE file into the write cluster.
[0072] The data computing layer is used to receive the current business information sent by the data acquisition layer, and perform data processing on the received current business information. After obtaining the calculation result of the current business information, the calculation result of the current business information is converted into a layer HFILE file, and the obtained HFILE file is inserted into the write cluster.
[0073] In an embodiment of the present application, in order to improve the efficiency of inserting into the write cluster, after the data computing layer receives the current business information sent by the data acquisition layer and processes the ETL to obtain the calculation results of the current business information, it can use the putlist function to sequentially obtain the calculation results of the first preset number of business data from the current business information calculation results, and convert the data format of the calculation results of the first preset number of business data into the target data format, generate an HFILE sub-file, and insert the HFILE sub-file into a target Region node in the write cluster until the calculation results of all business data are inserted. Among them, the target data format can be in binary format. Among them, ETL is the abbreviation of Extract, transform, load, and can only perform data processing such as extraction, cleaning, conversion, and loading on the current business information.
[0074] Alternatively, after receiving the current business information sent by the data acquisition layer, the data computing layer processes the ETL and obtains the calculation results of the current business information, it can use put in an asynchronous manner to sequentially obtain the calculation results of the first preset number of business data from the current business information calculation results, and convert the data format of the calculation results of the first preset number of business data into the target data format, generate an HFILE sub-file, and insert the HFILE sub-file into a target Region node in the write cluster until the calculation results of all business data are inserted. Among them, the target data format can be a binary format.
[0075] In an embodiment of the present application, the write cluster includes multiple Region nodes. In order to ensure the reasonable use of the Region nodes in the write cluster, a second preset number of target Regoins can be set in advance in the multiple Region nodes of the write cluster, and the data of the set target Region nodes is equal to the data amount of the HFILE sub-file to be generated.
[0076] S403: When the write cluster detects the inserted HFILE file, it synchronizes the HFILE file to the read cluster and the standby platform.
[0077] In an embodiment of the present application, when the write cluster detects the inserted HFIE sub-file, it synchronizes the HFILE sub-file to the read cluster of the primary platform and the read cluster of the backup platform until all HFILE sub-files related to the current business information are synchronized to the read cluster of the primary platform and the read cluster of the backup platform.
[0078] Further, in an embodiment of the present application, in order to reduce the number of HFILE sub-files stored in the read cluster of the primary platform or the read cluster of the backup platform, the related HFILE sub-files in the read cluster can be merged to achieve fast retrieval and avoid long reading delays. The read cluster of the primary platform or the read cluster of the backup platform can merge the HFILE sub-files related to the current business information.
[0079] Furthermore, it should be noted that in order to improve the data localization rate of the primary and backup platforms, the read cluster of the primary platform or the read cluster of the backup platform can perform major_compact on the currently stored data during the off-peak period of business; and in order to avoid the instability of cluster resources caused by the merging of a large number of HFILE sub-files, the read cluster of the primary platform or the read cluster of the backup platform can avoid the traffic overhead caused by a large number of compacts by turning off major_compact.
[0080] It should be noted that when the business system accesses the data of the read cluster, the cache number of batch data query scans can be reasonably set to 5 times the number of single query entries to improve the response efficiency of high-frequency batch data queries and reduce the number of remote procedure call protocols (RPCs).
[0081] The present invention provides a data disaster recovery method. Two sets of Hadoop clusters are set in a data disaster recovery system, and the two Hadoop clusters are divided into a main platform and a backup platform. A data service layer, a data acquisition layer, and a data calculation layer are set in the main platform. The data acquisition layer collects current business information of a business system, and sends the current business information to the data calculation layer, so that after receiving the current business information, the data calculation layer processes the current business information to obtain the current business information calculation result, and after converting the current business information calculation result into a corresponding HFILE file, the HFILE file is inserted into a write cluster, so that when the write cluster detects the inserted HFILE file, the HFILE file is synchronized to the read cluster and the backup platform. The technical solution provided by the present invention divides two Hadoop clusters into a main platform and a standby platform, and sets a write cluster and a read cluster in the main platform. After the collected business information is processed by the main platform, the obtained result is inserted into the write cluster, and finally the inserted result is synchronized to the read cluster and the standby platform through the write cluster. That is to say, the process of processing the business information is realized by the main platform, and the standby platform only needs to store the result synchronized from the main platform, thereby solving the problem in the prior art that the duplication and data storage redundancy of related data collection, data ETL, and data indicator processing due to the setting of two Hadoop clusters, as well as the errors caused by various processing processes, lead to inconsistent comparison of data in two places.
[0082] See also Figure 5 , shows that an embodiment of the present invention provides another data disaster recovery method, the data disaster recovery method applies a data disaster recovery system, the data disaster recovery system includes: a main platform and a backup platform, the main platform includes a data service layer, a data acquisition layer, and a data computing layer, wherein the data service layer includes a read cluster and a write cluster, and the data disaster recovery method specifically includes the following steps:
[0083] S501: The data acquisition layer collects current business information of the business system and sends the current business information to the data storage layer; wherein the current business information includes multiple pieces of current business data.
[0084] In the specific execution process of step S501, the specific execution process and implementation principle of step S501 are the same as those disclosed in the above embodiment of the present invention. Figure 4 The specific execution process and implementation principle of step S401 in the embodiment of the present invention are the same as those disclosed in the embodiment of the present invention. Figure 4 The corresponding parts will not be repeated here.
[0085] S502: The data storage layer obtains current business information and stores the current business information.
[0086] In the specific process of executing step S502, the data storage layer obtains the current business information of the business system collected by the data acquisition layer, and stores the obtained current business information so that the data calculation layer obtains the current business information from the data storage layer, performs ETL processing on the current business information, converts the calculation results of the current business information into an HFILE file, and inserts the HFILE file into the write cluster.
[0087] S503: The data computing layer obtains the current business information from the data storage layer, performs ETL processing on the current business information, converts the calculation results of the current business information into an HFILE file, and inserts the HFILE file into the write cluster.
[0088] The data computing layer obtains the current business information of the business system from the data storage, and processes the obtained current business information. After obtaining the calculation result of the current business information, the obtained calculation result of the current business information is converted into an HFILE file, and the obtained HFILE file is inserted into the write cluster. The specific process of the data computing layer processing the current business information, obtaining the calculation result of the current business information, converting the obtained calculation result of the current business information into an HFILE file, and inserting the obtained HFILE file into the write cluster can be referred to the above-mentioned embodiment of the present invention. Figure 4 The corresponding parts in step S402 in the above process will not be described in detail here.
[0089] Furthermore, the data computing layer can also obtain the historical business information of the business system from the data storage layer, associate the historical business information of the business system with the current business information of the business system, and use the associated historical business information to perform ETL processing on the current business information to obtain the calculation results of the current business information.
[0090] S504: When the write cluster detects the inserted HFILE file, it synchronizes the HFILE file to the read cluster and the standby platform.
[0091] In the specific execution process of step S504, the specific execution process and implementation principle of step S504 are the same as those disclosed in the above embodiment of the present invention. Figure 4 The specific execution process and implementation principle of step S403 in the above embodiment of the present invention are the same as those disclosed in the above embodiment of the present invention. Figure 4 The corresponding parts will not be repeated here.
[0092] In an embodiment of the present application, a data storage layer is set in the main platform so that after the data acquisition layer collects the current business information of the business system, the current business information collected by the data acquisition layer is obtained through the data storage layer and the obtained current business information is stored.
[0093] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0094] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0095] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0096] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data disaster recovery system, characterized in that: include: A main platform and a backup platform, wherein the main platform includes a data service layer, a data acquisition layer, and a data computing layer, wherein the data service layer includes a read cluster and a write cluster, and the system includes: The data acquisition layer is used to collect current business information of the business system and send the current business information to the data calculation layer; wherein the current business information includes multiple current business data; The data computing layer is used to receive the current business information, perform data processing on the current business information, convert the obtained calculation result of the current business information into an HFILE file, and insert the HFILE file into the write cluster; The write cluster is used to synchronize the HFILE file to the read cluster and the standby platform when detecting the inserted HFILE file; The receiving the current business information, performing data processing on the current business information, converting the obtained current business information calculation result into an HFILE file, and inserting the HFILE file into the data calculation layer of the write cluster, is specifically used for: Receive the current business information sent by the data acquisition layer, and perform ETL processing on the current business information to obtain a current business information calculation result, wherein the current business information calculation result includes a calculation result of each current business data; Using the putlist function, sequentially obtain the calculation results of the first preset number of the business data from the current business information calculation results, convert the data format of the calculation results of the preset number of the business data into a target data format, generate an HFILE subfile, and insert the HFILE subfile into a target Region node in the write cluster until all the calculation results of the business data are inserted; The write cluster includes a plurality of the Region nodes, a second preset number of target Region nodes are pre-set in the plurality of the Region nodes, the number of the target Region nodes is equal to the number of the HFILE sub-files, and the HFILE file is composed of the HFILE sub-files.
2. The system according to claim 1, characterized in that The main platform also includes a data storage layer and a data acquisition layer, which are further used for: The current business information is acquired and stored.
3. The system according to claim 1, characterized in that When the inserted HFILE file is detected, synchronizing the HFILE file to the read cluster and the write cluster of the standby platform is specifically used for: When the inserted HFILE sub-file is detected, the HFILE sub-file is synchronized to the read cluster and the standby platform until all the HFILE sub-files related to the current business information are synchronized to the read cluster and the standby platform.
4. The system according to claim 1, characterized in that The system further comprises: The read cluster is used to merge various HFILE sub-files related to the current business information.
5. A data disaster recovery method, characterized in that: Applied to a data disaster recovery system, the data disaster recovery system includes: a main platform and a backup platform, the main platform includes a data service layer, a data acquisition layer, and a data computing layer, wherein the data service layer includes a read cluster and a write cluster, and the method includes: The data acquisition layer collects current business information of the business system and sends the current business information to the data calculation layer; wherein the current business information includes multiple current business data; The data computing layer receives the current business information, performs data processing on the current business information, converts the obtained calculation result of the current business information into an HFILE file, and inserts the HFILE file into the write cluster; When the write cluster detects the inserted HFILE file, it synchronizes the HFILE file to the read cluster and the standby platform; The data computing layer receives the current business information, performs data processing on the current business information, converts the obtained calculation result of the current business information into an HFILE file, and inserts the HFILE file into the write cluster, including: Receive the current business information sent by the data acquisition layer, and perform ETL processing on the current business information to obtain a current business information calculation result, wherein the current business information calculation result includes a calculation result of each current business data; Using the putlist function, sequentially obtain the calculation results of the first preset number of the business data from the current business information calculation results, convert the data format of the calculation results of the preset number of the business data into a target data format, generate an HFILE subfile, and insert the HFILE subfile into a target Region node in the write cluster until all the calculation results of the business data are inserted; The write cluster includes a plurality of the Region nodes, a second preset number of target Region nodes are pre-set in the plurality of the Region nodes, the number of the target Region nodes is equal to the number of the HFILE sub-files, and the HFILE file is composed of the HFILE sub-files.
6. The method according to claim 5, characterized in that The main platform also includes a data storage layer, and the method further includes: The current business information is acquired and stored.
7. The method according to claim 5, characterized in that When the write cluster detects the inserted HFILE file, synchronizing the HFILE file to the read cluster and the standby platform includes: When the inserted HFILE sub-file is detected, the HFILE sub-file is synchronized to the read cluster and the standby platform until all the HFILE sub-files related to the current business information are synchronized to the read cluster and the standby platform.
8. The method according to claim 5, characterized in that When the write cluster detects the inserted HFILE file, after synchronizing the HFILE file to the read cluster, the method further includes: The read cluster merges the HFILE sub-files related to the current business information.
Citation Information
Patent Citations
Service dual-active implementation method and system of big data platform
CN105933446A
An application disaster recovery system and method of a dual-active data center
CN109901949A
Apparatus and method for data replication at an intermediate node
US20060218210A1
