Data reading method, device and system

By allocating data blocks in the recovery server, centrally recovering unreadable data and caching it, the problem of resource waste caused by high concurrent requests in distributed storage systems is solved, and efficient and reliable data reading is achieved.

CN112748851BActive Publication Date: 2024-09-10凌川峰(贵州)信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911044714.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-30
Publication Date
2024-09-10
Estimated Expiration
2039-10-30

AI Technical Summary

Technical Problem

In distributed storage systems, high concurrent download requests lead to the recovery operation of a large number of unreadable data blocks, which wastes CPU, bandwidth, and disk resources.

Method used

By allocating data blocks in the recovery server, the recovery operation of unreadable data is completed centrally, and the data is cached after the recovery is completed to provide the data to cope with concurrent access requests.

Benefits of technology

It effectively solves the problem of frequent data recovery operations wasting resources and achieves efficient and reliable data reading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112748851B
    Figure CN112748851B
Patent Text Reader

Abstract

This article is about a data reading method, device and system. It relates to the field of computer Internet and solves the problem of frequent data recovery operations wasting resources. The method includes: receiving a second data reading request sent by a data requester in the same cluster or other clusters and directed to the recovery server, wherein the second data reading request carries information of target data belonging to the recovery server for recovery; according to the information of the target data, obtaining at least one data group required to recover the target data; according to the data group, recovering the target data and caching it locally; and returning the target data to the data requester. The technical solution provided in this article is applicable to distributed data storage systems and realizes efficient and reliable data reading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer Internet, and in particular to a data reading method, device and system. Background Art

[0002] In a distributed storage system, data may become unreadable due to data corruption, disk damage, or machine downtime. In order not to affect the real-time reading of data, the erasure code (EC) technology can be used to recover the unreadable data block using other data blocks associated with the unreadable data block.

[0003] In the case of high concurrent download requests for the same file, a large number of recovery operations for unreadable data blocks may occur, resulting in a large waste of CPU, bandwidth, disk and other resources. Summary of the invention

[0004] In order to overcome the problems existing in the related art, this article provides a data reading method, device and system.

[0005] According to one aspect of the present invention, a data reading method is provided, comprising:

[0006] Receiving a second data read request directed to the recovery server from a data requester in the same cluster or another cluster, wherein the second data read request carries information of target data belonging to the recovery server for recovery;

[0007] Acquire at least one data group required to restore the target data according to the information of the target data;

[0008] Recover the target data according to the data group and cache it locally;

[0009] The target data is returned to the data requester.

[0010] Preferably, before the step of receiving a second data read request directed to the recovery server from a data requester in the same cluster or another cluster, the method further includes:

[0011] The recovery cluster to which the recovery server belongs receives a first data read request sent by the data requester, wherein the first data read request carries information preset as target data to be recovered by the recovery cluster;

[0012] According to a preset allocation rule, a recovery server for executing the recovery operation is selected, and the second data read request is generated according to the first data read request and sent to the recovery server.

[0013] Preferably, the target data information at least includes:

[0014] The storage location of the data group required to restore the target data, the data group includes at least one associated data file associated with the target data and at least one verification file.

[0015] Preferably, after the step of receiving a second data read request directed to the recovery server from a data requester in the same cluster or another cluster, the method further includes:

[0016] According to the second data read request, searching for data in the local cache;

[0017] When the target data exists in the locally cached data, the target data is sent to the data reader.

[0018] According to another aspect of the present invention, a data reading method is provided, comprising:

[0019] In the case where it is determined that the target data to be read on the source station cannot be read, determining the recovery system to which the target data points according to a preset recovery configuration file;

[0020] A request is sent to the recovery system to obtain the normal target data from the recovery system.

[0021] Preferably, the recovery system includes a recovery server or a recovery cluster composed of at least one recovery server, and the step of determining the recovery system to which the target data points according to a preset recovery configuration file includes:

[0022] According to the hash value of the target data, a recovery server and / or recovery cluster pointed to by the hash value is determined through a consistent hashing algorithm.

[0023] Preferably, the step of sending a request to the recovery system to obtain normal target data from the recovery system includes:

[0024] Sending a first data read request to the recovery cluster, wherein the first data read request carries information about the target data; or,

[0025] A second data reading request is sent to the recovery server, wherein the second data reading request carries information of the target data.

[0026] According to another aspect of the present invention, there is provided a data reading device, comprising:

[0027] A request receiving module, used to receive a second data reading request directed to the recovery server from a data requester in the same cluster or another cluster, wherein the second data reading request carries information of target data belonging to the recovery server for recovery;

[0028] A recovery data acquisition module, used to acquire at least one data group required to restore the target data according to the information of the target data;

[0029] A data recovery module, used for recovering the target data according to the data group and caching it locally;

[0030] A data feedback module is used to return the target data to the data requester.

[0031] Preferably, the device further comprises a local cache search module;

[0032] The local cache search module is used to search for data in the local cache according to the second data read request;

[0033] The data feedback module is further configured to send the target data to the data reader when the local cache search module determines that the target data exists in the local cache data.

[0034] According to another aspect of the present invention, there is provided a data reading device, comprising:

[0035] A recovery resource determination module, used to determine the recovery system to which the target data points according to a preset recovery configuration file when it is determined that the target data to be read on the source station cannot be read;

[0036] The data acquisition module is used to send a request to the recovery system to obtain the normal target data from the recovery system.

[0037] Preferably, the recovery system includes a recovery server or a recovery cluster composed of at least one recovery server, and the recovery resource determination module includes:

[0038] The hash calculation unit is used to determine the recovery server and / or recovery cluster pointed to by the hash value of the target data through a consistent hashing algorithm according to the hash value of the target data.

[0039] According to another aspect of the present invention, there is provided a data reading system, comprising a recovery cluster consisting of a plurality of recovery servers and at least one server cluster, each of the server clusters comprising a plurality of non-recovery servers;

[0040] The non-recovery server is used as a data requester, and when it is determined that the target data to be read on the source station cannot be read, determines the recovery server pointed to by the target data according to the preset recovery configuration file, and sends a second data reading request to the recovery server to obtain the normal target data from the recovery server;

[0041] The recovery server is used to receive a second data reading request sent by the non-recovery server and directed to the recovery server, and the second data reading request carries information of target data belonging to the recovery server for recovery, and obtains at least one data group required to recover the target data based on the information of the target data, and recovers the target data based on the data group, caches it locally, and returns the target data to the data requester.

[0042] Preferably, the non-recovery server is further used as a data requester, and when it is determined that the target data to be read on the source station cannot be read, determines the recovery cluster to which the target data points according to a preset recovery configuration file, and sends a first data read request to the recovery cluster to obtain the normal target data from the recovery cluster;

[0043] The recovery cluster is used to receive a first data read request sent by the non-recovery server, the first data read request carries information preset as target data belonging to the recovery of this recovery cluster, selects a recovery server for performing a recovery operation according to a preset allocation rule, generates the second data read request according to the first data read request, and sends it to the recovery server.

[0044] Preferably, the recovery server is also used to act as a data requester. When it is determined that the target data to be read on the source station cannot be read, the recovery server determines other recovery servers pointed to by the target data according to a preset recovery configuration file, and sends a second data reading request to the other recovery server to obtain the normal target data from the other recovery server.

[0045] Preferably, the recovery cluster further includes at least one non-recovery server.

[0046] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned data reading method are implemented.

[0047] According to another aspect of the present invention, a computer device is provided, including a processor, a memory, and a computer program stored in the memory, wherein the processor implements the steps of the above-mentioned data reading method when executing the computer program.

[0048] This article determines the recovery system pointed to by the target data according to a preset recovery configuration file when the target data cannot be read, and sends a request to the recovery system to obtain the normal target data from the recovery system. On the recovery server side, the recovery server receives a second data read request directed to the recovery server from a data requester in the same cluster or other clusters. The second data read request carries information about the target data to be recovered by the recovery server, and obtains at least one data group required to recover the target data based on the information of the target data. Then, based on the data group, the target data is recovered, cached locally, and returned to the data requester. Concurrent access requests to a file are satisfied by the recovery cluster and / or the recovery server, which solves the problem of wasting resources due to frequent data recovery operations and achieves efficient and reliable data reading.

[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings constituting a part of this document are used to provide a further understanding of this document. The exemplary embodiments and descriptions of this document are used to explain this document and do not constitute an improper limitation on this document. In the accompanying drawings:

[0051] Figure 1 The figure is a flow chart of a data reading method according to an exemplary embodiment.

[0052] Figure 2 The figure is a flow chart of a data reading method according to an exemplary embodiment.

[0053] Figure 3 The figure is a flow chart of a data reading method according to an exemplary embodiment.

[0054] Figure 4 is a block diagram of a data reading device according to an exemplary embodiment.

[0055] Figure 5 is a block diagram of a data reading device according to an exemplary embodiment.

[0056] Figure 6 According to an exemplary embodiment, Figure 5 FIG. 5 is a structural block diagram of the recovery resource determination module 501. FIG.

[0057] Figure 7 It is a block diagram of a computer device (general structure of a server) according to an exemplary embodiment. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of the embodiments of this article clearer, the technical solutions in the embodiments of this article will be clearly and completely described below in conjunction with the drawings in the embodiments of this article. Obviously, the described embodiments are part of the embodiments of this article, not all of the embodiments. Based on the embodiments in this article, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this article. It should be noted that the embodiments in this article and the features in the embodiments can be combined with each other arbitrarily without conflict.

[0059] When there are high concurrent download requests for the same file, although the EC algorithm and other methods can be used to recover unreadable data blocks, files, etc., a large number of recovery operations on unreadable data blocks may occur, resulting in a large waste of CPU, bandwidth, disk and other resources.

[0060] The embodiments of the present disclosure provide a data reading method, device and system, which allocate different data to a designated recovery server, and the unreadable data recovery work is completed by one or more recovery servers in a centralized manner, and cached after recovery to continuously provide the data. Concurrent access requests to a file are met by one recovery server, which solves the problem of frequent data recovery operations wasting resources and realizes efficient and reliable data reading.

[0061] An exemplary embodiment of the present disclosure provides a data reading method, which uses the method to complete the process of recovering and reading the target data that cannot be read. Figure 1 As shown, including:

[0062] Step 101: When it is determined that the target data to be read on the source station cannot be read, a recovery system to which the target data points is determined according to a preset recovery configuration file.

[0063] In this step, when the target data cannot be read due to data corruption, disk damage or machine downtime, the process of recovering the target data is triggered, and the recovery server corresponding to the target data is selected to perform the recovery operation.

[0064] The recovery system includes a recovery server or a recovery cluster composed of at least one recovery server.

[0065] In the disclosed embodiments, the correspondence between the target data and the recovery server and / or recovery cluster can be configured in advance as needed, and rules can be formulated to correspond the target data to the recovery server or recovery cluster. For example, the SHA1 value of the target data is used as the key value for the hash calculation, and the target data is corresponded to a recovery cluster or recovery server through a hash operation.

[0066] Specifically, the recovery server pointed to by the hash value of the target data can be determined by a consistent hashing algorithm. The SHA1 value of the target data can be used as the key value of the hash calculation. Generally, when the file is stored, the SHA1 of the file is saved to the file storage location at the same time, and the SHA1 of the file can be obtained when the operation of reading the file is initiated.

[0067] A record file may also be pre-configured to record the correspondence between each file and the corresponding recovery server and / or recovery cluster. The recovery server and / or recovery cluster to which the target data points may be determined by querying the record file.

[0068] Step 102: Send a request to the recovery system to obtain the normal target data from the recovery system.

[0069] In the embodiments of the present disclosure, multiple recovery servers may be distributed in different clusters or may form a recovery cluster. In addition to the function of recovering data, each recovery server may also have a common business function, namely, caching and providing data to the requesting party.

[0070] In the embodiment of the present disclosure, the data requester includes at least one or more of the following objects:

[0071] Servers in the same cluster and servers in other clusters.

[0072] The same cluster servers refer to servers in the same cluster as the recovery server, and the servers in other clusters refer to servers in different clusters from the recovery server.

[0073] In this step, the data requester may send a first data read request to the recovery cluster. The first data read request carries information about the target data. The first data read request directs a request to read the target data to the recovery cluster.

[0074] The data requester may also send a second data reading request to the recovery server, and the second data reading request carries the information of the target data.

[0075] The request sent by the data request direction to the recovery server may be a data read request to obtain normal target data. The data read request carries information of the target data to be read, for example, the storage location of the data block required to recover the target data.

[0076] Step 103: The recovery cluster to which the recovery server belongs receives a first data read request sent by the data requester.

[0077] When the data request direction sends a first data read request to the recovery cluster, the recovery cluster first receives the first data read request, and the first data read request carries information preset as target data belonging to the recovery of the recovery cluster.

[0078] Step 104: According to a preset allocation rule, a recovery server for executing the recovery operation is selected, and the second data read request is generated according to the first data read request and sent to the recovery server.

[0079] The first data read request directs the request to read the target data to the recovery cluster. In the recovery cluster, the task of recovering the target data is allocated to a recovery server in the recovery cluster according to preset allocation rules, such as load balancing rules or further calculations; or the information of the recovery server is obtained from the first data read request through allocation rules, that is, the first data read request may also carry information pointing to the recovery cluster and a recovery server in the recovery cluster. The first data read request first reaches the cluster controller and other nodes, and then determines the recovery server according to the first data read request, generates a second data read request, and forwards it to the allocated recovery server.

[0080] Step 103 and step 104 are optional steps, and can be omitted when the data requester directly sends a second data reading request to the recovery server.

[0081] Step 105: The recovery server receives a second data read request directed to the recovery server and sent by a data requester in the same cluster or another cluster.

[0082] In this step, the second data read request carries information about target data to be recovered by the recovery server. The target data information is specifically storage location information of at least one data group required to recover the target data. The data group includes other data files associated with the target data to be recovered, and multiple verification code files obtained by an algorithm between the data files to be recovered and other data files.

[0083] The data requester can be a server in the same cluster as the recovery server or a server in a different cluster. The data requester can be a non-recovery server or a recovery server, that is, the recovery server can perform data services as a common server in addition to the task of restoring data.

[0084] Step 106: The recovery server obtains at least one data group required to recover the target data according to the information of the target data.

[0085] The information of the target data includes the storage location of the data group required to restore the target data, and the data group includes at least one associated data file associated with the target data and at least one checksum file. The target data and the associated data file together constitute the original data. When EC storage is used to store the original data, the original data will be divided into multiple data files including the target data. There is an association relationship between these data files. After the EC algorithm is calculated based on these data files, multiple checksum files can be obtained.

[0086] After receiving the request sent by the data requester, the recovery server starts to recover the requested target data and obtains each data group.

[0087] Step 107: The recovery server recovers the target data according to the data group and caches it locally.

[0088] In this step, the recovery server performs a recovery operation based on the EC algorithm and the acquired data group to obtain the target data, and caches the target data locally on the recovery server.

[0089] Step 108: Return the target data to the data requester.

[0090] In this step, after the target data is recovered, the target data is returned to the data requester.

[0091] An embodiment of the present disclosure also provides a data reading method. When the recovery server has recovered the target data and subsequently receives a request for the same target data, the recovery server returns the locally cached target data to the data requester. The specific process is as follows: Figure 2 As shown, including:

[0092] The implementation principles of steps 201 to 205 are substantially the same as those of steps 101 to 105, and will not be repeated here.

[0093] Step 206: The recovery server searches for locally cached data according to the second data read request.

[0094] In this step, the recovery server searches for locally cached data based on the target data requested by the data read request. Because before receiving this request, it is very likely that other servers have requested the same target data from the recovery server, and the recovery server will cache the target data locally after completing the recovery of the target data. When a subsequent data read request for the same target data is received, it only needs to directly read the cached target data without repeatedly performing the recovery operation. In this way, when multiple read requests are continuously initiated for the same unreadable target data, the recovery server only needs to perform a recovery operation once, which greatly saves system resources.

[0095] Step 207: When the target data exists in the locally cached data, the recovery server sends the target data to the data reader.

[0096] If the target data already exists in the local cache of the recovery server, the recovery server will directly read the target data and return it to the data requester. After the recovery is completed, the same target data is cached locally on the recovery server. When the target data is subsequently accessed, the resource of the target data on the source station is still unreadable, so the access request will still be directed to the same recovery server. At this time, the target data can be directly read from the cache without having to restore the calculation again, saving computing resources.

[0097] An exemplary embodiment of the present disclosure also provides a data reading system, whose system architecture is as follows: Figure 3 As shown, it includes a recovery cluster composed of multiple recovery servers and at least one server cluster, each of which includes multiple non-recovery servers. The non-recovery server refers to a server that is not set as a recovery server and has the general business functions of the server in the cluster.

[0098] The non-recovery server is used as a data requester, and when it is determined that the target data to be read on the source station cannot be read, determines the recovery server pointed to by the target data according to the preset recovery configuration file, and sends a second data reading request to the recovery server to obtain the normal target data from the recovery server;

[0099] The recovery server is used to receive a second data reading request sent by the non-recovery server and directed to the recovery server, and the second data reading request carries information of target data belonging to the recovery server for recovery, and obtains at least one data group required to recover the target data based on the information of the target data, and recovers the target data based on the data group, caches it locally, and returns the target data to the data requester.

[0100] Preferably, the non-recovery server is further used as a data requester, and when it is determined that the target data to be read on the source station cannot be read, determines the recovery cluster to which the target data points according to a preset recovery configuration file, and sends a first data read request to the recovery cluster to obtain the normal target data from the recovery cluster;

[0101] The recovery cluster is used to receive the first data read request sent by the non-recovery server, the first data read request carries information preset as target data to be recovered by the recovery cluster, selects the recovery server that performs the recovery operation according to the preset allocation rule, generates the second data read request according to the first data read request, and sends it to the recovery server. Preferably, the recovery server is also used as a data requester. When it is determined that the target data to be read on the source station cannot be read, it determines other recovery servers pointed to by the target data according to the preset recovery configuration file, and sends the second data read request to the other recovery servers to obtain the normal target data from the other recovery servers. That is, in addition to the function of recovering unreadable target data, the recovery server may also have the function of an ordinary business server. At the same time, when the recovery server is reading data, if the target data to be read cannot be read, it may also make a request to other recovery servers pointed to by the target data to obtain the target data to be read.

[0102] Preferably, the recovery cluster also includes at least one non-recovery server. That is, the recovery cluster also includes data storage and transmission functions, and the proportion of recovery servers in the recovery cluster can be adjusted according to actual needs.

[0103] An exemplary embodiment of the present disclosure also provides a data reading system, wherein the recovery cluster includes three recovery servers, namely, machine A, machine B, and machine C. The process of completing data reading in the system is as follows: Figure 3 As shown, including:

[0104] When server X in another cluster accesses the target data hello.txt file on the source station S, it finds that the target data is damaged and cannot be read directly. At this time, server X obtains the SHA1 of the hello.txt file, performs a consistent hash operation, and obtains the location of machine A.

[0105] When there are many files that need to be restored, the consistent hash algorithm can evenly distribute the task of restoring data to all recovery servers.

[0106] After obtaining the location of machine A, server X sends a data read request to machine A, which carries the storage location of each data block required to restore the hello.txt file. After receiving the data read request, machine A pulls other data blocks required for EC recovery according to the storage location of each data, restores the hello.txt file through the EC algorithm, and caches the restored normal hello.txt file locally on machine A.

[0107] After that, when server Y tries to read the hello.txt file on the source station S again, it still cannot read it normally and will locate machine A. Since the normal hello.txt file has been cached on machine A, machine A directly returns the cached hello.txt file to server Y.

[0108] An exemplary embodiment of the present disclosure further provides a data reading device, the structure of which is as follows: Figure 4 As shown, including:

[0109] The request receiving module 401 is used to receive a second data reading request directed to the recovery server from a data requester in the same cluster or another cluster, wherein the second data reading request carries information of target data belonging to the recovery server for recovery;

[0110] A recovery data acquisition module 402, used to acquire at least one data group required to restore the target data according to the information of the target data;

[0111] A data recovery module 403 is used to recover the target data according to the data group and cache it locally;

[0112] The data feedback module 404 is used to return the target data to the data requester.

[0113] Preferably, the device further comprises a local cache search module 405;

[0114] The local cache search module 405 is used to search for data in the local cache according to the second data read request;

[0115] The data feedback module 404 is further configured to send the target data to the data reader when the local cache search module 405 determines that the target data exists in the local cache data.

[0116] like Figure 4 The data reading device shown can be integrated into a server in a cluster, and the server can realize corresponding functions. Preferably, it can be integrated into a recovery server in a recovery cluster, and the recovery server can realize corresponding functions to perform data recovery in a centralized manner.

[0117] An embodiment of the present disclosure also provides a data reading device, the structure of which is as follows: Figure 5 As shown, including:

[0118] A recovery resource determination module 501 is used to determine the recovery system to which the target data points according to a preset recovery configuration file when it is determined that the target data to be read on the source station cannot be read;

[0119] The data acquisition module 502 is used to send a request to the recovery system to obtain the normal target data from the recovery system.

[0120] Preferably, the recovery system includes a recovery server or a recovery cluster composed of at least one recovery server, and the structure of the recovery resource determination module 501 is as follows: Figure 6 As shown, including:

[0121] The hash calculation unit 5011 is used to determine the recovery server and / or recovery cluster pointed to by the hash value of the target data through a consistent hashing algorithm.

[0122] Preferably, the recovery resource determination module 501 further includes:

[0123] The record query unit 5012 is used to query a preset record file to determine the recovery server pointed to by the target data. The record file records the correspondence between each file and the corresponding recovery server and / or recovery cluster.

[0124] like Figure 5 and Figure 6 The data reading device can be integrated into a server in the cluster, and the server can realize the corresponding functions.

[0125] An exemplary embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the steps of the data reading method provided by the embodiment of the present disclosure are implemented.

[0126] An exemplary embodiment of the present disclosure further provides a computer device for data reading, including a processor, a memory, and a computer program stored in the memory, wherein the processor implements the steps of the data reading method provided by the embodiment of the present disclosure when executing the computer program.

[0127] Figure 7 is a block diagram of a computer device 700 for data reading according to an exemplary embodiment. For example, the computer device 700 can be provided as a server. Figure 7The computer device 700 includes a processor 701, and the number of processors can be set to one or more as needed. The computer device 700 also includes a memory 702, which is used to store instructions that can be executed by the processor 701, such as application programs. The number of memories can be set to one or more as needed. The application programs stored therein can be one or more. The processor 701 is configured to execute instructions to perform the above method.

[0128] The embodiments of the present disclosure provide a data reading method, device and system. When the target data cannot be read, the recovery system pointed to by the target data is determined according to a preset recovery configuration file, and a request is sent to the recovery system to obtain the normal target data from the recovery system. On the recovery server side, the recovery server receives a second data reading request sent by a data requester in the same cluster or other clusters and directed to the recovery server. The second data reading request carries information about the target data to be recovered by the recovery server, and obtains at least one data group required to recover the target data based on the information of the target data. Then, based on the data group, the target data is recovered, cached locally, and returned to the data requester. Concurrent access requests to a file are satisfied by the recovery cluster and / or the recovery server, which solves the problem of wasting resources due to frequent data recovery operations and achieves efficient and reliable data reading.

[0129] The same data file is restored to a recovery server through a consistent hash algorithm. The recovery server recovers the target data through the EC algorithm and caches it to the local disk. When the source file of the target data is accessed again, the access will also be directed to the recovery server. At this time, the target data can be directly obtained from the disk cache of the recovery server. There is no need to perform data recovery operations each time. Multiple accesses to the same unreadable target data only require one EC algorithm data recovery operation, saving resource consumption caused by repeated data recovery.

[0130] It should be understood by those skilled in the art that the embodiments of this article can be provided as methods, devices (equipment), or computer program products. Therefore, this article can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this article can adopt the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data), including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media generally contain computer-readable instructions, data structures, program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0131] This document is described with reference to flowcharts and / or block diagrams of methods, apparatuses (devices) and computer program products according to the embodiments of this document. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0134] In this article, the term "comprises", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that an article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the article or device comprising the elements.

[0135] Although the preferred embodiments of this invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of this invention.

[0136] Obviously, those skilled in the art can make various changes and modifications to this article without departing from the spirit and scope of this article. Thus, if these modifications and variations of this article fall within the scope of the claims and their equivalents, then the intention of this article also includes these modifications and variations.

Claims

1. A data reading method, It is characterized in that include: Receiving a second data read request directed to the recovery server from a data requester in the same cluster or another cluster, wherein the second data read request carries information of target data belonging to the recovery server for recovery; Acquire at least one data group required to restore the target data according to the information of the target data; Recover the target data according to the data group and cache it locally; Returning the target data to the data requester; After the step of receiving a second data read request directed to the recovery server from a data requester in the same cluster or another cluster, the method further includes: According to the second data read request, searching for data in the local cache; In the case that the target data exists in the locally cached data, the target data is sent to the data reader, so that when a data read request for the same target data is subsequently received, the cached target data can be directly read.

2. The data reading method according to claim 1, It is characterized in that Before the step of receiving a second data read request directed to the recovery server from a data requester in the same cluster or another cluster, the step further includes: The recovery cluster to which the recovery server belongs receives a first data read request sent by the data requester, wherein the first data read request carries information preset as target data to be recovered by the recovery cluster; According to a preset allocation rule, a recovery server for executing the recovery operation is selected, and the second data read request is generated according to the first data read request and sent to the recovery server.

3. The data reading method according to claim 1, It is characterized in that The target data information at least includes: The storage location of the data group required to restore the target data, the data group includes at least one associated data file associated with the target data and at least one verification file.

4. A data reading method, It is characterized in that include: In the case where it is determined that the target data to be read on the source station cannot be read, determining the recovery system to which the target data points according to a preset recovery configuration file; A request is sent to the recovery system to obtain normal target data from the recovery system, wherein the recovery system includes a multiplexing server or a recovery cluster composed of at least one recovery server, and the recovery server caches the target data locally after completing the recovery of the target data, so that when a data read request for the same target data is received subsequently, the cached target data can be directly read.

5. The data reading method according to claim 4, It is characterized in that The recovery system includes a recovery server or a recovery cluster composed of at least one recovery server, and the step of determining the recovery system to which the target data points according to a preset recovery configuration file includes: According to the hash value of the target data, a recovery server and / or recovery cluster pointed to by the hash value is determined through a consistent hashing algorithm.

6. The data reading method according to claim 5, It is characterized in that The step of sending a request to the recovery system to obtain normal target data from the recovery system includes: Sending a first data read request to the recovery cluster, wherein the first data read request carries information about the target data; or, A second data reading request is sent to the recovery server, wherein the second data reading request carries information of the target data.

7. A data reading device, It is characterized in that include: A request receiving module, used to receive a second data reading request directed to the recovery server from a data requester in the same cluster or another cluster, wherein the second data reading request carries information of target data belonging to the recovery server for recovery; A recovery data acquisition module, used to acquire at least one data group required to restore the target data according to the information of the target data; A data recovery module, used for recovering the target data according to the data group and caching it locally; A data feedback module, used for returning the target data to the data requester; The device also includes a local cache lookup module; The local cache search module is used to search for data in the local cache according to the second data read request; The data feedback module is also used to send the target data to the data reader when the local cache search module determines that the target data exists in the local cache data, so that when a data read request for the same target data is received subsequently, the cached target data can be directly read.

8. A data reading device, It is characterized in that include: A recovery resource determination module, used to determine the recovery system to which the target data points according to a preset recovery configuration file when it is determined that the target data to be read on the source station cannot be read; A data acquisition module is used to send a request to the recovery system to obtain the normal target data from the recovery system, wherein the recovery system includes a reused server or a recovery cluster composed of at least one recovery server, and the recovery server will cache the target data locally after completing the recovery of the target data, so that when a data read request for the same target data is received subsequently, the cached target data can be directly read.

9. The data reading device according to claim 8, It is characterized in that The recovery system includes a recovery server or a recovery cluster composed of at least one recovery server, and the recovery resource determination module includes: The hash calculation unit is used to determine the recovery server and / or recovery cluster pointed to by the hash value of the target data through a consistent hashing algorithm according to the hash value of the target data.

10. A data reading system, It is characterized in that comprising a recovery cluster consisting of a plurality of recovery servers and at least one server cluster, each of the server clusters comprising a plurality of non-recovery servers; The non-recovery server is used as a data requester, and when it is determined that the target data to be read on the source station cannot be read, determines the recovery server pointed to by the target data according to the preset recovery configuration file, and sends a second data reading request to the recovery server to obtain the normal target data from the recovery server; The recovery server is configured to receive a second data read request sent by the non-recovery server and directed to the recovery server, wherein the second data read request carries information of target data belonging to the recovery server for recovery, obtains at least one data group required for recovering the target data according to the information of the target data, recovers the target data according to the data group, caches the target data locally, and returns the target data to the data requester; Also used for searching the locally cached data according to the second data read request; In the case that the target data exists in the locally cached data, the target data is sent to the data reader, so that when a data read request for the same target data is subsequently received, the cached target data can be directly read.

11. The data reading system according to claim 10, It is characterized in that The non-recovery server is further used as a data requester, and when it is determined that the target data to be read on the source station cannot be read, determines the recovery cluster to which the target data points according to a preset recovery configuration file, and sends a first data read request to the recovery cluster to obtain the normal target data from the recovery cluster; The recovery cluster is used to receive a first data read request sent by the non-recovery server, the first data read request carries information preset as target data belonging to the recovery of this recovery cluster, selects a recovery server for performing a recovery operation according to a preset allocation rule, generates the second data read request according to the first data read request, and sends it to the recovery server.

12. The data reading system according to claim 10, It is characterized in that The recovery server is also used to act as a data requester. When it is determined that the target data to be read on the source station cannot be read, the recovery server determines other recovery servers pointed to by the target data according to a preset recovery configuration file, and sends a second data reading request to the other recovery server to obtain the normal target data from the other recovery server.

13. The data reading system according to claim 10, It is characterized in that The recovery cluster further includes at least one non-recovery server.

14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the steps of the method according to any one of claims 1 to 3 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed, the steps of the method according to any one of claims 4 to 6 are implemented.

16. A computer device comprising a processor, a memory and a computer program stored on the memory, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

17. A computer device comprising a processor, a memory and a computer program stored on the memory, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 4 to 6 are implemented.