Method and system for prioritizing storage of critical data objects
By using the Euclidean distance calculator and priority weight evaluator in the backup storage system to reorder the data object queue, the problem of the lack of priority mechanism in data recovery is solved, and the efficiency and reliability of data recovery are achieved.
Patent Information
- Application Number
- CN202010352890.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-04-29
- Filing Date
- 2020-04-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-04-28
AI Technical Summary
Existing data recovery solutions lack mechanisms to prioritize data recovery during recovery operations, resulting in possible loss of critical data when a disaster occurs.
By using the Euclidean distance calculator and priority weight evaluator in the backup storage system, the Euclidean distance is calculated based on the priority weight and criticality factor of the data object, and the data object queue is reordered to ensure the closest Critical data objects are restored first.
It effectively avoids the loss of critical data during the recovery operation and ensures the priority and efficiency of data recovery.
Smart Images

Figure CN111858152B_ABST
Abstract
Description
Background Art
[0001] Existing data recovery solutions lack a mechanism to prioritize data recovery during a recovery operation. That is, if a disaster occurs during or before a recovery operation is completed, critical data may be lost while being queued for recovery in a backup storage array. BRIEF DESCRIPTION OF THE DRAWINGS
[0002] Figure 1 A system according to one or more embodiments of the present invention is shown.
[0003] Figure 2A A backup storage system according to one or more embodiments of the present invention is shown.
[0004] Figure 2B A backup storage system according to one or more embodiments of the present invention is shown.
[0005] Figure 3 A target host according to one or more embodiments of the present invention is shown.
[0006] Figure 4 A flow chart is shown describing a method for prioritizing critical data packet or data block recovery during a restore operation in accordance with one or more embodiments of the present invention.
[0007] Figure 5 A flow chart describing a method for prioritizing recovery of critical data files during a restore operation in accordance with one or more embodiments of the present invention is shown.
[0008] Figure 6 A computing system in accordance with one or more embodiments of the invention is shown. DETAILED DESCRIPTION
[0009] Specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings. In the following detailed description of embodiments of the present invention, many specific details are set forth in order to provide a more thorough understanding of the present invention. However, it will be apparent to those of ordinary skill in the art that the present invention can be practiced without these specific details. In other cases, well-known features are no longer described in detail to avoid unnecessarily complicating the description.
[0010] exist Figure 1-6In the following description, in various embodiments of the present invention, any component described with respect to one figure may be equivalent to one or more similarly named components described with respect to any other figure. For the sake of brevity, the description of these components will not be repeated with respect to each figure. Therefore, each embodiment of the components of each figure is incorporated by reference and is assumed to be optionally present in each other figure with one or more similarly named components. In addition, according to various embodiments of the present invention, any description of the components of a figure should be interpreted as an optional embodiment, which can be implemented in addition to, together with, or in place of the embodiments described with respect to the corresponding similarly named components in any other figure.
[0011] Throughout the application, ordinal numbers (e.g., first, second, third, etc.) may be used as adjectives for elements (i.e., any noun in the application). Unless explicitly disclosed, such as by using the terms "before," "after," "single," and other such terms, the use of ordinal numbers does not necessarily imply or create any particular ordering of elements, nor does it limit any element to only a single element. In fact, the use of ordinal numbers is to distinguish elements. By way of example, a first element is different from a second element, and a first element may encompass more than one element and be subsequent to (or precede) a second element in the ordering of elements.
[0012] In general, embodiments of the present invention relate to methods and systems for prioritizing the recovery of critical data objects during a recovery operation. Specifically, one or more embodiments of the present invention require reordering data objects according to a closest-to-critical sequential order, waiting to be read from backup storage and thus queued in one or more data object queues. The closest-to-critical sequential order can be derived by a weighted Euclidean distance calculated between adjacent pairs of data objects queued in any given data object queue. In addition, the calculated weighted Euclidean distance is combined with a data criticality factor associated with the adjacent pairs of data objects. By reordering data objects in a closest-to-critical sequential order, critical data objects can be recovered first, thereby avoiding possible loss of critical data in the event of a disaster during a recovery operation.
[0013] Figure 1 A system according to one or more embodiments of the present invention is shown. The system (100) may include a backup storage system (BSS) (102) operably connected to one or more target hosts (104A-104N). Each of these components is described below.
[0014] In one embodiment of the present invention, the BSS (102) may be directly or indirectly connected to one or more target hosts (104A-104N) via a network (not shown) (e.g., a local area network (LAN), a wide area network (WAN) such as the Internet, a mobile network, etc.). The network may be implemented using any combination of wired and / or wireless connections. In embodiments where the BSS (102) and one or more target hosts (104A-104N) are indirectly connected, there may be other network components or systems (e.g., switches, routers, gateways, etc.) that may facilitate communication. Additionally, the BSS (102) and one or more target hosts (104A-104N) may communicate with each other using any combination of wired and / or wireless communication protocols.
[0015] In one embodiment of the present invention, BSS (102) may represent a data backup, archiving and / or disaster recovery storage system. One or more servers (not shown) may be used to implement BSS (102). Each server may be a physical server (i.e., it may be located in a data center) or a virtual server (i.e., it may be located in a cloud computing environment). In addition, in one embodiment of the present invention, the BSS (102) may be used in conjunction with Figure 6 The BSS (102) may be implemented using one or more computing systems similar to the exemplary computing system shown in FIG. Figure 2A and 2B The BSS (102) is further described in detail.
[0016] In one embodiment of the present invention, each target host (104A-104N) may represent any physical computing system on which one or more user programs (not shown) may be executed. For example, these user programs may implement large-scale and complex data processing; and may serve multiple users concurrently. In addition, each target host (104A-104N) may provide and manage the allocation of various computing resources (e.g., computer processors, memory, permanent and non-permanent storage devices, network bandwidth, etc.) to execute various processes (or tasks) that may be instantiated thereon. A person of ordinary skill will appreciate that each target host (104A-104N) may perform other functions without departing from the scope of the present invention. Examples of target hosts (104A-104N) may include, but are not limited to, desktop computers, tablet computers, servers, mainframes, smart phones, or computers with Figure 6 The target hosts (104A-104N) are referred to below as Figure 3 Describe in detail further.
[0017] Although Figure 1 A configuration of components is shown, but other system configurations may be used without departing from the scope of the invention.
[0018] Figure 2A A backup storage system (BSS) according to one or more embodiments of the present invention is shown. The BSS (200) described herein may be operatively coupled to the following reference Figure 3 The target host (not shown) is connected to the described. In addition, the BSS (200) may represent a data backup, archiving and / or disaster recovery storage system, which includes a backup storage array (202), a recovery agent (206), a priority weight evaluator (208), a Euclidean distance calculator (212), an object sorter (214) and a send buffer (216). Each of these components is described below.
[0019] In one embodiment of the present invention, the backup storage array (202) may refer to a collection of one or more physical storage devices (not shown) on which various forms of information may be consolidated - for example, backup user program data (204). Each physical storage device may include a non-transitory computer-readable storage medium on which information may be stored in whole or in part and temporarily or permanently. By way of example, each physical storage device may represent a hard disk drive (HDD), a solid-state drive (SSD), a tape storage system, or a network attached storage (NAS). In addition, in one embodiment of the present invention, the backup storage array (202) may be implemented using a permanent (i.e., non-volatile) storage device. Examples of permanent storage devices may include, but are not limited to, optical storage devices, magnetic storage devices, NAND flash memory, NOR flash memory, magnetic random access memory (M-RAM), spin torque magnetic RAM (ST-MRAM), phase change memory (PCM), or any other storage device defined as a non-volatile storage class memory (SCM).
[0020] In one embodiment of the present invention, the backup user program data (204) that can be merged on the backup storage array (202) can refer to the backup user program data (204) that can be merged on the target host (see, for example, Figure 3 ) is executed on the computer. Backing up the user program data (204) may require, for example, application data, user data, configuration data, metadata, or any other form of data with which one or more user programs may interact.
[0021] In one embodiment of the present invention, the recovery agent (206) may refer to a computer program that can be executed on the underlying hardware of the BSS (200). Specifically, the recovery agent (206) may refer to a computer program that is designed and configured to implement data recovery operations after a disaster at a target host. Therefore, the recovery agent (206) may include the following functions: based on the configuration of the recovery agent (206), identify and retrieve user program data (204) from the backup storage array (202); encapsulate the retrieved user program data (204) across one or more data objects (e.g., one or more data packets or data blocks) (218); and queue one or more data objects (218) in a buffer (not shown). A person of ordinary skill will understand that the recovery agent (206) may perform other functions without departing from the scope of the present invention.
[0022] In one embodiment of the present invention, the priority weight evaluator (208) may refer to a computer program that can be executed on the underlying hardware of the BSS (200). Specifically, the priority weight evaluator (208) may refer to a computer program designed and configured to identify the priority weight of any data object (e.g., data packet or data block) (218) queued by the recovery agent (206). Therefore, the priority weight evaluator (208) may include the following functions: inspecting the header information attached to any given data object (218) to extract the data criticality factor embedded therein; identifying the priority weight of the given data object (218) based on the extracted data criticality factor; and providing the identified priority weight of the given data object (218) to the Euclidean distance calculator (212). The data criticality factor may refer to a numerical or categorical classification that assigns a routing operation priority to a given user program data (204) data type. By way of example, the data type of the user program data (204) may include, but is not limited to, a database record data type, a text data type, an image data type, a virtual machine configuration data type, and the like. In addition, data criticality factors may be defined from any system or user defined priority levels. Examples of data criticality factors may include, but are not limited to, any natural number (e.g., 1, 2, 3, ...), any category label (e.g., "low", "medium", "high", ...), and any other scalable classification scheme. In addition, the priority weight of any given data object (218) may refer to a numerical value (e.g., an integer, a floating point number, a fraction, etc.) assigned to the given data object (218), which reflects the relative importance of the given data object (218) based on the data criticality factor associated with the given data object (218). Those of ordinary skill will appreciate that the priority weight evaluator (208) may perform other functions without departing from the scope of the present invention.
[0023] In one embodiment of the present invention, the dependent object evaluator (210) may refer to a computer program executable on the underlying hardware of the BSS (200). Specifically, the dependent object evaluator (210) may refer to a computer program designed and configured to generate stream dependency information (SDI), if present. SDI may refer to information that relates two or more data objects (218) to each other. These related data objects (218) may be related to a unique data object stream, which can be identified by examining at least a portion of the header information attached to the data object (218). Thus, the dependent object evaluator (210) may include the following functions: checking header information (e.g., sequence number information) attached to a data object (218) queued by the recovery agent (206) to determine whether one or more unique data object streams are in the queued data object (218); if at least one unique data object stream is identified, generating an SDI that can identify two or more data objects (218) belonging to each identified unique data object stream; and providing the generated SDI to the Euclidean distance calculator (212). A person of ordinary skill will appreciate that the dependent object evaluator (210) may perform other functions without departing from the scope of the present invention.
[0024] In one embodiment of the present invention, the Euclidean distance calculator (212) may refer to a computer program that can be executed on the underlying hardware of the BSS (200). Specifically, the Euclidean distance calculator (212) may refer to a computer program designed and configured to determine the weighted-based Euclidean distance between any pair of adjacent data objects (218) queued by the recovery agent (206). Generally, the Euclidean distance refers to the straight-line distance between two data points in a Euclidean space (e.g., an n-dimensional Cartesian coordinate space). Therefore, the aforementioned weighted-based Euclidean distance may refer to the straight-line distance between a given pair of data points, where the relative significance of each data point of the given pair of data points is emphasized and taken into account by the integration of their respective priority weights (described above), as expressed by the following mathematical formula:
[0025]
[0026] Where E dw For two data points P = {p1, p2, p3, ..., p n} and Q={q1,q2,q3,…,q n} based on the modified weighted Euclidean distance between p is the priority weight associated with data point P; where w q is the priority weight associated with the data point Q; and where n is the dimension in the Euclidean space where the data point is located.
[0027] Thus, in one embodiment of the present invention, the Euclidean distance calculator (212) may include the following functionality: receiving a priority weight associated with any data object (212) queued by the recovery agent (206) from the priority weight evaluator (208); receiving stream dependency information (SDI) (if any) from the dependent object evaluator (210) (described above); mapping pairs of queued adjacent data objects (218) onto an n-dimensional Euclidean space; calculating a modified weight-based Euclidean distance between pairs of queued adjacent data objects (218) mapped onto the n-dimensional Euclidean space, taking into account the received priority weights and SDI (if any); and providing the calculated modified weight-based Euclidean distance to the object sequencer (214). When considering an SDI in the calculation of a modified weighted Euclidean distance, the Euclidean distance calculator (212) may only consider the smallest modified weighted Euclidean distance of all modified weighted Euclidean distances that relates to any of the identified dependent data objects (218) associated with the SDI. A person of ordinary skill will appreciate that the Euclidean distance calculator (212) may perform other functions without departing from the scope of the present invention.
[0028] In one embodiment of the present invention, the object sequencer (214) may refer to a computer program executable on the underlying hardware of the BSS (200). Specifically, the object sequencer (214) may refer to a computer program designed and configured to sequence data objects (218) queued by the recovery agent (206) so that the closest and most critical data objects (218) in each object queue (220) are placed at the front of the object queue (220). Therefore, the object sequencer (214) may include the following functions: receiving a modified weight-based Euclidean distance between pairs of queued adjacent data objects (218) from the Euclidean distance calculator (212); rearranging the queued data objects (218) in each object queue (220) based on at least the received modified weight-based Euclidean distance to implement a closest-to-critical queuing scheme; and providing the rearranged queued data objects (218) to the send buffer (216). A queuing scheme may refer to an order in which data objects (218) in a given object queue (220) may be arranged. The aforementioned closest-to-critical-based queuing scheme subsequently arranges the data objects (218) in a given object queue (220) such that, in sorted order, the closest and most critical data objects (218) occupy the frontmost sequence position (222), while alternatively the furthest and least critical data objects (218) occupy the backmost sequence position (222). One of ordinary skill will appreciate that the packet sequencer (214) may perform other functions without departing from the scope of the present invention.
[0029] In one embodiment of the present invention, a send buffer (216) may refer to a physical memory storage device (e.g., random access memory (RAM)) where data objects (218) may be temporarily queued while waiting to be sent to a target host. Additionally, the send buffer (216) may include functionality to send one or more data object streams in a concurrent (or parallel) manner. A data object stream may refer to a collection of data objects (218) that belong to the same or common restore job. In turn, a restore job may refer to a restore operation defined by a set of information, such as the data being restored (e.g., user program data (204)), the target location of the restore (e.g., the target host), and the time at which the restore is being performed. Additional or alternative information may define a restore job without departing from the scope of the present invention.
[0030] Figure 2B A backup storage system (BSS) according to one or more embodiments of the present invention is shown. The BSS (240) described herein may be operatively coupled to the following reference Figure 3 The target host (not shown) is connected to the described. In addition, the BSS (240) can represent a data backup, archiving and / or disaster recovery storage system, which includes a backup storage array (242), a recovery agent (246), a priority allocation object (PAO) (248), a PAO interpreter (250), a Euclidean distance calculator (252), a file sorter (254) and a send buffer (256). Each of these components is described below.
[0031] In one embodiment of the present invention, the backup storage array (242) may refer to a collection of one or more physical storage devices (not shown) on which various forms of information may be consolidated - for example, backup user program data (244). Each physical storage device may include a non-transitory computer-readable storage medium on which information may be stored in whole or in part and temporarily or permanently. By way of example, each physical storage device may represent a hard disk drive (HDD), a solid-state drive (SSD), a tape storage system, or a network attached storage (NAS). In addition, in one embodiment of the present invention, the backup storage array (242) may be implemented using a permanent (i.e., non-volatile) storage device. Examples of permanent storage devices may include, but are not limited to, optical storage devices, magnetic storage devices, NAND flash memory, NOR flash memory, magnetic random access memory (M-RAM), spin torque magnetic RAM (ST-MRAM), phase change memory (PCM), or any other storage device defined as a non-volatile storage class memory (SCM).
[0032] In one embodiment of the present invention, the backup user program data (244) that can be merged on the backup storage array (242) can refer to the backup user program data (244) that can be merged on the target host (see, for example, Figure 3) is executed on the computer. Backing up the user program data (244) may require, for example, application data, user data, configuration data, metadata, or any other form of data with which one or more user programs may interact.
[0033] In one embodiment of the present invention, the recovery agent (246) may refer to a computer program that can be executed on the underlying hardware of the BSS (240). Specifically, the recovery agent (246) may refer to a computer program that is designed and configured to implement data recovery operations after a disaster at a target host. Therefore, the recovery agent (246) may include the following functions: based on the configuration of the recovery agent (246), identify and retrieve user program data (244) in the form of data files (258) from the backup storage array (242); and queue one or more data files (258) in a buffer (not shown). A person of ordinary skill will understand that the recovery agent (246) can perform other functions without departing from the scope of the present invention.
[0034] In one embodiment of the present invention, PAO (248) may refer to a data structure or data object (e.g., file) that specifies a user-defined mapping that associates a file type and / or file name with a data criticality factor. File type may refer to metadata that describes a given data file (258), and more specifically, may refer to metadata that indicates a file format in which user program data in a given data file (258) has been encoded for storage. Examples of file formats (or file types) may include, but are not limited to, TXT file format for American Standard Code for Information Interchange (ASCII) or Unicode plain text data files; MP4 file format for Moving Picture Experts Group (MPEG)-4 Part 14 multimedia data files; PDF file format for Adobe Portable Document Formatted data files; DOC for Microsoft Word format data files; and any other existing file format that can be used to encode data for storage. File name, on the other hand, may refer to data file (258) metadata that indicates a unique name that identifies and distinguishes a given data file (258) from other data files (258). The file name may be expressed as a string of any length that includes any combination of characters (e.g., letters, numbers, certain symbols, etc.). In addition, the data criticality factor may refer to a numerical or categorical classification that assigns routing operation priority to a given data file (258) file type and / or file name. The data criticality factor may be defined from any system or user defined priority levels. Examples of data criticality factors may include, but are not limited to, any natural number (e.g., 1, 2, 3, ...), any category label (e.g., "low", "medium", "high", ...), and any other extensible classification scheme.
[0035] In one embodiment of the present invention, the PAO interpreter (250) may refer to a computer program that can be executed on the underlying hardware of the BSS (240). Specifically, the PAO interpreter (250) may refer to a computer program designed and configured to interpret the PAO (248) and assign priority weights to the data files (258) queued by the recovery agent (246). Thus, the PAO interpreter (250) may include the following functions: examining metadata describing any given data file (258) to identify a file type and file name associated with the given data file (258); performing a lookup on the PAO (248) using the identified file type and / or file name associated with the given data file (258); based on the lookup, obtaining a data criticality factor assigned to the given data file (258) by a user of the BSS (240); identifying a priority weight associated with the data criticality factor, thereby assigning or associating a priority weight to the given data file (258); and providing the priority weight of the given data file (258) to the Euclidean distance calculator (252). A data file (258) may refer to a unit of data (e.g., user program data (244)) that represents a continuous container of data. One of ordinary skill will appreciate that the PAO interpreter (250) may perform other functions without departing from the scope of the present invention.
[0036] In one embodiment of the present invention, the PAO interpreter (250) may identify the priority weight associated with a given data criticality factor by means of a specified user-defined mapping. Thus, these mappings may associate a given data criticality factor with a given priority weight. The data criticality factor may refer to a numerical or categorical classification that assigns a write priority to a given user program data (244) file type and / or file name. The data criticality factor may be defined from any system or user-defined priority level. Examples of data criticality factors may include, but are not limited to, any natural number (e.g., 1, 2, 3, ...), any category label (e.g., "low", "medium", "high", ...), and any other scalable classification scheme. In addition, the priority weight of any given data file (258) may refer to a numerical value (e.g., an integer, a floating point number, a fraction, etc.) assigned to the given data file (258), which reflects the relative importance of the given data file (258) based on the data criticality factor associated with the given data file (258).
[0037] In one embodiment of the present invention, the Euclidean distance calculator (252) may refer to a computer program that can be executed on the underlying hardware of the BSS (240). Specifically, the Euclidean distance calculator (252) may refer to a computer program designed and configured to determine the weighted-based Euclidean distance between any pair of adjacent data files (258) queued by the recovery agent (246) and therefore waiting to be sent. Generally, the Euclidean distance refers to the straight-line distance between two data points in a Euclidean space (e.g., an n-dimensional Cartesian coordinate space). Therefore, the aforementioned weighted-based Euclidean distance may refer to the straight-line distance between a given pair of data points, where the relative significance of each data point of the given pair of data points is emphasized and taken into account by the integration of their respective priority weights (described above), as expressed by the following mathematical formula:
[0038]
[0039] Where E dw For two data points P = {p1, p2, p3, ..., p n} and Q={q1,q2,q3,…,q n} based on the modified weighted Euclidean distance between p is the priority weight associated with data point P; where w q is the priority weight associated with the data point Q; and where n is the dimension in the Euclidean space where the data point is located.
[0040] Thus, in one embodiment of the present invention, the Euclidean distance calculator (252) may include the following functions: receiving priority weights associated with any data files (258) queued by the recovery agent (246) from the PAO interpreter (250); mapping pairs of queued adjacent data files (258) onto an n-dimensional Euclidean space; calculating modified weight-based Euclidean distances between pairs of queued adjacent data files (258) mapped onto the n-dimensional Euclidean space taking into account the received priority weights; and providing the calculated modified weight-based Euclidean distances to the file sorter (254). A person of ordinary skill will appreciate that the Euclidean distance calculator (252) may perform other functions without departing from the scope of the present invention.
[0041] In one embodiment of the present invention, the file sorter (254) may refer to a computer program executable on the underlying hardware of the BSS (240). Specifically, the file sorter (254) may refer to a computer program designed and configured to sort the data files (258) queued by the recovery agent (246) so that the closest and most critical data files (258) in each file queue (260) are placed at the front of the file queue (260). Therefore, the file sorter (254) may include the following functions: receiving the modified weight-based Euclidean distances between pairs of queued adjacent data files (258) from the Euclidean distance calculator (252); rearranging the queued data files (258) in each file queue (260) based on at least the received modified weight-based Euclidean distances to implement a closest-to-critical queuing scheme; and providing the rearranged queued data files (258) to the send buffer (256). A queuing scheme may refer to an order in which the data files (258) in a given file queue (260) may be arranged. The aforementioned closest-to-criticality-based queuing scheme subsequently arranges the data files (258) in a given file queue (260) such that, in the sorted order, the closest and most critical data files (258) occupy the frontmost sequence position (262), while alternatively the furthest and least critical data files (268) occupy the backmost sequence position (262). One of ordinary skill will appreciate that the file sorter (254) may perform other functions without departing from the scope of the present invention.
[0042] In one embodiment of the present invention, the send buffer (256) may refer to a physical memory storage device (e.g., random access memory (RAM)) where data files (258) may be temporarily queued while waiting to be sent to a target host. In addition, the send buffer (256) may include functionality to send one or more data file streams in a concurrent (or parallel) manner. A data file stream may refer to a collection of data files (258) that belong to the same or common restore job. In turn, a restore job may refer to a restore operation defined by a set of information, such as the data being restored (e.g., user program data (244)), the target location of the restore (e.g., the target host), and the time when the restore is being performed. Additional or alternative information may define a restore job without departing from the scope of the present invention.
[0043] Figure 3 A target host according to one or more embodiments of the present invention is shown. The target host (300) may represent a physical computing system including a host interface (302), a receive buffer (304), a recovery agent (306), one or more user programs (308A-308N), and a host storage array (310). Each of these components is described below.
[0044] In one embodiment of the present invention, the host interface (302) may refer to computer hardware and / or software through which a user may interact with various components of the target host (300) (e.g., one or more user programs (308A-308N), the recovery agent (306), etc.). Thus, the host interface (302) may include the following functions: relaying commands, instructions, and / or other input information from a user to one or more target host (300) components; and conversely, presenting results and / or other output information from one or more target host (300) components to the user. A person of ordinary skill will understand that the host interface (302) may perform other functions without departing from the scope of the present invention. By way of example, the host interface (302) may be implemented in the form of a command line interface (CLI), a graphical user interface (GUI), or any other interface design through which a user may interact with the target host (300).
[0045] In one embodiment of the present invention, the receive buffer (304) may refer to a physical memory storage device (e.g., random access memory (RAM)) where data objects (not shown) (e.g., data packets, data blocks, or data files) may be temporarily queued while awaiting restoration via write operations to the host storage array (310). Additionally, the receive buffer (304) may include functionality to provide any queued (or buffered) data objects to the restore agent (306). Additionally, the receive buffer (304) may include additional functionality to receive one or more data object streams in a concurrent (or parallel) manner. A data object stream may refer to a collection of data objects belonging to the same or common restore job. In turn, a restore job may refer to a restore operation defined by a set of information, such as the data being restored (e.g., user program data (312)), the target location of the restore (e.g., the target host (300)), and the time at which the restore is being performed. Additional or alternative information may define a backup job without departing from the scope of the present invention.
[0046] In one embodiment of the present invention, the recovery agent (308) may refer to a computer program that can be executed on the underlying hardware of the target host (300). Specifically, the recovery agent (308) may refer to a computer program that is designed and configured to implement data recovery operations after a disaster. Therefore, the recovery agent (308) may include the following functions: receiving commands, instructions and / or other input information from the host interface (302); obtaining queued data objects from the receive buffer (306); and writing the obtained data objects to the host storage array (310), thereby restoring any user program data (312) encapsulated by the obtained data objects. Ordinary technicians will understand that the backup agent (208) can perform other functions without departing from the scope of the present invention.
[0047] In one embodiment of the present invention, user programs (308A-308N) may refer to computer programs that can be executed on the underlying hardware of the target host (300). Specifically, user programs (308A-308N) may refer to computer programs that are designed and configured to perform one or more functions, tasks and / or activities intended to assist the user of the target host (300). Therefore, user programs (308A-308N) may include the following functions: receiving commands, instructions and / or other input information from the host interface (302); in response to receiving the above commands, instructions and / or other input information, executing one or more functions, tasks and / or activities for which the user programs (308A-308N) are designed and configured; before, during and / or after executing the functions, tasks and / or activities, reading and / or writing (i.e., storing) corresponding user program data (312) from / to the host storage array (310); obtaining results and / or other output information from executing the functions, tasks and / or activities; and providing the above results and / or other output information to the host interface (302). Those of ordinary skill will appreciate that the user programs (308A-308N) may perform other functions without departing from the scope of the present invention. Examples of user programs (308A-308N) may include, but are not limited to, word processors, email clients, database clients, virtual machines, web browsers, media players, file viewers, image editors, simulators, etc.
[0048] In one embodiment of the present invention, the host storage array (310) may refer to a collection of one or more physical storage devices (not shown) on which various forms of information - such as user program data (312) - may be consolidated. Each physical storage device may include a non-transitory computer-readable storage medium on which information may be stored in whole or in part and temporarily or permanently. By way of example, each physical storage device may represent a hard disk drive (HDD), a solid-state drive (SSD), a tape storage system, or a network attached storage (NAS). In addition, in one embodiment of the present invention, the host storage array (212) may be implemented using permanent (i.e., non-volatile) storage devices. Examples of permanent storage devices may include, but are not limited to, optical storage devices, magnetic storage devices, NAND flash memory, NOR flash memory, magnetic random access memory (M-RAM), spin torque magnetic RAM (ST-MRAM), phase change memory (PCM), or any other storage device defined as a non-volatile storage class memory (SCM).
[0049] In one embodiment of the invention, user program data (312) that may be incorporated on the host storage array (310) may refer to any granularity of data associated with any given user program (308A-308N). User program data (312) may entail, for example, application data, user data, configuration data, metadata, or any other form of data with which one or more user programs (308A-308N) may interact.
[0050] Figure 4 A flowchart is shown describing a method for prioritizing the recovery of critical data packets or data blocks during a restore operation according to one or more embodiments of the present invention. The various steps outlined below may be performed by Figure 2A In addition, although the steps in the flowchart are presented and described in sequence, it will be understood by ordinary technicians that some or all of the steps may be performed in a different order, may be combined or omitted, and some or all of the steps may be performed in parallel.
[0051] Steering Figure 4 In step 400, a set of data object queues is identified. In one embodiment of the present invention, each identified data object queue may represent a first-in-first-out (FIFO) buffer. In addition, each identified data object queue may include a sequence of data objects (e.g., data packets or data blocks) that may be waiting to be sent to a target host (see, e.g., Figure 3 ). The cardinality (i.e., the number of data objects) of the data object sequences in each identified data object queue may be the same or different throughout the process. Moreover, each data object sequence may be buffered in a corresponding data object queue according to an arrival-based queuing scheme. The queuing scheme may refer to an order in which the data objects in a given data object queue may be arranged. The aforementioned arrival-based queuing scheme then arranges the data objects in a given data object queue in the order in which the recovery agent executing on the BSS has selected the data objects for recovery.
[0052] In step 402, for each data object queued in each data object queue (identified in step 400), at least the data criticality factor of the data object is obtained. That is, in one embodiment of the present invention, the header information of each data object can be checked to extract at least the data criticality factor of the data object. The data criticality factor can refer to a numerical or class classification that assigns routing operation priority to a data type associated with user program data within a given data object. The data criticality factor can be defined from any system or user defined priority level. Examples of data criticality factors can include, but are not limited to, any natural number (e.g., 1, 2, 3, ...), any class label (e.g., "low", "medium", "high", ...), and any other scalable classification scheme. In another embodiment of the present invention, stream attribute information (SDI) can also be derived from an inspection of the header information associated with each data object. Specifically, information such as a data object sequence number can be extracted and used to derive the SDI. Other non-limiting examples of header information that can be used include parent object information, parent stream information, I / O port characteristics, and base address pointers. Typically, header information can correspond to any information common between objects.
[0053] In step 404, for each data object queued in each data object queue (identified in step 400), a priority weight for the data object is identified. In one embodiment of the invention, the priority weight of any given data object may refer to a numerical value (e.g., an integer, a floating point number, a fraction, etc.) that may be assigned to the given data object, which may reflect the relative importance of the given data object based on the data criticality factor associated with the given data object (obtained in step 402). Furthermore, identification of the priority weight may require accessing and interpreting a user-defined mapping, which may associate a data criticality factor with a priority weight.
[0054] In step 406, zero or more unique data object streams are identified using the SDI (obtained in step 402). In one embodiment of the present invention, an SDI may refer to information that associates two or more data objects with each other. These related data objects may be related to unique data object streams. A data object stream (e.g., a data packet stream or a data block stream) may refer to a collection of data objects that belong to the same or common restore job. In turn, a restore job may refer to a restore operation defined by a set of information, such as the data being restored (e.g., user program data), the target location of the restore (e.g., a target host), and the time when the restore is being performed. Additional or alternative information may define a backup job without departing from the scope of the present invention.
[0055] In step 408, for each data object queued in each data object queue (identified in step 400), the data object is mapped to a predefined Euclidean space (e.g., a two-dimensional Cartesian coordinate space). More specifically, in one embodiment of the present invention, a numerical value (e.g., a natural number) representing a received sequence position associated with a given data object and a given data object queue may be mapped to a horizontal coordinate (i.e., an x-coordinate) and a vertical coordinate (i.e., a y-coordinate) of a data point representing the given data object in the Euclidean space, respectively. The received sequence position of the given data object may refer to a position occupied by the given data object relative to the front of the given data object queue along a sequence of data objects (including the given data object) waiting within the given data object queue. The given data object queue may refer to one of the above-identified data object queues in which the given data object may be waiting. A numerical value may be assigned to the given data object queue based on the relative position of the given data object queue to other identified data object queues.
[0056] In step 410, for each pair of consecutive (or adjacent) data objects in each data object queue (identified in step 400), the distance between the data points (mapped in step 408) representing a pair of adjacent data objects is calculated. In one embodiment of the present invention, the aforementioned distance may include a modified weight-based Euclidean distance. Generally, the Euclidean distance refers to the straight-line distance between two data points in a Euclidean space (e.g., an n-dimensional Cartesian coordinate space). Therefore, the aforementioned modified weight-based Euclidean distance may refer to the straight-line distance between a given pair of data points, wherein the relative significance of each data point of the given pair of data points is emphasized and taken into account by the integration of their respective priority weights (indicated in step 504), as expressed by the following mathematical formula:
[0057]
[0058] Where E dw For two data points P = {p1, p2, p3, ..., p n} and Q={q1,q2,q3,…,q n} based on the modified weighted Euclidean distance between p is the priority weight associated with data point P; where w q is the priority weight associated with the data point Q; and where n is the dimension in the Euclidean space where the data point is located.
[0059] In step 412, for each data object stream (if any data object streams have been identified in step 406), two or more member data objects that define or belong to the data object stream are identified. Thereafter, in one embodiment of the present invention, all distances between pairs of adjacent data objects (calculated in step 410) may be aggregated, where at least one of the pair of data objects is a member data object of the data object stream. Additionally, based on this aggregation of distances, a minimum distance (i.e., the minimum distance in the distance aggregation) may be identified and subsequently associated with the data object stream. The remaining distances identified in the distance aggregation (i.e., one or more distances not identified as the minimum distance) may be disregarded in the following steps described below.
[0060] In step 414, for each data object queue (identified in step 400), the sequence of received data objects buffered within the data object queue (arranged in the arrival-based queuing scheme (described above)) is sorted. In one embodiment of the present invention, the sequence of received data objects may be sorted (or rearranged) based on or using the distances between pairs of data objects (calculated in step 410) and the minimum distance (if any) of one or more unique data object streams (identified in step 406) (identified in step 412). Additionally, based on the sorting, the sequence of received data objects may be rearranged into a closest-to-critical sequence of data objects, which may follow a closest-to-critical queuing scheme. The aforementioned closest-to-critical queuing scheme may arrange the data objects in a given data object queue such that, in sorted order, the closest and most critical data objects occupy the frontmost sequence position of the given data object queue, while alternatively the furthest and least critical data objects occupy the backmost sequence position of the given data object queue. The frontmost sequence position of a given data object queue may refer to a sequence position that may be sent (or routed) to a target host first. Thus, one or more of the closest and most critical data objects in a given data object queue receive priority for routing operations.
[0061] In step 416, the most critical data object sequence (obtained in step 414) is concurrently sent to the target host across all data object queues (identified in step 400). That is, in one embodiment of the present invention, as a parallel operation, for each data object queue, the resulting most critical data object sequence (in the order described above) may be simultaneously sent or routed to the target host.
[0062] Figure 5 A flowchart is shown describing a method for prioritizing the recovery of critical data files during a restore operation according to one or more embodiments of the present invention. The various steps outlined below may be performed by Figure 2BIn addition, although the steps in the flowchart are presented and described in sequence, it will be understood by ordinary technicians that some or all of the steps may be performed in a different order, may be combined or omitted, and some or all of the steps may be performed in parallel.
[0063] Steering Figure 5 In step 500, a set of data file queues is identified. In one embodiment of the present invention, each identified data file queue may represent a first-in-first-out (FIFO) buffer. In addition, each identified data file queue may include a sequence of data files that may be waiting to be sent (or routed) to a target host (see, e.g., Figure 3 ). The cardinality (i.e., the number of data files) of the data file sequences in each identified data file queue may be the same or different throughout the process. Moreover, each data file sequence may be buffered in a corresponding data file queue according to an arrival-based queuing scheme. The queuing scheme may refer to an order in which the data files in a given data file queue may be arranged. The aforementioned arrival-based queuing scheme then arranges the data files in a given data file queue in the order in which the recovery agent executing on the BSS has selected the data files for recovery.
[0064] In step 502, for each data file queued in each data file queue (identified in step 500), the file type and / or file name associated with the data file is identified. In one embodiment of the present invention, the file type may refer to metadata describing a given data file, and more specifically, may refer to metadata indicating the file format in which the user program data in a given data file has been encoded for storage. Examples of file formats (or file types) may include, but are not limited to, the TXT file format for American Standard Code for Information Interchange (ASCII) or Unicode plain text data files; the MP4 file format for Moving Picture Experts Group (MPEG)-4 Part 14 multimedia data files; the PDF file format for Adobe Portable Document Formatted data files; the DOC for Microsoft Word format data files; and any other existing file format that can be used to encode data for storage. On the other hand, the file name may refer to data file metadata indicating a unique name that identifies and distinguishes a given data file from other data files. The file name may be expressed as a string of arbitrary length covering any combination of characters (e.g., letters, numbers, certain symbols, etc.).
[0065] In step 504, for each data file queued in each data file queue (identified in step 500), the data criticality factor of the data file is determined. That is, in one embodiment of the present invention, the file type and / or file name (identified in step 502) can be used to determine the data criticality factor of the data file. More specifically, the identified file type and / or file name can be used to perform a search on the priority allocation object to obtain the data criticality factor. The aforementioned priority allocation object may refer to a data structure or data object (e.g., file) that specifies a user-defined mapping that associates the file type and / or file name with the data criticality factor. In addition, the data criticality factor may refer to a numerical or category classification that assigns a routing operation priority to a given data file. The data criticality factor can be defined from any system or user-defined priority level. Examples of data criticality factors may include, but are not limited to, any natural number (e.g., 1, 2, 3, ...), any category label (e.g., "low", "medium", "high", ...), and any other scalable classification scheme.
[0066] In step 506, for each data file queued in each data file queue (identified in step 500), a priority weight for the data file is identified. In one embodiment of the present invention, the priority weight of any given data file may refer to a numerical value (e.g., an integer, a floating point number, a fraction, etc.) that may be assigned to the given data file, which may reflect the relative importance of the given data file based on the data criticality factor associated with the given data file (determined in step 504). In addition, the identification of the priority weight may require accessing and interpreting a user-defined mapping, which may associate a data criticality factor with a priority weight.
[0067] In step 508, for each data file queued in each data file queue (identified in step 500), the data file is mapped to a predefined Euclidean space (e.g., a two-dimensional Cartesian coordinate space). More specifically, in one embodiment of the present invention, a numerical value (e.g., a natural number) representing a received sequence position associated with a given data file and a given data file queue may be mapped to a horizontal coordinate (i.e., an x-coordinate) and a vertical coordinate (i.e., a y-coordinate) of a data point representing the given data file in the Euclidean space, respectively. The received sequence position of the given data file may refer to a position occupied by the given data file relative to the front of the given data file queue along the sequence of data files (including the given data file) waiting in the given data file queue. The given data file queue may refer to one of the above-identified data file queues in which the given data file may be waiting. A numerical value may be assigned to the given data file queue based on the relative position of the given data file queue to other identified data file queues.
[0068] In step 510, for each pair of consecutive (or adjacent) data files in each data file queue (identified in step 500), the distance between the data points (mapped in step 708) representing a pair of adjacent data files is calculated. In one embodiment of the present invention, the aforementioned distance may include a modified weight-based Euclidean distance. Generally, the Euclidean distance refers to the straight-line distance between two data points in a Euclidean space (e.g., an n-dimensional Cartesian coordinate space). Therefore, the aforementioned modified weight-based Euclidean distance may refer to the straight-line distance between a given pair of data points, wherein the relative significance of each data point of the given pair of data points is emphasized and taken into account by the integration of their respective priority weights (indicated in step 604), as expressed by the following mathematical formula:
[0069]
[0070] Where E dw For two data points P = {p1, p2, p3, ..., p n} and Q={q1,q2,q3,…,q n} based on the modified weighted Euclidean distance between p is the priority weight associated with data point P; where w q is the priority weight associated with the data point Q; and where n is the dimension in the Euclidean space where the data point is located.
[0071] In step 512, for each data file queue (identified in step 500), the received sequence of data files buffered in the data file queue (arranged in the arrival-based queuing scheme (described above)) is sorted. In one embodiment of the present invention, the received sequence of data files may be sorted (or rearranged) based on or using the distances between pairs of data files (calculated in step 510). In addition, based on the sorting, the received sequence of data files may be rearranged into a sequence of data files that is closest to criticality, which may follow the closest-to-criticality-based queuing scheme. The aforementioned closest-to-criticality-based queuing scheme may arrange the data files in a given data file queue so that in the sorted order, the closest and most critical data files occupy the frontmost sequence position of the given data file queue, while alternatively the farthest and least critical data files occupy the backmost sequence position of the given data file queue. The frontmost sequence position of a given data file queue may refer to a sequence position that may be sent (or routed) to the target host first. Therefore, one or more of the closest and most critical data files in a given data file queue obtain routing operation priority.
[0072] In step 514, the most critical data file sequences (obtained in step 512) are concurrently sent to the target host across all data file queues (identified in step 500). That is, in one embodiment of the present invention, as a parallel operation, for each data file queue, the resulting most critical data file sequences (in the order described above) may be simultaneously sent or routed to the target host.
[0073] Figure 6 A computing system according to one or more embodiments of the present invention is shown. The computing system (600) may include one or more computer processors (602), non-permanent storage devices (604) (e.g., volatile memory, such as random access memory (RAM), cache memory), permanent storage devices (606) (e.g., hard disk, optical drive such as compact disc (CD) drive or digital versatile disc (DVD) drive, flash memory, etc.), communication interfaces (612) (e.g., Bluetooth interface, infrared interface, network interface, optical interface, etc.), input devices (610), output devices (608), and numerous other elements (not shown) and functionality. Each of these components is described below.
[0074] In one embodiment of the present invention, the one or more computer processors (602) may be integrated circuits for processing instructions. For example, the one or more computer processors may be one or more cores or microcores of a central processing unit (CPU) and / or a graphics processing unit (GPU). The computing system (600) may also include one or more input devices (610), such as a touch screen, a keyboard, a mouse, a microphone, a touchpad, an electronic pen, or any other type of input device. In addition, the communication interface (612) may include an integrated circuit for connecting the computing system (600) to a network (not shown) (e.g., a local area network (LAN), a wide area network (WAN) such as the Internet, a mobile network, or any other type of network) and / or to another device, such as another computing device.
[0075] In one embodiment of the invention, the computing system (600) may include one or more output devices (608), such as a screen (e.g., a liquid crystal display (LCD), a plasma display, a touch screen, a cathode ray tube (CRT) monitor, a projector, or other display device), a printer, an external storage device, or any other output device. One or more of the output devices may be the same as or different from one or more input devices. The one or more input and output devices may be connected locally or remotely to one or more computer processors (602), non-persistent storage devices (604), and permanent storage devices (606). There are many different types of computing systems, and the aforementioned one or more input and output devices may take other forms.
[0076] Software instructions in the form of computer-readable program code to perform embodiments of the present invention may be stored in whole or in part, temporarily or permanently, on a non-transitory computer-readable medium such as a CD, DVD, storage device, disk, tape, flash memory, physical memory, or any other computer-readable storage medium. Specifically, the software instructions may correspond to a computer-readable program code that, when executed by one or more processors, is configured to perform one or more embodiments of the present invention.
[0077] While the invention has been described with respect to a limited number of embodiments, those skilled in the art having benefit of this disclosure will appreciate that other embodiments may be designed which do not depart from the scope of the invention as disclosed herein. Accordingly, the scope of the invention should be limited only by the claims appended hereto.
Claims
1. A method for prioritizing queued data objects, comprising: identifying a data object queue comprising a set of data objects queued in a first sequential order; For each data object in the data object queue: Mapping the data objects to data points in Euclidean space; After said mapping: identifying a set of data object pairs, each data object pair comprising a pair of adjacent data objects queued in the data object queue; For each data object pair in the data object pair set: calculating distances between pairs of data points in the Euclidean space mapped to the pairs of data objects; sorting the set of data objects queued in the data object queue based at least on the distance calculated for each pair of data objects; Based on the sorting, obtaining the set of data objects queued in a second sequential order; and The set of data objects queued in the second sequential order is sent to a target host.
2. The method according to claim 1, further comprising: For each data object in the data object queue: obtaining a data criticality associated with the data object; and identifying a priority weight of the data object based on the data criticality, The distance calculated for each data object pair is combined with the priority weight of each neighboring data object of the data object pair. The method according to claim 2 , wherein the distance calculated for each data object pair is a Euclidean distance based on modified weights.
4. The method according to claim 2, further comprising: checking the header information of each data object to obtain the data criticality associated with the data object, The data object is one selected from the group consisting of a data packet and a data block.
5. The method of claim 2, further comprising: performing a lookup on a priority assignment object using at least one selected from the group consisting of a file type and a file name associated with the data object to obtain the data criticality associated with the data object, The data object is a data file.
6. The method of claim 1 , wherein mapping the data objects to the data points in the Euclidean space comprises: mapping a queue number associated with the data object to a horizontal coordinate of the data point; and mapping the sequence position associated with the data object to the ordinate of the data point, wherein the queue number identifies the data object queue in which the data object is located, Wherein the sequence position identifies a position at which the data object is located relative to the first sequential order.
7. The method of claim 1, wherein the first sequential order queues the set of data objects according to an arrival-based scheme.
8. The method of claim 1, wherein each data object in the data object queue is one selected from the group consisting of a data packet, a data block, and a data file.
9. A non-transitory computer readable medium comprising computer readable program code which, when executed by a computer processor, enables the computer processor to: identifying a data object queue comprising a set of data objects queued in a first sequential order; For each data object in the data object queue: Mapping the data objects to data points in Euclidean space; After said mapping: identifying a set of data object pairs, each data object pair comprising a pair of adjacent data objects queued in the data object queue; For each data object pair in the data object pair set: calculating distances between pairs of data points in the Euclidean space mapped to the pairs of data objects; sorting the set of data objects queued in the data object queue based at least on the distance calculated for each pair of data objects; Based on the sorting, obtaining the set of data objects queued in a second sequential order; and The set of data objects queued in the second sequential order is sent to a target host.
10. The non-transitory computer readable medium of claim 9, wherein the computer program, when executed by the computer processor, additionally enables the computer processor to: For each data object in the data object queue: obtaining a data criticality associated with the data object; and identifying a priority weight of the data object based on the data criticality, The distance calculated for each data object pair is combined with the priority weight of each neighboring data object of the data object pair. 11 . The non-transitory computer-readable medium of claim 10 , wherein the distance calculated for each data object pair is a modified weighted Euclidean distance.
12. The non-transitory computer readable medium of claim 10, wherein the computer program, when executed by the computer processor, additionally enables the computer processor to: checking the header information of each data object to obtain the data criticality associated with the data object, The data object is one selected from the group consisting of a data packet and a data block.
13. The non-transitory computer readable medium of claim 10, wherein the computer program, when executed by the computer processor, additionally enables the computer processor to: performing a lookup on a priority assignment object using at least one selected from the group consisting of a file type and a file name associated with the data object to obtain the data criticality associated with the data object, The data object is a data file.
14. The non-transitory computer-readable medium of claim 10, wherein mapping the data objects to the data points in the Euclidean space comprises: mapping a queue number associated with the data object to a horizontal coordinate of the data point; and mapping the sequence position associated with the data object to the ordinate of the data point, wherein the queue number identifies the data object queue in which the data object is located, Wherein the sequence position identifies a position at which the data object is located relative to the first sequential order.
15. The non-transitory computer-readable medium of claim 9, wherein the first sequential order queues the set of data objects according to an arrival-based scheme.
16. The non-transitory computer-readable medium of claim 9, wherein each data object in the data object queue is one selected from the group consisting of a data packet, a data block, and a data file.
17. A backup storage system, comprising: processor; a memory comprising instructions that, when executed by the processor, perform a method comprising: identifying a data object queue comprising a set of data objects queued in a first sequential order; For each data object in the data object queue: Mapping the data objects to data points in Euclidean space; After said mapping: identifying a set of data object pairs, each data object pair comprising a pair of adjacent data objects queued in the data object queue; For each data object pair in the data object pair set: calculating distances between pairs of data points in the Euclidean space mapped to the pairs of data objects; sorting the set of data objects queued in the data object queue based at least on the distance calculated for each pair of data objects; Based on the sorting, obtaining the set of data objects queued in a second sequential order; and The set of data objects queued in the second sequential order is sent to a target host.
18. The backup storage system of claim 17, wherein the method further comprises: For each data object in the data object queue: obtaining a data criticality associated with the data object; and identifying a priority weight of the data object based on the data criticality, The distance calculated for each data object pair is combined with the priority weight of each neighboring data object of the data object pair.
