A method, system, device and storage medium for lowering water level in a storage pool

By giving priority to recovering objects that have been flushed on other nodes during the data recovery process, hard disk space is released, the problem of continuous growth of the storage pool water level is solved, and the stability of the storage pool and data balance are guaranteed.

CN114661244BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210403862.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2024-10-15
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

In a massive data storage system, node failure causes the water level in the storage pool to continue to grow, causing the data recovery process to be stuck and unable to provide normal business services.

Method used

During the data recovery process, priority is given to recovering objects that have been flushed on other nodes, triggering the clean operation to release hard disk space, reducing the growth rate of the storage pool water level, and synchronizing to other nodes by writing the objects that need to be recovered first into the list. Resume operations.

Benefits of technology

It effectively reduces the growth rate of the storage pool water level, reduces the probability of storage being full, and ensures the stability of the storage pool and the balance of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114661244B_ABST
    Figure CN114661244B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system, device and storage medium for lowering the water level of a storage pool, the method comprising: in response to a faulty node in a cluster, taking the faulty node offline and controlling other nodes to perform data flushing normally; in response to the offline node coming back online, screening the objects to be recovered of the recovered node to determine the objects that have been flushed in other nodes; giving priority to recovering the objects that have been flushed to lower the water level of the storage pool; and in response to the completion of recovery of all the objects that have been flushed, executing recovery of other objects. In the data recovery process, the present invention gives priority to recovering the objects that have been flushed in other nodes that have not been offline, triggering a cleanup operation to release hard disk space and slowing down the growth rate of the water level of the storage pool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed storage systems, and more specifically, to a method, system, device and storage medium for lowering the water level of a storage pool. Background Art

[0002] In the current era of big data, the collection, transmission and storage of massive data face many challenges. Based on the current hardware characteristics of HDD (Hard Disk Drive) and SSD (Solid State Drive), the data will be cached in layers during the design and implementation of the storage system, so as to meet both the performance index requirements and the capacity index requirements of the storage system. The cache layer is used to meet the performance index requirements, and the back-end storage layer is used to meet the storage capacity index requirements. The data is transferred from the cache layer to the storage layer through the data flushing mechanism. For storage systems with a large number or even massive nodes, node failures have become a normal state. Under the premise of ensuring that the data fault domain meets the conditions, the downtime or offline of individual nodes will not affect the normal read and write functions of the business. After the failed node is restored and online, the data consistency recovery operation will be performed.

[0003] The storage cluster uses multiple copies to perform data redundancy protection, which can ensure that the business is not interrupted within the fault domain. Currently, three copies are the most commonly used. If a cluster node is down or offline, other nodes that are not offline can still provide data read and write services, and when the water level is high, data flushing will be performed, which will trigger the clean operation of the object, thereby releasing hard disk space. After the offline node is restored online, it will enter the data recovery process. During the data recovery period, due to the restrictions of high priority guarantees such as data consistency and integrity, these objects that have released space due to flushing on the nodes that are not offline will be sorted together with ordinary objects before recovery. The occupied hard disk space will increase or decrease with the object recovery process. At the same time, with the writing of new business data, the water level of the cache pool in the newly online node will continue to rise, causing the water level to reach the threshold, and eventually causing the termination of the object recovery process, causing the recovery process of the entire cluster to be stuck and unable to provide normal services to the outside world. Summary of the invention

[0004] In view of this, the purpose of the embodiments of the present invention is to propose a method, system, computer device and computer-readable storage medium for lowering the water level of a storage pool. During the data recovery process, the present invention will give priority to recovering objects that have been flushed in other nodes that have not been offline, triggering a clean operation to release hard disk space, slowing down the growth rate of the storage pool water level, reducing the probability of storage being full, and ultimately further ensuring the stability of the storage pool and the balance of data.

[0005] Based on the above purpose, one aspect of an embodiment of the present invention provides a method for lowering the water level of a storage pool, comprising the following steps: in response to the existence of a faulty node in a cluster, taking the faulty node offline, and controlling other nodes to perform data flushing normally; in response to the offline node coming back online, screening the objects to be recovered of the restored node to determine the objects that have been flushed down at other nodes; giving priority to recovering the objects that have been flushed down to lower the water level of the storage pool; and in response to the recovery of all objects that have been flushed down being completed, performing recovery of other objects.

[0006] In some implementations, the prioritizing recovery of the flushed objects to lower the storage pool water level includes: performing a cleanup operation on the flushed objects to release hard disk space.

[0007] In some embodiments, the prioritizing recovery of the objects that have been flushed to lower the water level of the storage pool includes: writing the objects that need to be recovered first into a list, and synchronizing the list to corresponding other nodes; and in response to the corresponding other nodes receiving the list, performing a recovery operation on the corresponding objects.

[0008] In some implementations, the performing of the recovery operation on the corresponding object includes: collecting a range of the corresponding object to be refreshed, and generating an object recovery execution file request according to the range.

[0009] Another aspect of an embodiment of the present invention provides a system for lowering the water level of a storage pool, including: an offline module, configured to, in response to the existence of a faulty node in the cluster, take the faulty node offline and control other nodes to perform data flushing normally; an online module, configured to, in response to the offline node being restored online, screen the objects to be restored of the restored online node to determine the objects that have been flushed from other nodes; a recovery module, configured to give priority to restoring the objects that have been flushed to lower the water level of the storage pool; and an execution module, configured to execute recovery of other objects in response to the completion of recovery of all objects that have been flushed.

[0010] In some implementations, the recovery module is configured to: perform a cleanup operation on the flushed objects to release hard disk space.

[0011] In some embodiments, the recovery module is configured to: write objects that need to be restored first into a list, and synchronize the list to corresponding other nodes; and perform a recovery operation on the corresponding object in response to the corresponding other nodes receiving the list.

[0012] In some implementations, the recovery module is configured to: collect the corresponding object refresh range, and generate an object recovery execution file request based on the range.

[0013] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores computer instructions executable on the processor, and the instructions implement the steps of the above method when executed by the processor.

[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.

[0015] The present invention has the following beneficial technical effects: during the data recovery process, objects that have been flushed in other nodes that have not been offline are restored first, triggering a clean operation to release hard disk space, slowing down the growth rate of the storage pool water level, reducing the probability of storage being full, and ultimately further ensuring the stability of the storage pool and the balance of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A schematic diagram of an embodiment of a method for lowering the water level of a storage tank provided by the present invention;

[0018] Figure 2 A schematic diagram of an embodiment of a system for lowering the water level of a storage tank provided by the present invention;

[0019] Figure 3 A schematic diagram of the hardware structure of an embodiment of a computer device for lowering the water level of a storage pool provided by the present invention;

[0020] Figure 4 A schematic diagram of an embodiment of a computer storage medium for lowering the water level of a storage pool provided by the present invention. DETAILED DESCRIPTION

[0021] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0022] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0023] A first aspect of the embodiments of the present invention provides an embodiment of a method for lowering the water level of a storage pool. Figure 1 FIG. 1 is a schematic diagram of an embodiment of a method for lowering the water level of a storage tank provided by the present invention. Figure 1 As shown, the embodiment of the present invention includes the following steps:

[0024] S1. In response to a faulty node in the cluster, the faulty node is taken offline, and other nodes are controlled to perform data flushing normally;

[0025] S2, in response to the offline node coming back online, screening the objects to be restored of the restored node to determine the objects that have been offlined in other nodes;

[0026] S3, restoring the objects that have been flushed first to lower the water level of the storage pool; and

[0027] S4. In response to the completion of restoration of all objects that have been flushed, restoration of other objects is performed.

[0028] In response to a faulty node in the cluster, the faulty node is taken offline, and other nodes are controlled to perform data flushing normally. When all nodes in the system are online, business reading and writing and data flushing are performed normally. When there is a faulty node in the system, the remaining nodes can still support business reading and writing and perform data flushing normally under the premise of meeting the fault domain.

[0029] In response to the offline node coming back online, the objects to be restored of the restored node are screened to determine the objects that have been flushed on other nodes. After the offline node comes back online, it will rejoin the cluster, triggering the data recovery process; after the recovery starts, the objects to be restored are screened first, and the objects that have been flushed on other nodes are pre-screened.

[0030] The objects that have been flushed are restored first to reduce the water level of the storage pool.

[0031] In some implementations, the prioritizing recovery of the objects that have been flushed to lower the storage pool water level includes: performing a cleanup operation on the objects that have been flushed to release hard disk space. The filtered object list is synchronized to the master node, and the master node leads the object recovery process. The object recovery actually performs a cleanup operation, which releases the occupied hard disk space, thereby lowering the replica water level.

[0032] In some embodiments, the prioritizing recovery of the objects that have been flushed to lower the water level of the storage pool includes: writing the objects that need to be recovered first into a list, and synchronizing the list to corresponding other nodes; and in response to the corresponding other nodes receiving the list, performing a recovery operation on the corresponding objects.

[0033] In some implementations, the performing of the recovery operation on the corresponding object includes: collecting a range of the corresponding object to be refreshed, and generating an object recovery execution file request according to the range.

[0034] In response to the completion of the recovery of all objects that have been flushed, the recovery of other objects is executed. After the recovery of all priority objects in the node that has been restored is completed, the recovery of other objects is executed normally; after the data recovery is completed, the node returns to the normal business processing logic, and the object data is flushed normally.

[0035] Specifically, when the node that is back online starts the data recovery process, it first determines whether the water level exceeds the limit. If the water level exceeds the limit, the cluster is directly switched to the recovery stuck state. If the water level does not exceed the limit, the data that has been flushed is filtered in batches. If there are objects that have been filtered out, the list of objects that need to be restored first will be synchronized to other nodes. After other nodes are introduced to the priority recovery object list, object recovery will be triggered; when all objects in this batch are recovered, other data recovery will be executed. When all data of the current node is recovered, the cluster will be switched to normal state. In addition, when the online node enters the step of recovering objects, the object flushing range is collected, an object recovery OP (execution file) request is generated, and the OP request is sent to the node that is back online. The node that is back online triggers the object cleanup operation to release hard disk space, thereby lowering the water level.

[0036] After the failed node comes back online, the present invention prioritizes the recovery of objects that have been flushed down on other nodes, triggers the clean operation of the object data, thereby releasing the hard disk space occupied by the corresponding replica, and further lowers the buffer pool water level, reserving more space for the subsequent recovery of common objects, reducing the risk of the buffer pool being full, and further ensuring the stability and reliability of the storage cluster.

[0037] It should be pointed out in particular that the various steps in the various embodiments of the above-mentioned method for lowering the water level of the storage pool can be cross-linked, replaced, added, and deleted. Therefore, these reasonable permutations, combinations and transformations of the method for lowering the water level of the storage pool should also fall within the scope of protection of the present invention, and the scope of protection of the present invention should not be limited to the embodiments.

[0038] Based on the above purpose, the second aspect of the embodiment of the present invention provides a system for lowering the water level of a storage tank. Figure 2As shown, the system 200 includes the following modules: an offline module, configured to take a faulty node offline in response to a faulty node in the cluster, and control other nodes to perform data flushing normally; an online module, configured to screen the objects to be recovered of the restored online node in response to the offline node being restored to determine the objects that have been flushed from other nodes; a recovery module, configured to give priority to recovering the objects that have been flushed to lower the water level of the storage pool; and an execution module, configured to execute recovery of other objects in response to the completion of recovery of all objects that have been flushed.

[0039] In some implementations, the recovery module is configured to: perform a cleanup operation on the flushed objects to release hard disk space.

[0040] In some embodiments, the recovery module is configured to: write objects that need to be restored first into a list, and synchronize the list to corresponding other nodes; and perform a recovery operation on the corresponding object in response to the corresponding other nodes receiving the list.

[0041] In some implementations, the recovery module is configured to: collect the corresponding object refresh range, and generate an object recovery execution file request based on the range.

[0042] Based on the above purpose, the third aspect of an embodiment of the present invention proposes a computer device, comprising: at least one processor; and a memory, the memory storing computer instructions that can be executed on the processor, the instructions being executed by the processor to implement the following steps: S1, in response to the existence of a faulty node in the cluster, taking the faulty node offline, and controlling other nodes to perform data flushing normally; S2, in response to the offline node coming back online, screening the objects to be recovered of the restored online node to determine the objects that have been flushed on other nodes; S3, giving priority to recovering the objects that have been flushed to lower the water level of the storage pool; and S4, in response to the recovery of all objects that have been flushed, executing recovery of other objects.

[0043] In some implementations, the prioritizing recovery of the flushed objects to lower the storage pool water level includes: performing a cleanup operation on the flushed objects to release hard disk space.

[0044] In some embodiments, the prioritizing recovery of the objects that have been flushed to lower the water level of the storage pool includes: writing the objects that need to be recovered first into a list, and synchronizing the list to corresponding other nodes; and in response to the corresponding other nodes receiving the list, performing a recovery operation on the corresponding objects.

[0045] In some implementations, the performing of the recovery operation on the corresponding object includes: collecting a range of the corresponding object to be refreshed, and generating an object recovery execution file request according to the range.

[0046] like Figure 3 FIG. 1 is a schematic diagram of the hardware structure of an embodiment of the computer device for lowering the water level of the storage pool provided by the present invention.

[0047] As Figure 3 Taking the device shown as an example, the device includes a processor 301 and a memory 302.

[0048] The processor 301 and the memory 302 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0049] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method for lowering the water level of the storage pool in the embodiment of the present application. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 302, that is, implementing the method for lowering the water level of the storage pool.

[0050] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the method for lowering the water level of the storage pool, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0051] Computer instructions 303 corresponding to one or more methods of lowering the water level of the storage pool are stored in the memory 302. When executed by the processor 301, the method of lowering the water level of the storage pool in any of the above method embodiments is executed.

[0052] Any embodiment of a computer device that executes the above-mentioned method for lowering the water level of a storage pool can achieve the same or similar effect as any corresponding embodiment of the above-mentioned method.

[0053] The present invention also provides a computer-readable storage medium, which stores a computer program for executing the method for lowering the water level of a storage pool when executed by a processor.

[0054] like Figure 4 FIG. 1 is a schematic diagram of an embodiment of the computer storage medium for lowering the water level of the storage pool provided by the present invention. Figure 4 Taking the computer storage medium shown as an example, the computer readable storage medium 401 stores a computer program 402 that performs the above method when executed by a processor.

[0055] Finally, it should be noted that a person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program of the method for lowering the water level of the storage pool can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned any method embodiments.

[0056] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0057] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0058] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0059] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0060] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for lowering the water level of a storage tank, It is characterized in that The steps include: In response to a faulty node in the cluster, the faulty node is taken offline, and other nodes are controlled to perform data flushing normally; In response to the offline node coming back online, screening the objects to be restored of the restored node to determine the objects that have been refreshed on other nodes; Prioritizing the recovery of the objects that have been flushed to reduce the water level of the storage pool; and In response to the completion of restoration of all the objects that have been flushed, performing restoration of other objects; The prioritizing recovery of the flushed objects to lower the storage pool water level includes: Performing a cleanup operation on the objects that have been flushed to release hard disk space; The prioritizing recovery of the flushed objects to lower the storage pool water level includes: Write objects that need to be restored first into a list, and synchronize the list to other corresponding nodes; and In response to the corresponding other nodes receiving the list, performing a recovery operation on the corresponding objects; The recovery operation on the corresponding object includes: The corresponding object refresh range is collected, and an object recovery execution file request is generated according to the range.

2. A system for lowering the water level in a storage tank, It is characterized in that include: An offline module, configured to, in response to a faulty node in the cluster, offline the faulty node and control other nodes to perform data flushing normally; An online module, configured to, in response to an offline node coming back online, screen objects to be restored of the restored online node to determine objects that have been offlined in other nodes; A recovery module configured to restore the objects that have been flushed first to reduce the water level of the storage pool; and An execution module, configured to execute the recovery of other objects in response to the completion of the recovery of all the objects that have been flushed; Wherein, the recovery module is configured to: Performing a cleanup operation on the objects that have been flushed to release hard disk space; The recovery module is configured to: Write objects that need to be restored first into a list, and synchronize the list to other corresponding nodes; and In response to the corresponding other nodes receiving the list, performing a recovery operation on the corresponding objects; The recovery module is configured to: The corresponding object refresh range is collected, and an object recovery execution file request is generated according to the range.

3. A computer device, It is characterized in that include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the instructions implement the steps of the method according to claim 1 when executed by the processor.

4. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.

Citation Information

Patent Citations

  • Method, system and device for controlling data brushing speed and medium

    CN111708484A

  • Data caching method, system and device and medium

    CN112131046A

  • Method, system and device for controlling water level of buffer pool and medium

    CN112631521A

  • Method and device for preventing cache pool from being fully written through proxy transfer

    CN113806085A

  • Reducing failback performance duration in data replication systems

    US10649862B1