A method, system, device and storage medium for storing data on disk based on Monitor
By judging whether the data is successfully downloaded to the disk in the Monitor and pulling data from other Monitors, the problem of loss caused by the failure of the data disk is solved and the fault tolerance rate and stability of the system are improved.
Patent Information
- Application Number
- CN202210130373.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-11
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-02-11
AI Technical Summary
In the Ceph distributed storage system, a power outage or data quiescing error when the Monitor data is being written to the disk may cause the disk writing to fail, resulting in data loss and business anomalies.
By judging whether the data is successfully placed on the disk, if not, the abnormal monitor is set not to participate in the election, and the required data is pulled from other monitors. If the pull is successful, the data is placed on the disk, otherwise the data application message is discarded.
This ensures that the Monitor can pull the required information from other Monitors when data is missing, ensuring stable business operation and significantly increasing the fault tolerance and stability of the system.
Smart Images

Figure CN114546766B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and more particularly to a method, system, device and storage medium for storing data on a disk based on Monitor. Background Art
[0002] Monitor is the manager of cluster status. The main task of Monitor is to maintain the consistency of cluster view. Paxos algorithm (protocol) is used to maintain consistency and instantiated into the database for subsequent access. Monitor consists of three parts: K / V storage, paxos and PaxosService. K / V storage is used for the persistence layer storage layer of Monitor data. Paxos provides consistent data access logic for PaxosService layer. Each PaxosService represents a state information of the cluster. PaxosServer is actually an abstraction, including: PGMonitor, OSDMonitor, MDSMonitor, AuthMonitor, LogMonitor, etc.
[0003] In order to avoid single point failures or performance hotspot issues, multiple Monitor services are generally deployed in the production environment. To ensure the consistency of cluster information, the Monitor cluster requires a Leader Monitor to decide on information changes, which is the election of the Monitor. During the operation of the Monitor, all write operations are completed through the Leader Monitor issuing a proposal. If a non-Leader Monitor receives an update request, it will forward the request to the Leader Monitor to ensure the consistency of data in the Monitor cluster. The Monitor data is deployed on Nvme. If a power outage or data silent error occurs during the disk placement process, the disk placement may fail. At this time, there is a corresponding version number in the Map, but the data of this version has not been successfully placed on the disk. Therefore, when the Monitor obtains the data of this version, it will not get the desired data, and an exception will be thrown, resulting in a core file.
[0004] It can be seen that how to effectively avoid the failure of Monitor data to disk caused by power failure or data silent error when it is written to disk in Ceph distributed storage system is an urgent problem to be solved. Summary of the invention
[0005] In view of the above problems, the purpose of the present invention is to provide a Monitor-based data disk method, system, device and storage medium, which can enable the Monitor to pull the required information from other Monitors when data is missing, thereby ensuring the stable operation of the business and greatly increasing the fault tolerance and stability of the system.
[0006] To achieve the above object, the present invention is implemented through the following technical solutions: A method for storing data on a disk based on Monitor, comprising:
[0007] Read the data and determine whether the data is successfully written to the disk by judging whether the data exists;
[0008] If the data is not successfully written to the disk, set the abnormal monitor not to participate in the election and then initiate an election;
[0009] Set the abnormal Monitor to data modification state and pull the required data from other Monitors;
[0010] If the data is pulled successfully, the data of the abnormal Monitor will be written to the disk;
[0011] If data retrieval fails, the corresponding data request message will be discarded.
[0012] Furthermore, the setting of initiating an election after the abnormal Monitor does not participate in the election includes:
[0013] Set the electing_me option of the abnormal Monitor to false so that the abnormal Monitor does not participate in the election.
[0014] Traverse the monmap and send an election message to each Monitor member in the monmap.
[0015] Further, the abnormal Monitor is set to a data modification state, and required data is pulled from other Monitors, including:
[0016] Set the abnormal Monitor to data modification state;
[0017] The abnormal Monitor traverses the monmap and sends a message requesting the corresponding data to each Monitor member in the monmap;
[0018] Determine whether the returned information contains the corresponding data requested;
[0019] If yes, the data is pulled successfully, otherwise, the data is pulled failed.
[0020] Furthermore, the storing of data of the abnormal Monitor to a disk also includes:
[0021] Set the electing_me option of the exception Monitor to true;
[0022] Re-initiate the election and send a Propose message to each Monitor member by traversing the monmap again.
[0023] Further, the discarding of the corresponding data request message includes:
[0024] Save the corresponding data request message to the callback queue.
[0025] Correspondingly, the present invention also discloses a data storage system based on Monitor, comprising:
[0026] The reading module is used to read data and determine whether the data is successfully written to the disk by judging whether the data exists;
[0027] Abnormal Monitor control module, used to set abnormal Monitors not to participate in elections and then initiate elections;
[0028] The data pulling module is used to set the abnormal Monitor to the data modification state and pull the required data from other Monitors;
[0029] The storage module is used to store data of abnormal monitors on disk after data is successfully pulled;
[0030] The exception handling module is used to discard the corresponding data request message when data pulling fails.
[0031] Furthermore, the abnormal monitor control module includes:
[0032] The setting unit is used to set the electing_me option of the abnormal Monitor to false so that the abnormal Monitor does not participate in the election;
[0033] The election message sending unit is used to traverse the monmap and send an election message to each Monitor member in the monmap.
[0034] Furthermore, the data pulling module includes:
[0035] A state modification unit, used to set the abnormal monitor to a data modification state;
[0036] The data synchronization unit is used for abnormal monitors to traverse the monmap and send a message requesting the corresponding data to each monitor member in the monmap;
[0037] The determination unit is used to determine whether the returned information contains the corresponding data of the request.
[0038] Accordingly, the present invention discloses a data storage device based on Monitor, comprising:
[0039] Memory, used to store the data disk program based on Monitor;
[0040] A processor is used to implement the steps of the Monitor-based data storage method as described in any one of the above items when executing the Monitor-based data storage program.
[0041] Accordingly, the present invention discloses a readable storage medium, on which a Monitor-based data storage program is stored. When the Monitor-based data storage program is executed by a processor, the steps of the Monitor-based data storage method as described in any of the above items are implemented.
[0042] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention discloses a method, system, device and storage medium for data storage based on Monitor, which is mainly aimed at the case where a power failure or data silence error occurs when the Monitor stores data on the disk, resulting in the loss of the corresponding data of the Monitor. When a service accesses the data, an exception will be thrown and a core file will appear. When the Monitor cannot access the required data, the Monitor is asked to send election information to other Monitors and exclude the abnormal Monitor. That is, the normal operation of the business is guaranteed first. At this time, the state of the abnormal Monitor is changed to the repair state. Then the abnormal Monitor pulls the data he needs from other normal Monitors, and after completion, it changes its own state to the normal state and requests to re-initiate the election. The present invention enables the Monitor to pull the required information from other Monitors in the event of data missing, thereby ensuring the stable operation of the business and greatly increasing the fault tolerance and stability of the system.
[0043] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0045] Attached Figure 1 It is a method flow chart of a specific implementation mode of the present invention.
[0046] Attached Figure 2 It is a system structure diagram of a specific implementation mode of the present invention.
[0047] In the figure, 1 is a reading module; 2 is an abnormal monitor control module; 3 is a data pulling module; 4 is a storage module; 5 is an abnormal handling module; 6 is a setting unit; 7 is an election message sending unit; 8 is a state modification unit; 9 is a data synchronization unit; and 10 is a determination unit. DETAILED DESCRIPTION
[0048] The core of the present invention is to provide a method for data storage based on Monitor. In the prior art, during the operation of Monitor, all write operations are completed by the Leader Monitor issuing a proposal. If a non-Leader Monitor receives an update request, it will forward the request to the Leader Monitor to ensure the consistency of data in the Monitor cluster. The Monitor data is deployed on Nvme. If a power outage or data silent error occurs during the storage process, storage failure may occur. At this time, there is a corresponding version number in the Map, but the data of this version has not been successfully stored on the disk. Therefore, when the Monitor obtains the data of this version, it will not obtain the desired data, and an exception will be thrown at this time, and a core file will appear.
[0049] The Monitor-based data storage method provided by the present invention first determines whether the data is successfully stored on the disk by judging whether the data exists when reading the data. If the data is not successfully stored on the disk, the abnormal Monitor is set not to participate in the election and then an election is initiated. Then, the abnormal Monitor is set to a data modification state, and the required data is pulled from other Monitors. At this time, if the data is pulled successfully, the data is stored on the abnormal Monitor; if the data is pulled unsuccessfully, the corresponding data request message is discarded. It can be seen that the present invention enables the Monitor to pull the required information from other Monitors in the event of data missing, thereby ensuring the stable operation of the business and greatly increasing the fault tolerance and stability of the system.
[0050] In order to enable those skilled in the art to better understand the scheme of the present invention, the names involved in the present invention are explained as follows:
[0051] Ceph: A unified, distributed storage system designed for excellent performance, reliability, and scalability.
[0052] Monitor: Manager of cluster status.
[0053] K / V storage: key-value pair storage.
[0054] Paxos: Paxos algorithm is a consensus algorithm based on message passing proposed by Leslie Lambert in 1990. The problem solved by Paxos algorithm is how a distributed system can reach a consensus on a certain value (resolution). A typical scenario is that in a distributed database system, if the initial state of each node is consistent and each node executes the same sequence of operations, then they can finally get a consistent state. In order to ensure that each node executes the same sequence of commands, a "consistency algorithm" needs to be executed on each instruction to ensure that the instructions seen by each node are consistent. A general consistency algorithm can be applied in many scenarios and is an important issue in distributed computing. Therefore, the research on consistency algorithms has not stopped since the 1980s. There are two models for node communication: shared memory and message passing. Paxos algorithm is a consistency algorithm based on the message passing model.
[0055] PaxosService: used to represent the status information of the cluster.
[0056] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] Embodiment 1:
[0058] like Figure 1 As shown, this embodiment provides a method for storing data on a disk based on Monitor, including the following steps:
[0059] S1: Read data.
[0060] S2: Determine whether the data exists. If the data exists, the disk is successfully written and the process goes to step S3. If the data does not exist, the disk is failed and the process goes to step S4.
[0061] When power failure or data silence error causes data to fail to be written to the disk, this will cause information asymmetry. For example, in the version reserved by osdmap, there is a corresponding version, but the data of this version is not written to the disk successfully.
[0062] S3: Process normally until the data is saved to disk.
[0063] S4: Set abnormal monitors not to participate in the election and then initiate an election.
[0064] First, set the electing_me option of the abnormal Monitor to false so that the abnormal Monitor does not participate in the election. At this time, traverse the monmap and send an election message to each Monitor member in the monmap. The purpose of this step is to ensure the normal operation of the business.
[0065] S5: Set the abnormal Monitor to the data modification state and pull the required data from other Monitors.
[0066] Specifically, first, the abnormal Monitor is set to the data modification state. At this time, the abnormal Monitor traverses the monmap and sends a message requesting the corresponding data to each Monitor member in the monmap.
[0067] S6: Determine whether the returned information contains the requested corresponding data. If yes, go to step S7. Otherwise, go to step S8.
[0068] S7: Data is pulled successfully, and the data of the abnormal monitor is written to the disk.
[0069] Specifically, first set the electing_me option of the abnormal Monitor to true; then re-initiate the election and send a Propose message to each Monitor member by traversing the monmap again.
[0070] S8: Data retrieval fails, and the corresponding data request message is discarded.
[0071] If the returned information does not contain the requested data, the request for the data is discarded. If the version number of the data is not in the first_commit and last_commit range of other monitors, it can be determined that the version of the monitor is too old and other monitors have already pruned the older version of the data.
[0072] When Monitor finds that there is no corresponding data, it first saves the message requesting the data to the callback queue, and then processes the message after it returns to normal.
[0073] This embodiment provides a method for storing data on a disk based on a monitor, which is mainly aimed at the case where a power outage or data silence error occurs when the monitor stores data on the disk, resulting in the loss of the corresponding data of the monitor. When a service accesses the data, an exception will be thrown and a core file will appear. When the monitor cannot access the required data, the monitor is asked to send election information to other monitors and exclude the abnormal monitor. That is, the normal operation of the business is guaranteed first. At this time, the status of the abnormal monitor is changed to the repair status. Then the abnormal monitor pulls the data it needs from other normal monitors, and after completion, it changes its own status to the normal status and requests to re-initiate the election.
[0074] Embodiment 2:
[0075] Based on Example 1, Figure 2 As shown, the present invention also discloses a data disk storage system based on Monitor, including: a reading module 1, an abnormal Monitor control module 2, a data pulling module 3, a storage module 4 and an abnormal processing module 5.
[0076] The reading module 1 is used to read data and determine whether the data is successfully written to the disk by judging whether the data exists.
[0077] The abnormal monitor control module 2 is used to set the abnormal monitor not to participate in the election and then initiate the election. The abnormal monitor control module 2 includes: a setting unit 6 and an election message sending unit 7. The setting unit 6 is used to set the electing_me option of the abnormal monitor to false so that the abnormal monitor does not participate in the election; the election message sending unit 7 is used to traverse the monmap and send an election message to each monitor member in the monmap.
[0078] The data pulling module 3 is used to set the abnormal Monitor to the data modification state and pull the required data from other Monitors. The data pulling module 3 includes: a state modification unit 8, a data synchronization unit 9 and a determination unit 10. The state modification unit 8 is used to set the abnormal Monitor to the data modification state; the data synchronization unit 9 is used for the abnormal Monitor to traverse the monmap and send a message requesting the corresponding data to each Monitor member in the monmap; the determination unit 10 is used to determine whether the returned information contains the requested corresponding data.
[0079] Storage module 4 is used to store data of abnormal Monitor after data is successfully pulled. Specifically, it is used to: first set the electing_me option of the abnormal Monitor to true; then re-initiate the election and send a Propose message to each Monitor member by traversing the monmap again.
[0080] The exception handling module 5 is used to discard the corresponding data application message after the data pulling fails. Specifically, the message for applying for the data can be saved to the callback queue first, and then processed after returning to normal.
[0081] This embodiment provides a data storage system based on Monitor, which enables Monitor to pull required information from other Monitors when data is missing, thereby ensuring stable operation of the business and greatly improving the fault tolerance and stability of the system.
[0082] Embodiment three:
[0083] This embodiment discloses a data storage device based on Monitor, including a processor and a memory; wherein the processor implements the following steps when executing a data storage program based on Monitor stored in the memory:
[0084] 1. Read the data and determine whether the data is successfully written to the disk by judging whether the data exists. If the data exists, the data is successfully written to the disk and go to step 2. If the data does not exist, the data is failed and go to step 3.
[0085] 2. Process normally until the data is saved to disk.
[0086] 3. Set the abnormal monitor not to participate in the election and then initiate the election.
[0087] 4. Set the abnormal Monitor to data modification status and pull the required data from other Monitors.
[0088] 5. Determine whether the returned information contains the requested corresponding data. If so, go to step 6. Otherwise, go to step 7.
[0089] 6. The data is pulled successfully, and the data of the abnormal monitor is stored on the disk.
[0090] 7. If data retrieval fails, the corresponding data request message will be discarded.
[0091] Furthermore, the Monitor-based data storage device in this embodiment may further include:
[0092] The input interface is used to obtain the Monitor-based data storage program imported from the outside, and save the obtained Monitor-based data storage program to the memory. It can also be used to obtain various instructions and parameters transmitted by external terminal devices and transmit them to the processor so that the processor can use the above various instructions and parameters to carry out corresponding processing. In this embodiment, the input interface can specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.
[0093] The output interface is used to output various data generated by the processor to the terminal device connected thereto, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface may specifically include but is not limited to a USB interface, a serial interface, etc.
[0094] The communication unit is used to establish a remote communication connection between the Monitor-based data disk device and the external server so that the Monitor-based data disk device can mount the image file to the external server. In this embodiment, the communication unit may specifically include but is not limited to a remote communication unit based on wireless communication technology or wired communication technology.
[0095] The keyboard is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.
[0096] The display is used to display the relevant information of the server power supply line short circuit locating process in real time.
[0097] The mouse can be used to assist users in inputting data and simplify user operations.
[0098] This embodiment provides a device for flushing data to disk based on a monitor, which can effectively deal with the situation where a monitor fails to flush data to disk due to power failure or data silence error, thereby causing data reading failure, and effectively ensures data consistency and system stability.
[0099] Embodiment 4:
[0100] This embodiment also discloses a readable storage medium, and the readable storage medium mentioned here includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable hard disk, CD-ROM or any other form of storage medium known in the technical field. The readable storage medium stores a data storage program based on Monitor, and when the data storage program based on Monitor is executed by the processor, the following steps are implemented:
[0101] 1. Read the data and determine whether the data is successfully written to the disk by judging whether the data exists. If the data exists, the data is successfully written to the disk and go to step 2. If the data does not exist, the data is failed and go to step 3.
[0102] 2. Process normally until the data is saved to disk.
[0103] 3. Set the abnormal monitor not to participate in the election and then initiate the election.
[0104] 4. Set the abnormal Monitor to data modification status and pull the required data from other Monitors.
[0105] 5. Determine whether the returned information contains the requested corresponding data. If so, go to step 6. Otherwise, go to step 7.
[0106] 6. The data is pulled successfully, and the data of the abnormal monitor is stored on the disk.
[0107] 7. If data retrieval fails, the corresponding data request message will be discarded.
[0108] This embodiment provides a readable storage medium, which is mainly used for the case where a power outage or data silence error occurs when the Monitor is written to the disk, resulting in the loss of the corresponding data of the Monitor. When a service accesses the data, an exception will be thrown and a core file will appear. When the Monitor cannot access the required data, the Monitor will send election information to other Monitors and exclude the abnormal Monitor. That is, the normal operation of the business is guaranteed first. At this time, the status of the abnormal Monitor is changed to the repair status. Then the abnormal Monitor pulls the data it needs from other normal Monitors, and after completion, it changes its own status to the normal status and requests to re-initiate the election.
[0109] In summary, the present invention enables a Monitor to pull required information from other Monitors when data is missing, thereby ensuring stable operation of the business and greatly increasing the fault tolerance and stability of the system.
[0110] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. As for the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0111] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0112] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0114] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.
[0115] Similarly, each processing unit in each embodiment of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units may be integrated into one functional module.
[0116] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0117] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0118] The above is a detailed introduction to the Monitor-based data disk method, system, device and readable storage medium provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for storing data on a disk based on Monitor, characterized in that: include: Read the data and determine whether the data is successfully written to the disk by judging whether the data exists; If the data is not successfully written to the disk, set the abnormal monitor not to participate in the election and then initiate an election; Set the abnormal Monitor to data modification state and pull the required data from other Monitors; If the data is pulled successfully, the data of the abnormal Monitor will be written to the disk; If data retrieval fails, the corresponding data request message is discarded; The above setting abnormal monitor does not participate in the election and initiates the election, including: Set the electing_me option of the abnormal Monitor to false so that the abnormal Monitor does not participate in the election. Traverse the monmap and send election messages to each Monitor member in the monmap; The abnormal Monitor is set to the data modification state, and the required data is pulled from other Monitors, including: Set the abnormal Monitor to data modification state; The abnormal Monitor traverses the monmap and sends a message requesting the corresponding data to each Monitor member in the monmap; Determine whether the returned information contains the corresponding data requested; If yes, the data is pulled successfully, otherwise, the data is pulled failed.
2. The method for storing data on a disk based on Monitor according to claim 1, characterized in that: The storing of data of the abnormal Monitor to a disk also includes: Set the electing_me option of the exception Monitor to true; Re-initiate the election and send a Propose message to each Monitor member by traversing the monmap again.
3. The method for storing data on a disk based on Monitor according to claim 1, characterized in that: The discarding of the corresponding data request message includes: Save the corresponding data request message to the callback queue.
4. A data storage system based on Monitor, characterized in that: include: The reading module is used to read data and determine whether the data is successfully stored on the disk by judging whether the data exists; the abnormal monitor control module is used to set the abnormal monitor not to participate in the election and initiate the election; The data pulling module is used to set the abnormal Monitor to the data modification state and pull the required data from other Monitors; The storage module is used to store data of abnormal monitors on disk after data is successfully pulled; The exception handling module is used to discard the corresponding data request message when data pulling fails; The abnormal monitor control module includes: The setting unit is used to set the electing_me option of the abnormal Monitor to false so that the abnormal Monitor does not participate in the election; The election message sending unit is used to traverse the monmap and send election messages to each Monitor member in the monmap; The data pulling module includes: A state modification unit, used to set the abnormal monitor to a data modification state; The data synchronization unit is used for abnormal monitors to traverse the monmap and send a message requesting the corresponding data to each monitor member in the monmap; The determination unit is used to determine whether the returned information contains the corresponding data of the request.
5. A data storage device based on Monitor, characterized in that: include: Memory, used to store the data disk program based on Monitor; A processor is used to implement the steps of the Monitor-based data storage method as claimed in any one of claims 1 to 3 when executing the Monitor-based data storage program.
6. A readable storage medium, characterized in that: The readable storage medium stores a Monitor-based data storage program, and when the Monitor-based data storage program is executed by the processor, the steps of the Monitor-based data storage method according to any one of claims 1 to 3 are implemented.
