CN110895521A - OSD and MON connection method, device, equipment and storage medium - Google Patents

OSD and MON connection method, device, equipment and storage medium Download PDF

Info

Publication number
CN110895521A
CN110895521A CN201911083215.3A CN201911083215A CN110895521A CN 110895521 A CN110895521 A CN 110895521A CN 201911083215 A CN201911083215 A CN 201911083215A CN 110895521 A CN110895521 A CN 110895521A
Authority
CN
China
Prior art keywords
mon
osd
target
map
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201911083215.3A
Other languages
Chinese (zh)
Inventor
李彦博
孟祥瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201911083215.3A priority Critical patent/CN110895521A/en
Publication of CN110895521A publication Critical patent/CN110895521A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0796Safety measures, i.e. ensuring safe condition in the event of error, e.g. for controlling element
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method for connecting OSD and MON, which comprises the following steps: when the target OSD is in fault, selecting a target MON meeting the conditions according to a MON list and a field identification in a MON map stored by the target OSD; wherein, the field mark is an mark which is added in advance in the MON map by the MON and represents whether the MON state is normal or not, and when the MON state changes, the MON map stored by each OSD in the Ceph is updated; and sending connection information to the target MON so that the target OSD establishes connection with the target MON. Therefore, the method and the device improve the efficiency of connecting the OSD to the normal MON, so that when the OSD fails, the MON can be informed to add the fault mark to the MON as soon as possible, and the time for cutting off the flow is reduced. The application also discloses a connecting device, equipment and a computer readable storage medium for OSD and MON, which have the beneficial effects.

Description

OSD and MON connection method, device, equipment and storage medium
Technical Field
The present invention relates to the field of distributed file systems, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for connecting an OSD and a MON.
Background
For a Ceph (distributed file system) cluster, the core components of the Ceph cluster include an OSD (Object-based Storage Device) and a MON (monitor), which is a monitor of the cluster that monitors all the resources of the cluster. When the target OSD fails, the MON needs to be informed, adds a fault mark to the target OSD, such as a down state, and pushes the updated OSD map to other nodes, and after the other nodes receive the updated OSD map, the card does not wait for the request of the target OSD any more, and does not perform read-write operation on the fault OSD. Therefore, the fault mark is added to the target OSD quickly, and the current interruption time caused by the fault of the target OSD can be greatly reduced.
It will be appreciated that the target SOD needs to be connected to the MON before the target OSD is tagged with a fault by the MON. In the prior art, the process of establishing connection between the target OSD and the MON is as follows:
the target OSD traverses the MON list in the MON map stored by the target OSD, selects the first MON, records the selected MON, and starts the process of establishing connection: if the target OSD receives the response information fed back by the MON, the connection is successfully established, and the process is finished; if the target OSD does not receive the response of the MON after the preset waiting time (such as 3 seconds), the connection is considered to be a problem, so the target OSD traverses the MON list again, filters the MON selected last time, selects another MON from the MON list, and starts the connection establishing process again. However, when the cluster size of the distributed file system is large, there may be a plurality of MONs having faults or being in a down state, and therefore, the target OSD needs to perform a plurality of reconnection operations when selecting a MON to establish a connection, that is, the target OSD wastes a large amount of time in the process of connecting to a normal MON, so that the efficiency of connecting the target OSD to the normal MON is low; further, when the target OSD malfunctions, the MON cannot be notified as soon as possible to add a malfunction flag to itself, so that the time for cutting off the flow is long.
Therefore, how to improve the efficiency of connecting the OSD to the normal MON so that when the OSD fails, the MON can be informed to add a fault flag to itself as soon as possible, thereby reducing the time for cutting off the current is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a method for connecting an OSD and a MON, which can improve the efficiency of connecting the OSD to a normal MON, so that when the OSD fails, the MON can be notified to add a fault flag to itself as soon as possible, thereby reducing the time for cutting off the flow; another object of the present invention is to provide a device, an apparatus and a computer readable storage medium for connecting an OSD and a MON, all of which have the above advantages.
In order to solve the above technical problem, the present invention provides a method for connecting an OSD and a MON, including:
when the target OSD has a fault, selecting a target MON meeting the conditions according to the MON list in the MON map stored by the target OSD and the field identification;
the field identification is an identification which is added in advance by MON in the MON map and represents whether the MON state is normal or not, and when the MON state changes, the MON map stored by each OSD in the Ceph is updated;
sending connection information to the target MON to enable the target OSD to establish a connection with the target MON.
Preferably, the updating the montap stored in each OSD in Ceph when the state of the MON changes includes:
each OSD in the Ceph registers subscription information of the MON map to the MON in advance;
when the state of the MON changes, the MON sends the updated MON map to each OSD.
Preferably, the updating the montap stored in each OSD in Ceph when the state of the MON changes includes:
when the state of the MON changes, modifying the corresponding field identification in the MON map;
the MON sends an updated MON map to the pre-selected OSD;
and each preselected OSD sends the MON map to other OSD in the Ceph according to the communication rule among OSD.
Preferably, the process of selecting a qualified target MON according to the MON list stored in the MON map and the field identifier when the target OSD fails specifically includes:
and when the target OSD has a fault, selecting the target MON meeting the conditions according to the MON list and the field identification in the MON map stored by the target OSD and excluding the MON corresponding to the node of the target OSD.
Preferably, the process of selecting a qualified target MON according to the MON list stored in the MON map and the field identifier when the target OSD fails specifically includes:
and when the target OSD has a fault, selecting the target MON meeting the conditions according to the MON list and the field identification in the MON map stored by the target OSD, and excluding the MON corresponding to the node of the target OSD and the MON selected last time.
In order to solve the above technical problem, the present invention further provides a connection device for an OSD and a MON, including:
the marking module is used for enabling MON to add a field identifier which represents whether the MON state is normal or not in the MON map in advance;
the updating module is used for updating the MONmap stored by each OSD in the Ceph when the state of the MON changes;
the selection module is used for selecting the target MON meeting the conditions according to the MON list in the MON map stored by the selection module and the field identification when the target OSD has a fault;
and the connection module is used for sending connection information to the target MON so that the target OSD establishes connection with the target MON.
Preferably, the update module specifically includes:
each OSD in the Ceph registers subscription information of the MON map to the MON in advance;
when the state of the MON changes, the MON sends the updated MON map to each OSD.
Preferably, the update module specifically includes:
when the state of the MON changes, modifying the corresponding field identification in the MON map;
the MON sends an updated MON map to the pre-selected OSD;
and each preselected OSD sends the MON map to other OSD in the Ceph according to the communication rule among OSD.
Preferably, the selection module is specifically a first selection module, and the first selection module is configured to, when the target OSD fails, select a target MON that meets a condition according to the MON list and the field identifier in the MON map stored in the first selection module, and exclude a MON corresponding to a node of the first selection module.
Preferably, the selecting module is specifically a second selecting module, and the second selecting module is configured to, when the target OSD fails, select a target MON that meets a condition according to the MON list and the field identifier in the MON map stored in the second selecting module, and exclude the MON corresponding to the node of the second selecting module and the MON selected last time.
In order to solve the above technical problem, the present invention further provides a connection device for OSD and MON, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any one of the OSD and MON connection methods when the computer program is executed.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of any one of the methods for connecting the OSD and the MON.
The invention provides a method for connecting OSD and MON, which adds a field mark indicating whether the MON state is normal or not in the MON map in advance through MON, and updates the MONmap stored in each OSD in Ceph when the MON state changes; therefore, when the target OSD has a fault, selecting the target MON which meets the condition according to the MON list and the field identification in the MON map stored by the target OSD; and then sends connection information to the target MON so that the target OSD establishes a connection with the target MON. Therefore, when the target OSD selects the MON to connect, the MON in an abnormal state is filtered, the target MON meeting the conditions is selected to connect, the number of times of reconnecting the MON can be reduced, the time of connecting the target OSD to the normal MON is shortened, and the efficiency of connecting the target OSD to the normal MON is improved.
In order to solve the technical problem, the invention also provides a device, equipment and a computer readable storage medium for connecting the OSD and the MON, which have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for connecting an OSD and a MON according to an embodiment of the present invention;
fig. 2 is a structural diagram of a connection device for OSD and MON according to an embodiment of the present invention;
fig. 3 is a structural diagram of a connection device for OSD and MON according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the embodiment of the invention is to provide a method for connecting the OSD and the MON, which can improve the efficiency of connecting the OSD to the normal MON, so that when the OSD fails, the MON can be informed to add a fault mark to the MON as soon as possible, thereby reducing the time for cutting off the flow; another core of the present invention is to provide a device, an apparatus and a computer readable storage medium for connecting an OSD and a MON, all of which have the above advantages.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a connection method between an OSD and a MON according to an embodiment of the present invention. As shown in fig. 1, a method for connecting an OSD and a MON includes:
s10: when the target OSD is in fault, selecting a target MON meeting the conditions according to a MON list and a field identification in a MON map stored by the target OSD;
wherein, the field mark is an mark which is added in advance in the MON map by MON and represents whether the MON state is normal, and when the MON state changes, the MON map stored in each OSD in the Ceph is updated.
Specifically, MON adds a flag indicating whether the MON state is normal or not to the MON map in advance. That is, the MON map in the present embodiment refers to a structure body containing a MON list and field identifications.
It should be noted that the field identifier is used to indicate whether the state of the MON is normal, for example, the field identifier may be identified by using numbers, letters, or symbols, and the specific type of the field identifier is not limited in this embodiment. In actual operation, only the normal/abnormal MON may be identified, and the non-identified MON is the abnormal/normal MON. When the state of MON changes, such as from normal to abnormal, or from abnormal to normal, MON modifies the corresponding field mark in MON map; also, the abnormal state includes a fault and a downtime.
When a target OSD fails, the MON needs to be notified so that the MON adds a fault flag to the target OSD. That is, a normal MON needs to be selected from the MON list in the MON map to establish a connection.
Specifically, the OSD selects a target MON that meets the condition by traversing the MON list according to the MON list stored in the MON map and combining the field identification of each MON in the MON map. It is understood that the object MON meeting the condition refers to the MON selected to be in the normal state after being screened by the preset condition, and the preset condition at least includes that the corresponding field of the MON is identified to be in the normal state.
S20: and sending connection information to the target MON so that the target OSD establishes connection with the target MON.
Specifically, after the target MON that meets the condition is determined, the connection information is transmitted to the target MON. Since the target MON is the selected MON in the normal state, the target MON can feed back the connection information sent by the target OSD after receiving the connection information, and the target OSD successfully establishes a connection with the target MON after receiving the response information fed back by the target MON.
Further, the target OSD may notify the target MON that there is a failure of itself and request the target MON to add a failure flag to itself.
The embodiment of the invention provides a method for connecting OSD and MON, which comprises the steps of adding a field identifier which represents whether the MON state is normal or not in the MON map in advance through MON, and updating the MON map stored by each OSD in Ceph when the MON state changes; therefore, when the target OSD has a fault, selecting the target MON which meets the condition according to the MON list and the field identification in the MON map stored by the target OSD; and then sends connection information to the target MON so that the target OSD establishes a connection with the target MON. Therefore, when the target OSD selects the MON to connect, the MON in an abnormal state is filtered, the target MON meeting the conditions is selected to connect, the number of times of reconnecting the MON can be reduced, the time of connecting the target OSD to the normal MON is shortened, and the efficiency of connecting the target OSD to the normal MON is improved.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, when the state of the MON changes, the process of updating the MON map stored in each OSD in the Ceph specifically includes:
each OSD in the Ceph registers subscription information of the MON map to the MON in advance;
when the state of the MON changes, the MON sends an updated MON map to each OSD.
In this embodiment, first, each OSD in the Ceph needs to register subscription information of the MON map with the MON in advance, which indicates that the registered OSDs are willing to receive the updated MON map sent by the MON, that is, the MON may update the MON map with the registered OSD when the MON map is updated subsequently.
It can be understood that, in actual operation, according to the actual requirement of Ceph, the subscription information of the MON map registered by some OSDs in Ceph to the MON may be selected. Specifically, when the state of the MON changes, the MON modifies the corresponding field identifier in the MON map, and then the MON sends the updated MON map to each OSD.
Therefore, in the embodiment, the OSD is enabled to register the subscription information of the MON map in advance, so that the MON can actively send the updated MON map to the OSD when the MON map is updated, and the convenience of obtaining the updated MON map by each OSD in the Ceph is improved.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, when the state of the MON changes, the process of updating the MON map stored in each OSD in the Ceph specifically includes:
when the state of MON changes, modifying the corresponding field identification in MON map;
the MON sends an updated MON map to the pre-selected OSD;
each preselected OSD sends a MON map to each other OSD in Ceph according to the communication rules among the OSDs.
Specifically, in this embodiment, first, when the state of the MON changes, the MON modifies the corresponding field identifier in the MON map, and therefore, the MON map is updated correspondingly. Then, a part of the OSD is preselected from Ceph, and the MON pushes the updated MON map to the preselected OSD. More specifically, the part of the OSD is subscription information of the MON map registered with the MON in advance, so that the MON pushes the updated MON map to the registered OSD when the MON map is updated. Specifically, the method for determining the preselected OSD from the Ceph may be selected by a pseudo-random algorithm, which is not limited in this embodiment.
After the preselected OSD receives the updated MON map, the preselected OSD may be used to synchronize the MONmap to other OSDs in the Ceph. The other OSDs herein refer to the remaining OSDs of the Ceph except for the preselected OSD. Specifically, each preselected OSD sends a MON map to each other OSD in the Ceph according to the communication rule between the OSDs, so that each OSD in the Ceph updates the MON map stored in the OSD.
It can be understood that, in the present embodiment, the updated MON map is sent to the preselected OSD by the MON; then, the selected OSD sends MON map to other OSD in Ceph according to communication rule between OSD. Therefore, when the MON map is updated, the MON only needs to send the updated MON map to the pre-selected OSD, and the situation that information needs to be transmitted to a large number of OSD in a short time to influence other task processes in the Ceph and cause system instability is avoided.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, when the target OSD fails, a process of selecting a target MON that meets the condition according to a MON list and a field identifier in a MON map stored in the target OSD specifically includes:
when the target OSD is in fault, according to the MON list and the field identification in the MON map stored by the target OSD, the MON corresponding to the node of the target OSD is eliminated, and the target MON meeting the conditions is selected.
Specifically, it is considered that in actual operation, if the MON and the target OSD belong to the same node, and the node is in a down state, the target OSD sends connection information to the MON, and the MON cannot feed back the connection information; and, the target OSD reselects MON and re-establishes connection only after a preset waiting time (generally 3 seconds). Thus, the target OSD will delay at least the preset wait time while looking for MON to establish a connection time.
In this embodiment, when the target OSD fails, the target OSD further excludes MONs corresponding to its own node according to the MON list and field identification in the MON map stored in the target OSD, and then selects a MON that meets the condition from the remaining MONs in the MON list.
Therefore, in the present embodiment, a situation that the connection between the target OSD and the MON fails due to the fact that the node where the target OSD is located is down and the target OSD and the selected MON belong to the same node can be relatively avoided, and therefore, the efficiency of establishing the connection between the target OSD and the normal target MON can be further improved.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, when the target OSD fails, a process of selecting a target MON that meets the condition according to a MON list and a field identifier in a MON map stored in the target OSD specifically includes:
when the target OSD is in fault, according to the MON list and the field identification in the MON map stored by the target OSD, the MON corresponding to the node of the target OSD and the MON selected last time are excluded, and the target MON meeting the conditions is selected.
Specifically, in the actual operation, considering that the probability that the MON in Ceph that has last established a connection with any OSD is in the current fault/downtime condition is higher, in this embodiment, when the target OSD has a fault, a process of selecting a qualified target MON according to the MON list and the field identification in the MON map stored in the target OSD further excludes the MON selected last time, and then selects the qualified target MON from the remaining MONs.
It should be noted that, if there are no MONs remaining in the MON list after the MONs in the abnormal state, the MONs corresponding to the node of the target OSD and the MONs selected last are excluded according to the field identifier, at this time, in order to enable the target OSD to notify a fault condition of a certain MON, a normal target MON may be determined according to whether the MON selected last is normal and whether the MON corresponding to the node of the target OSD is normal, so that the target OSD establishes a connection with the target MON.
Therefore, in this embodiment, by further eliminating the last selected MON with a relatively higher fault/downtime probability, the probability that the state of the target MON selected this time is normal can be relatively increased, and thus the efficiency of establishing connection between the target OSD and the normal MON is increased.
The above detailed description is given to the embodiment of the method for connecting an OSD and a MON according to the present invention, and the present invention further provides a device, an apparatus, and a computer-readable storage medium for connecting an OSD and a MON according to the method.
Fig. 2 is a structural diagram of a connection device of an OSD and a MON according to an embodiment of the present invention, and as shown in fig. 2, the connection device of the OSD and the MON includes:
a marking module 21, configured to add, by the MON, a field identifier indicating whether the MON state is normal to the MON map in advance;
an updating module 22, configured to update the MON map stored in each OSD in the Ceph when the state of the MON changes;
the selection module 23 is used for selecting the target MON meeting the conditions according to the MON list and the field identification in the MON map stored by the selection module when the target OSD has a fault;
and a connection module 24, configured to send connection information to the target MON so that the target OSD establishes a connection with the target MON.
The connection device of the OSD and the MON provided by the embodiment of the invention has the beneficial effects of the connection method of the OSD and the MON.
As a preferred embodiment, the update module 22 specifically includes:
each OSD in the Ceph registers subscription information of the MON map to the MON in advance;
when the state of the MON changes, the MON sends an updated MON map to each OSD.
As a preferred embodiment, the update module 22 specifically includes:
when the state of MON changes, modifying the corresponding field identification in MON map;
the MON sends an updated MON map to the pre-selected OSD;
each preselected OSD sends a MON map to each other OSD in Ceph according to the communication rules among the OSDs.
As a preferred embodiment, the selecting module 23 is specifically a first selecting module, and the first selecting module is configured to, when the target OSD fails, select a target MON that meets the condition according to the MON list and the field identifier in the MON map stored in the selecting module, and exclude the MON corresponding to the node of the selecting module.
As a preferred embodiment, the selecting module 23 is specifically a second selecting module, and the second selecting module is configured to, when the target OSD fails, select a target MON that meets the condition according to the MON list and the field identifier in the MON map stored in the second selecting module, and exclude the MON corresponding to the node of the second selecting module and the MON selected last time.
Fig. 3 is a structural diagram of a connection device of an OSD and a MON according to an embodiment of the present invention, and as shown in fig. 3, the connection device of the OSD and the MON includes:
a memory 31 for storing a computer program;
the processor 32 is configured to implement the steps of the method for connecting the OSD and the MON as described above when executing the computer program.
The connection device of the OSD and the MON provided by the embodiment of the invention has the beneficial effects of the connection method of the OSD and the MON.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for connecting the OSD and the MON are implemented.
The computer-readable storage medium provided by the embodiment of the invention has the beneficial effects of the connection method of the OSD and the MON.
The method, apparatus, device and computer readable storage medium for connecting OSD and MON provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are set forth only to help understand the method and its core ideas of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (8)

1. A method for connecting an OSD and a MON, comprising:
when the target OSD has a fault, selecting a target MON meeting the conditions according to the MON list in the MON map stored by the target OSD and the field identification;
the field identification is an identification which is added in advance by MON in the MON map and represents whether the MON state is normal or not, and when the MON state changes, the MON map stored by each OSD in the Ceph is updated;
sending connection information to the target MON to enable the target OSD to establish a connection with the target MON.
2. The method of claim 1, wherein the updating the MON map stored by each OSD in Ceph when the state of MON changes comprises:
each OSD in the Ceph registers subscription information of the MON map to the MON in advance;
when the state of the MON changes, the MON sends the updated MON map to each OSD.
3. The method of claim 1, wherein the updating the MON map stored by each OSD in Ceph when the state of MON changes comprises:
when the state of the MON changes, modifying the corresponding field identification in the MON map;
the MON sends an updated MON map to the pre-selected OSD;
and each preselected OSD sends the MON map to other OSD in the Ceph according to the communication rule among OSD.
4. The method according to any one of claims 1 to 3, wherein the process of selecting a qualified target MON according to the MON list in the MON map stored in the MON map and the field identification when the target OSD fails specifically comprises:
and when the target OSD has a fault, selecting the target MON meeting the conditions according to the MON list and the field identification in the MON map stored by the target OSD and excluding the MON corresponding to the node of the target OSD.
5. The method according to any one of claims 1 to 3, wherein the process of selecting a qualified target MON according to the MON list in the MON map stored in the MON map and the field identification when the target OSD fails specifically comprises:
and when the target OSD has a fault, selecting the target MON meeting the conditions according to the MON list and the field identification in the MON map stored by the target OSD, and excluding the MON corresponding to the node of the target OSD and the MON selected last time.
6. An apparatus for connecting an OSD to a MON, comprising:
the marking module is used for enabling MON to add a field identifier which represents whether the MON state is normal or not in the MON map in advance;
the updating module is used for updating the MON map stored by each OSD in the Ceph when the state of the MON changes;
the selection module is used for selecting the target MON meeting the conditions according to the MON list in the MON map stored by the selection module and the field identification when the target OSD has a fault;
and the connection module is used for sending connection information to the target MON so that the target OSD establishes connection with the target MON.
7. An OSD and MON connection apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for connecting an OSD to a MON according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of the method for connecting an OSD to a MON of any one of claims 1 to 5.
CN201911083215.3A 2019-11-07 2019-11-07 OSD and MON connection method, device, equipment and storage medium Withdrawn CN110895521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911083215.3A CN110895521A (en) 2019-11-07 2019-11-07 OSD and MON connection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911083215.3A CN110895521A (en) 2019-11-07 2019-11-07 OSD and MON connection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110895521A true CN110895521A (en) 2020-03-20

Family

ID=69788093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911083215.3A Withdrawn CN110895521A (en) 2019-11-07 2019-11-07 OSD and MON connection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110895521A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756571A (en) * 2020-05-28 2020-10-09 苏州浪潮智能科技有限公司 Cluster node fault processing method, device, equipment and readable medium
CN111901415A (en) * 2020-07-27 2020-11-06 星辰天合(北京)数据科技有限公司 Data processing method and system, computer readable storage medium and processor

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859290A (en) * 2005-10-28 2006-11-08 华为技术有限公司 Processing method for network node configuration information when network topology changing
CN103096295A (en) * 2011-10-31 2013-05-08 中兴通讯股份有限公司 User mode updating method, system, business server and session initiation protocol (SIP) terminal
CN106034138A (en) * 2015-03-09 2016-10-19 阿里巴巴集团控股有限公司 Remote service calling method and remote service calling device
CN106980615A (en) * 2016-01-15 2017-07-25 阿里巴巴集团控股有限公司 Method for processing business and system
CN107862615A (en) * 2017-12-22 2018-03-30 平安养老保险股份有限公司 Claims Resolution information processing method, device, computer equipment and storage medium
CN109254880A (en) * 2017-07-12 2019-01-22 苏宁云商集团股份有限公司 A kind of method and device handling database delay machine
CN109391933A (en) * 2017-08-04 2019-02-26 中兴通讯股份有限公司 Operation irregularity terminal processes, operation irregularity terminal identification method and device
CN109542860A (en) * 2018-10-25 2019-03-29 平安科技(深圳)有限公司 Service data management method, terminal device based on HDFS
CN110365517A (en) * 2019-05-31 2019-10-22 浙江口碑网络技术有限公司 Data processing method, device, storage medium and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859290A (en) * 2005-10-28 2006-11-08 华为技术有限公司 Processing method for network node configuration information when network topology changing
CN103096295A (en) * 2011-10-31 2013-05-08 中兴通讯股份有限公司 User mode updating method, system, business server and session initiation protocol (SIP) terminal
CN106034138A (en) * 2015-03-09 2016-10-19 阿里巴巴集团控股有限公司 Remote service calling method and remote service calling device
CN106980615A (en) * 2016-01-15 2017-07-25 阿里巴巴集团控股有限公司 Method for processing business and system
CN109254880A (en) * 2017-07-12 2019-01-22 苏宁云商集团股份有限公司 A kind of method and device handling database delay machine
CN109391933A (en) * 2017-08-04 2019-02-26 中兴通讯股份有限公司 Operation irregularity terminal processes, operation irregularity terminal identification method and device
CN107862615A (en) * 2017-12-22 2018-03-30 平安养老保险股份有限公司 Claims Resolution information processing method, device, computer equipment and storage medium
CN109542860A (en) * 2018-10-25 2019-03-29 平安科技(深圳)有限公司 Service data management method, terminal device based on HDFS
CN110365517A (en) * 2019-05-31 2019-10-22 浙江口碑网络技术有限公司 Data processing method, device, storage medium and computer equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756571A (en) * 2020-05-28 2020-10-09 苏州浪潮智能科技有限公司 Cluster node fault processing method, device, equipment and readable medium
WO2021238275A1 (en) * 2020-05-28 2021-12-02 苏州浪潮智能科技有限公司 Cluster node fault processing method and apparatus, and device and readable medium
CN111756571B (en) * 2020-05-28 2022-02-18 苏州浪潮智能科技有限公司 Cluster node fault processing method, device, equipment and readable medium
US20230198828A1 (en) * 2020-05-28 2023-06-22 Inspur Suzhou Intelligent Technology Co., Ltd. Cluster node fault processing method and apparatus, and device and readable medium
US11750437B2 (en) * 2020-05-28 2023-09-05 Inspur Suzhou Intelligent Technology Co., Ltd. Cluster node fault processing method and apparatus, and device and readable medium
CN111901415A (en) * 2020-07-27 2020-11-06 星辰天合(北京)数据科技有限公司 Data processing method and system, computer readable storage medium and processor
CN111901415B (en) * 2020-07-27 2023-07-14 北京星辰天合科技股份有限公司 Data processing method and system, computer readable storage medium and processor

Similar Documents

Publication Publication Date Title
US9154382B2 (en) Information processing system
US9413851B2 (en) Information processing system, information processing device, client terminal, and computer readable medium
CN105933407B (en) method and system for realizing high availability of Redis cluster
CN108429629A (en) Equipment fault restoration methods and device
CN107153660B (en) Fault detection processing method and system for distributed database system
CN111147567A (en) Service calling method, device, equipment and medium
US11223522B1 (en) Context-based intelligent re-initiation of microservices
CN110933142A (en) ICFS cluster network card monitoring method, device and equipment and medium
CN110895521A (en) OSD and MON connection method, device, equipment and storage medium
CN107153595B (en) Fault detection method and system for distributed database system
CN111225401A (en) Method and related equipment for realizing disaster tolerance
CN111752488B (en) Management method and device of storage cluster, management node and storage medium
US9311073B2 (en) Upgrading nodes using leader node appointment
US11281446B2 (en) Updating method, terminal and electronic device
CN114567536B (en) Abnormal data processing method, device, electronic equipment and storage medium
US9491132B2 (en) System and method for providing push service for reducing network loads
CN111880949B (en) Service information processing method, system, device, server and terminal
CN112269683B (en) Off-line node on-line service recovery method and related components
CN111880742B (en) Distributed storage volume creation method, system, device and computer medium
CN109634787B (en) Distributed file system monitor switching method, device, equipment and storage medium
CN112637337A (en) Data processing method and device
CN115643237B (en) Data processing system for conference
CN110890989A (en) Channel connection method and device
CN104539442B (en) For improving method, the network equipment and the system of reliability
CN112714143A (en) Service coordination method and device of distributed storage system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200320