Storage node recovery method, device and equipment and storage medium
A technology of storage nodes and recovery methods, applied in the field of database storage, can solve problems such as taking a long time and taking a long time, and achieve the effects of improving robustness, realizing fault recovery, and reducing data search time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It is a flow chart of a storage node recovery method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of recovering data stored in a faulty storage node in a distributed database. This method can be executed by a storage node recovery device. The device can be realized by hardware and / or software, and generally can be integrated in the log server, see figure 1 , the method provided by the embodiment of the present invention includes the following steps:
[0026] Step 110, cache at least one redo log of the storage node as a replay log.
[0027] Wherein, the storage node may be a node storing data in the distributed database, and the distributed database includes at least one storage node, and the data stored in each storage node may be the same or different. Among them, the redo log can be composed of two or more pre-allocated files, and all changes in the distributed database can be stored in these files. The...
Embodiment 2
[0041] figure 2 It is a flow chart of a storage node recovery method provided by Embodiment 2 of the present invention. The embodiment of the present invention is based on the embodiment of the above invention, and the space occupation is reduced by periodically clearing and replaying logs. See figure 2 , the storage node recovery method provided by the embodiment of the present invention includes the following steps:
[0042] Step 200, initialize the global control information of the storage node, the global control information includes at least one of the following: playback log buffer space, playback log control items, number of valid control items, starting position of valid control items, starting position of cache space, The end position of the cache space, the size of the used cache space, the size of the free cache space, and the sequence number of the processed log.
[0043] Step 210: Encapsulate the obtained redo log into a replay log, and send the replay log to t...
Embodiment 3
[0079] Figure 4 is a schematic structural diagram of a storage node recovery device provided in Embodiment 3 of the present invention, Figure 4 The illustrated apparatus can execute the method for restoring a storage node provided by any embodiment of the present invention, and has corresponding function modules and / or beneficial effects for executing the method. The apparatus may be implemented by software and / or hardware, and specifically includes: a log cache module 301 , an archive log module 302 and a recovery execution module 303 .
[0080] The log caching module 301 is configured to cache at least one redo log of the storage node as a replay log.
[0081] The archiving log module 302 is configured to determine at least one archiving task according to the replay log when it is determined that the storage node is faulty.
[0082] The restoration execution module 303 is configured to send each of the archiving tasks to the storage node if the communication of the stora...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com