CN109525408B - Equipment exception handling method and device and cloud storage system - Google Patents
Equipment exception handling method and device and cloud storage system Download PDFInfo
- Publication number
- CN109525408B CN109525408B CN201710842596.3A CN201710842596A CN109525408B CN 109525408 B CN109525408 B CN 109525408B CN 201710842596 A CN201710842596 A CN 201710842596A CN 109525408 B CN109525408 B CN 109525408B
- Authority
- CN
- China
- Prior art keywords
- node
- equipment
- abnormal
- information
- node equipment
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0695—Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention provides a method and a device for processing equipment exception and a cloud storage system.
Description
Technical Field
The invention relates to the technical field of video monitoring, in particular to a method and a device for processing equipment exception and a cloud storage system.
Background
The video cloud storage system generally includes a management device and a plurality of node devices, where the node devices are used to receive or store video data, and the management device is used to manage the node devices.
If the device in the video cloud storage system is abnormal, the common processing method comprises the following steps: the management device determines the abnormal node device and schedules other node devices to replace the abnormal node device. However, if the management device is abnormal, the processing cannot be performed in time by using the processing method, and the stability of the video cloud storage system is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for processing equipment exception and a cloud storage system, so as to improve the stability of the video cloud storage system.
In order to achieve the above object, an embodiment of the present invention provides an apparatus exception handling method, which is applied to a node apparatus in a cloud storage system, and the method includes:
judging whether the adjacent node equipment of the node equipment is abnormal or not;
if the abnormal node equipment is abnormal, sending the information of the abnormal node equipment to other node equipment except the node equipment and the abnormal node equipment in the cloud storage system;
and determining a processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with the other node equipment.
Optionally, before the determining whether the neighboring node device of the node device is abnormal, the method may further include:
establishing a connection relation with the adjacent node equipment of the node equipment;
sending detection information to the adjacent node equipment according to a preset period;
judging whether feedback information of the adjacent node equipment is received or not;
if not, executing the step of judging whether the adjacent node equipment of the node equipment is abnormal or not.
Optionally, the method may further include:
writing the attribute information of the node equipment into shared information of the cloud storage system, and periodically updating the attribute information of the node equipment in the shared information;
the determining whether the neighboring node device of the node device is abnormal may include:
and judging whether the updating of the attribute information of the adjacent node equipment in the shared information by the adjacent node equipment is abnormal or not.
Optionally, the establishing a connection relationship with the neighboring node device of the node device includes:
determining adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system, wherein the serial numbers of the node equipment in the cloud storage system are contained in the shared information of the cloud storage system;
and establishing a connection relation with the adjacent node equipment.
Optionally, the sending the information of the abnormal node device to other node devices in the cloud storage system except the node device and the abnormal node device may include:
and modifying the attribute information of the abnormal node equipment in the shared information of the cloud storage system so that other node equipment except the local node equipment and the abnormal node equipment in the cloud storage system can determine the information of the abnormal node equipment according to the modified shared information.
Optionally, the determining, through information interaction with the other node devices, a processing policy of access data or storage data of the abnormal node device may include:
and selecting one or more distribution node devices through information interaction with the other node devices, wherein the distribution node devices are used for determining the processing strategy of the access data or the storage data of the abnormal node devices.
Optionally, if the node device is elected as the distribution node device, the method further includes:
determining a processing strategy of access data or storage data of the abnormal node equipment according to the shared information of the cloud storage system; the shared information includes attribute information of each node device in the cloud storage system, and the processing strategy includes information of each node device participating in processing access data or storage data of the abnormal node device.
Optionally, the attribute information includes a processable data amount of the node device and/or priority information of the processed data;
the determining, according to the shared information of the cloud storage system, a processing policy of access data or storage data of the abnormal node device may include:
and determining a processing strategy of the access data or the storage data of the abnormal node equipment according to the processable data quantity and/or the priority information of the processing data.
Optionally, after the determining, through information interaction with the other node devices, a processing policy of the access data or the storage data of the abnormal node device, the method may further include:
determining and processing access data or storage data corresponding to the node equipment according to the processing strategy;
and sending prompt information to equipment to be processed connected with the abnormal node equipment so that the equipment to be processed sends access data or storage data corresponding to the node equipment according to the prompt information.
Optionally, the sending the prompt information to the to-be-processed device connected to the abnormal node device, where the sending the prompt information to the to-be-processed device is a video access device, may include:
and sending prompt information to acquisition equipment connected with the abnormal video access equipment so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
Optionally, the sending the prompt information to the to-be-processed device connected to the abnormal node device, where the node device is a video storage device, may include:
and sending prompt information to video access equipment connected with the abnormal video storage equipment so that the video access equipment sends the storage data corresponding to the video storage equipment to the node equipment according to the prompt information.
In order to achieve the above object, an embodiment of the present invention further provides an apparatus for processing an exception handling device, which is applied to a node device in a cloud storage system, where the apparatus includes:
the first judging module is used for judging whether the adjacent node equipment of the node equipment is abnormal or not;
the first sending module is used for sending the information of the abnormal node equipment to other node equipment except the node equipment and the abnormal node equipment in the cloud storage system under the condition that the first judging module judges that the node equipment is the abnormal node equipment;
and the first determining module is used for determining the processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with the other node equipment.
Optionally, the apparatus may further include:
the connection module is used for establishing a connection relation with the adjacent node equipment of the node equipment;
the second sending module is used for sending detection information to the adjacent node equipment according to a preset period;
the second judgment module is used for judging whether feedback information of the adjacent node equipment is received or not; if not, triggering the first judgment module.
Optionally, the apparatus may further include:
a writing module, configured to write the attribute information of the node device into shared information of the cloud storage system, and periodically update the attribute information of the node device in the shared information;
the first determining module may be specifically configured to:
and judging whether the updating of the attribute information of the adjacent node equipment in the shared information by the adjacent node equipment is abnormal or not.
Optionally, the connection module may be specifically configured to:
determining adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system, wherein the serial numbers of the node equipment in the cloud storage system are contained in the shared information of the cloud storage system;
and establishing a connection relation with the adjacent node equipment.
Optionally, the first sending module may be specifically configured to:
and modifying the attribute information of the abnormal node equipment in the shared information of the cloud storage system so that other node equipment except the local node equipment and the abnormal node equipment in the cloud storage system can determine the information of the abnormal node equipment according to the modified shared information.
Optionally, the first determining module may be specifically configured to:
and selecting one or more distribution node devices through information interaction with the other node devices, wherein the distribution node devices are used for determining the processing strategy of the access data or the storage data of the abnormal node devices.
Optionally, the apparatus may further include:
a second determining module, configured to determine, when the node device is elected as the distribution node device, a processing policy of access data or storage data of the abnormal node device according to shared information of the cloud storage system; the shared information includes attribute information of each node device in the cloud storage system, and the processing strategy includes information of each node device participating in processing access data or storage data of the abnormal node device.
Optionally, the attribute information includes a processable data amount of the node device and/or priority information of the processed data;
the second determining module may be specifically configured to:
and determining a processing strategy of the access data or the storage data of the abnormal node equipment according to the processable data quantity and/or the priority information of the processing data.
Optionally, the apparatus may further include:
a third determining module, configured to determine and process access data or storage data corresponding to the node device according to the processing policy;
and the third sending module is used for sending prompt information to equipment to be processed, which is connected with the abnormal node equipment, so that the equipment to be processed sends the access data or the storage data corresponding to the node equipment according to the prompt information.
Optionally, the node device is a video access device, and the third sending module is specifically configured to:
and sending prompt information to acquisition equipment connected with the abnormal video access equipment so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
Optionally, the node device is a video storage device, and the third sending module is specifically configured to:
and sending prompt information to video access equipment connected with the abnormal video storage equipment so that the video access equipment sends the storage data corresponding to the video storage equipment to the node equipment according to the prompt information.
In order to achieve the above object, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the equipment exception handling methods when executing the program stored in the memory.
In order to achieve the above object, an embodiment of the present invention further provides a cloud storage system, including: a plurality of node devices, wherein,
each node device is used for judging whether the adjacent node device of the node device is abnormal or not; if the abnormal node equipment is abnormal, sending the information of the abnormal node equipment to other node equipment except the node equipment and the abnormal node equipment in the cloud storage system; and determining a processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with the other node equipment.
Optionally, each node device is further configured to:
writing the attribute information of the node equipment into shared information of the cloud storage system, and periodically updating the attribute information of the node equipment in the shared information;
determining adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system, wherein the serial numbers are contained in the shared information; establishing a connection relation with the adjacent node equipment;
sending detection information to the adjacent node equipment according to a preset period; judging whether feedback information of the adjacent node equipment is received or not; if not, judging whether the attribute information of the adjacent node equipment in the shared information is updated abnormally by the adjacent node equipment;
if the abnormal node equipment is abnormal, modifying the attribute information of the abnormal node equipment in the shared information;
each node device is further configured to:
and detecting whether the shared information is modified, and if so, determining abnormal node equipment according to the modified shared information.
Optionally, the node device is a video access device; the video access device is further configured to:
determining and processing access data corresponding to the video access equipment according to the processing strategy;
and sending prompt information to acquisition equipment connected with the abnormal video access equipment so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
Optionally, the node device is a video storage device; the video storage device is further configured to:
determining and processing the storage data corresponding to the video storage equipment according to the processing strategy;
and sending prompt information to video access equipment connected with the abnormal video storage equipment so that the video access equipment sends the storage data corresponding to the video storage equipment according to the prompt information.
By applying the embodiment of the invention, if abnormal node equipment exists in the cloud storage system, each node equipment without abnormality determines the processing strategy of the data of the abnormal node equipment, so that in the scheme, even if the management equipment is abnormal, each node equipment without abnormality can still determine the processing strategy, and any equipment is abnormal, each node equipment without abnormality can determine the processing strategy, thereby improving the stability of the video cloud storage system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, 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 drawings without creative efforts.
Fig. 1 is a first flowchart illustrating an apparatus exception handling method according to an embodiment of the present invention;
fig. 2 is a second flowchart illustrating an apparatus exception handling method according to an embodiment of the present invention;
FIG. 3 is a schematic representation of a circular chain in an embodiment of the present invention;
FIG. 4 is a diagram of another circular linked list in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus exception handling device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a cloud storage system 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.
In order to solve the technical problem, embodiments of the present invention provide an apparatus exception handling method and apparatus, and a cloud storage system. The method and the device can be applied to any node equipment in the cloud storage system.
First, a detailed description is given of a device exception handling method according to an embodiment of the present invention.
Fig. 1 is a first flowchart of an apparatus exception handling method according to an embodiment of the present invention, including:
s101: and judging whether the adjacent node equipment of the node equipment is abnormal or not, and if so, executing S102.
S102: and sending the information of the abnormal node equipment to other node equipment except the node equipment and the abnormal node equipment in the cloud storage system.
S103: and determining the processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with other node equipment.
By applying the embodiment shown in fig. 1 of the present invention, if an abnormal node device exists in the cloud storage system, each node device without abnormality determines the processing policy of the data of the abnormal node device, and thus, in this scheme, even if the management device is abnormal, each node device without abnormality can still determine the processing policy, and if any device is abnormal, each node device without abnormality can determine the processing policy, thereby improving the stability of the video cloud storage system.
The embodiment shown in FIG. 1 is described in detail below:
s101: and judging whether the adjacent node equipment of the node equipment is abnormal or not.
As an embodiment, before S101, a connection relationship may be established with a neighboring node device of the node device; sending detection information to the adjacent node equipment according to a preset period; judging whether feedback information of the adjacent node equipment is received or not; if not, S101 is executed again.
For example, the node device may establish a heartbeat connection with the neighboring node device, and when detecting that the heartbeat of the neighboring node device is overtime, the node device may continue to determine whether the neighboring node device is abnormal. Specifically, the node device may communicate with the neighboring node device, determine whether information fed back by the neighboring node device is received, and if not, indicate that the neighboring node device is abnormal.
As an embodiment, shared information may be stored in the cloud storage system, and each node device in the system writes its own attribute information into the shared information. In this way, the shared information includes attribute information of each node device in the system, and each node device in the system can access or modify the shared information. The shared information may be stored in any one or more devices in the system, and is not limited in particular.
In this embodiment, the shared information may include a sequence number of each node device, and each node device may determine its own neighboring node device according to the sequence number. For a simple example, assuming that the system includes 10 node devices with sequence numbers 1-10, the node device with sequence number 3 may have a sequence number 2 or 4 as its neighboring node device.
In this embodiment, each node device may periodically update its own attribute information in the shared information, so that the node device may determine whether the update of the attribute information of the neighboring node device in the shared information by the neighboring node device is abnormal.
For example, if each node device in the system updates its own attribute information in the shared information every 10 minutes, the node device may monitor the shared information, determine whether its neighboring node device updates its attribute information in 10 minutes, and if not, indicate that the neighboring node device is abnormal.
If the judgment result of S101 is yes, S102 is executed.
S102: and sending the information of the abnormal node equipment to other node equipment except the node equipment and the abnormal node equipment in the cloud storage system.
As an implementation manner, after establishing a connection relationship with an adjacent node device, the node device may obtain information of the adjacent node device, and broadcast the information of the abnormal node device to other node devices in the system when determining that the adjacent node device is an abnormal node device.
Or, in the above-mentioned one embodiment, the cloud storage system stores shared information, the shared information includes attribute information of each node device, and each node device can access and modify the shared information, so that the node device can modify the attribute information of the abnormal node device in the shared information, and other node devices in the system can determine information of the abnormal node device according to the modified shared information.
Specifically, each node device may monitor whether the shared information is modified, and if the shared information is modified, determine information of the abnormal node device according to the modified shared information.
S103: and determining the processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with other node equipment.
For example, each non-anomalous node device in the system may negotiate to determine a policy for processing data of the anomalous node device. The processing strategy can equally distribute and process the data of the abnormal node equipment for each non-abnormal node equipment; or, the data processed by each non-abnormal node device may also be determined according to the processing capability of each non-abnormal node device; or, one or more non-abnormal node devices may be designated to process the data of the abnormal node device according to the processing capability of each non-abnormal node device, and the specific policy is not limited.
As an embodiment, S103 may include: and selecting one or more distribution node devices through information interaction with the other node devices, wherein the distribution node devices are used for determining the processing strategy of the access data or the storage data of the abnormal node devices.
In this embodiment, the distributed node device is generated by electing each non-abnormal node device, and then the distributed node device determines the processing policy.
For the distribution node device, the distribution node device may determine, according to the shared information of the cloud storage system, a processing policy of access data or storage data of the abnormal node device; the shared information includes attribute information of each node device in the cloud storage system, and the processing strategy includes information of each node device participating in processing access data or storage data of the abnormal node device.
Specifically, the attribute information includes a processable data amount of the node device and/or priority information of the processed data; the distribution node device may determine a processing policy of the access data or the storage data of the abnormal node device according to the processable data amount and/or the priority information of the processing data.
The distribution node device may send the determined distribution policy to each node device participating in processing of the abnormal node device data.
For the node device participating in processing the abnormal node device data, the process of participating in processing the abnormal node device data is similar, and it is assumed that the node device is a node device participating in processing the abnormal node device data, and the description will be given by taking the node device as an example:
determining and processing access data or storage data corresponding to the node equipment according to the processing strategy;
and sending prompt information to equipment to be processed connected with the abnormal node equipment so that the equipment to be processed sends access data or storage data corresponding to the node equipment according to the prompt information.
In particular, the node device in the cloud storage system may be a video access device or a video storage device. The video access equipment is in communication connection with the acquisition equipment, and the acquisition equipment accesses the acquired video data to the video access equipment. The video access equipment is in communication connection with the video storage equipment, and stores the access data into the video storage equipment.
And if the node equipment is video access equipment, the equipment to be processed is acquisition equipment. The video access equipment can send prompt information to the acquisition equipment connected with the abnormal video access equipment, so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
In one case, each video access device participating in processing the abnormal video access device data may send a prompt message to the acquisition device connected to the abnormal video access device, where each prompt message includes access data information corresponding to the video access device that sent the prompt message.
For example, assume that the acquisition device a is connected to the abnormal video access device B1, and assume that the video access devices participating in the data access of the processing device B1 are: b2, B3, B4; the prompt information sent by the B2 to the acquisition equipment A contains access data information corresponding to the B2, the prompt information sent by the B3 to the acquisition equipment A contains access data information corresponding to the B3, and the prompt information sent by the B4 to the acquisition equipment A contains access data information corresponding to the B4; in this way, the acquisition device a transmits access data to the devices B2, B3, and B4, respectively, based on the three pieces of prompt information.
In another case, a video access device may send a prompt message to a collection device connected to the abnormal video access device, where the prompt message includes access data information corresponding to each video access device participating in processing data of the abnormal video access device.
For example, assume that the acquisition device a is connected to the abnormal video access device B1, and assume that the video access devices participating in the data access of the processing device B1 are: b2, B3, B4; b2 sending prompt information to the acquisition equipment A, wherein the prompt information comprises access data information corresponding to B2, B3 and B4; in this way, the acquisition device a transmits access data to the devices B2, B3, and B4, respectively, based on the prompt information.
And if the node equipment is video storage equipment, the equipment to be processed is video access equipment. The video storage device can send prompt information to the video access device connected with the abnormal video storage device, so that the video access device sends the storage data corresponding to the video storage device according to the prompt information.
In one case, each video storage device participating in processing of abnormal video storage device data may send a prompt message to a video access device connected to the abnormal video storage device, where each prompt message includes stored data information corresponding to the video storage device that sent the prompt message.
For example, suppose that the video access device a is connected to the abnormal video storage device B1, and suppose that the video storage devices participating in the data access of the processing device B1 are: b2, B3, B4; the prompting information sent by the B2 to the video access equipment A comprises access data information corresponding to the B2, the prompting information sent by the B3 to the video access equipment A comprises access data information corresponding to the B3, and the prompting information sent by the B4 to the video access equipment A comprises access data information corresponding to the B4; in this way, the video access apparatus a transmits access data to the apparatuses B2, B3, and B4, respectively, based on the three pieces of hint information.
In another case, a video storage device may send a prompt message to a video storage device connected to the abnormal video storage device, where the prompt message includes stored data information corresponding to each video storage device participating in processing data of the abnormal video storage device.
For example, suppose that the video access device a is connected to the abnormal video storage device B1, and suppose that the video storage devices participating in the data access of the processing device B1 are: b2, B3, B4; b2 sending prompt information to the video access device A, wherein the prompt information contains access data information corresponding to B2, B3 and B4; in this way, the video access apparatus a transmits access data to the apparatuses B2, B3, and B4, respectively, based on the cue information.
Fig. 2 is a second flowchart of the device exception handling method according to the embodiment of the present invention, where the method includes:
s201: the attribute information of the node equipment is written into the shared information of the cloud storage system, and the attribute information of the node equipment in the shared information is updated regularly.
In this embodiment, shared information may be stored in the cloud storage system, and each node device in the system writes its own attribute information into the shared information, and periodically updates the written own attribute information. In this way, the shared information includes attribute information of each node device in the system, and each node device in the system can access or modify the shared information. The shared information may be stored in any one or more devices in the system, and is not limited in particular.
As an implementation manner, Zookeeper service may be run in each node device of the cloud storage system, and the Zookeeper service is a distributed application coordination service. The shared information may be information in a Zookeeper service. Each node device in the system establishes a Zookeeper child node belonging to itself, writes the attribute information of itself into the Zookeeper child node of itself, and periodically updates the Zookeeper child node of itself.
Each node device can access the Zookeeper child nodes of other node devices by using the Zookeeper service, and read the attribute information of other node devices.
S202: and determining the adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system contained in the shared information.
The attribute information may include a serial number of the node device. For each node device, it may determine its own neighboring node device according to the sequence number. For a simple example, assuming that the system includes 10 node devices with sequence numbers 1-10, the node device with sequence number 3 may have a sequence number 2 or 4 as its neighboring node device.
S203: and establishing a connection relation with the adjacent node equipment of the node equipment.
S204: and sending detection information to the adjacent node equipment according to a preset period.
S205: and judging whether the feedback information of the adjacent node equipment is received or not, and if not, executing S206.
For example, the node device may establish a heartbeat connection with the neighboring node device, and if a Zookeeper service is operated in each node device in the system, the node device may send the detection information to the neighboring node device by using a heartbeat mechanism in the Zookeeper service, and receive the feedback information. If the node device does not receive the feedback information of the neighboring node device within the preset time length, it indicates that the heartbeat of the neighboring node device is over time, and in this case, S206 is continuously executed.
S206: and judging whether the updating of the attribute information of the adjacent node equipment in the shared information by the adjacent node equipment is abnormal or not, and if so, executing S207.
As described above, in this embodiment, each node device periodically updates its own attribute information in the shared information, so that the node device can determine whether the update of the attribute information of the neighboring node device in the shared information by the neighboring node device is abnormal.
For example, if each node device in the system updates its own Zookeeper child node every 10 minutes, the node device may monitor whether the Zookeeper child node of the neighboring node device updated by the neighboring node device is abnormal; and if the node equipment is abnormal, confirming the adjacent node equipment as abnormal node equipment.
S207: and modifying the attribute information of the abnormal node equipment in the shared information so that other node equipment except the node equipment and the abnormal node equipment in the cloud storage system determines the information of the abnormal node equipment according to the modified shared information.
After the node equipment judges that the adjacent node equipment is abnormal, the Zookeeper child node of the abnormal node equipment can be modified by using the Zookeeper service; in this way, other node devices may obtain information of the abnormal node device by using the Zookeeper service.
S208: and selecting one or more distribution node devices through information interaction with the other node devices.
Each non-abnormal node device in the system can use an election mechanism in the Zookeeper service to elect one or more distribution node devices.
S209: and judging whether the node equipment is the distribution node equipment or not, if so, executing S210, and if not, executing S211.
S210: and determining a processing strategy of the access data or the storage data of the abnormal node equipment according to the shared information, wherein the processing strategy comprises the information of each node equipment participating in processing the access data or the storage data of the abnormal node equipment.
For the distribution node device, the distribution node device may determine, according to the shared information of the cloud storage system, a processing policy of access data or storage data of the abnormal node device; the shared information includes attribute information of each node device in the cloud storage system, and the processing strategy includes information of each node device participating in processing access data or storage data of the abnormal node device.
Specifically, the attribute information includes a processable data amount of the node device and/or priority information of the processed data; the distribution node device may determine a processing policy of the access data or the storage data of the abnormal node device according to the processable data amount and/or the priority information of the processing data.
The distribution node device may send the determined distribution policy to each node device participating in processing of the abnormal node device data.
For example, serial numbers may be allocated to each node device in advance, a circular linked list of the serial numbers may be established, and priority information of processing data may be determined according to the positions of the serial numbers of each node device in the circular linked list.
S211: and judging whether the node equipment participates in processing the access data or the storage data of the abnormal node equipment, if so, executing S212.
S212: and determining and processing the access data or the storage data corresponding to the node equipment according to the processing strategy.
And if the node equipment is video access equipment, determining and processing the access data corresponding to the video access equipment according to the processing strategy. And if the node equipment is the video storage equipment, determining and processing the storage data corresponding to the video storage equipment according to the processing strategy.
S213: and sending prompt information to the equipment to be processed connected with the abnormal node equipment so that the equipment to be processed sends the access data or the storage data corresponding to the node equipment according to the prompt information.
And if the node equipment is video access equipment, the equipment to be processed is acquisition equipment. The video access equipment can send prompt information to the acquisition equipment connected with the abnormal video access equipment, so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
And if the node equipment is video storage equipment, the equipment to be processed is video access equipment. The video storage device can send prompt information to the video access device connected with the abnormal video storage device, so that the video access device sends the storage data corresponding to the video storage device according to the prompt information.
In the following, taking a node device as a video access device as an example, an optional implementation manner is provided:
a Cloud _ Access parent node may be created under the Zookeeper service, then each video Access device in the system creates its own child node under the parent node, where the child node includes attribute information of the video Access device, such as a name of the video Access device, video recording plan information, video recording plan Access capability, video storage server information of recorded and written data, an IP address of the video Access device, and the like, and is not limited specifically.
Suppose that the cloud storage system includes three video access devices, and the child nodes of the three video access devices are respectively: /Cloud _ Access/30000000002,/Cloud _ Access/10000000006 and/Cloud _ Access/40000000009. The child node ordering principle may be: 10000000006<30000000002< 40000000009. As an embodiment, a circular linked list may be established according to the sequence numbers of the child nodes, and the circular linked list may be as shown in FIG. 3.
Each node device can update its child node periodically. Each node device establishes heartbeat connection with the adjacent video access device in the chain table according to the circular chain table shown in fig. 3, communicates with the video access device with abnormal heartbeat after detecting that the adjacent video access device has abnormal heartbeat, and further judges whether the video access device with abnormal heartbeat is abnormal or not; or, the video access device monitoring the heartbeat abnormality updates whether the Zookeeper child node is abnormal.
If the video access equipment judges that the video access equipment with the abnormal heartbeat is abnormal, the video access equipment modifies the Zookeeper child node of the abnormal video access equipment so as to inform other video access equipment of the information of the abnormal video access equipment. In this case, a new circular linked list may be generated, where the new circular linked list does not include the serial number of the abnormal video access device.
As an embodiment, a callback function may be set under the parent node, and when the child node sends a change, each video access device may be notified through the callback function.
And each non-abnormal video access device determines the processing strategy of the access data of the abnormal video access device by using the Zookeeper. Or, each non-abnormal video access device may elect one or more distribution node devices by using an election mechanism in the Zookeeper, and the distribution node devices determine a processing policy of access data of the abnormal video access device.
The processing strategy can equally distribute and process the data of the abnormal video access equipment for each non-abnormal video access equipment; or, the data processed by each non-abnormal video access device may also be determined according to the processing capability of each non-abnormal video access device; or, one or more non-abnormal video access devices may be designated to process the data of the abnormal video access device according to the processing capability of each non-abnormal video access device, and the specific policy is not limited.
For convenience of description, the "non-abnormal video access device participating in processing data of the abnormal video access device" will be referred to as a successor device. One or more take-over devices can send prompt information to the acquisition device connected with the abnormal video access device, so that the acquisition device accesses the acquired video data to the take-over device.
In the following, an optional implementation is provided by taking a node device as a video storage device as an example:
a Cloud _ Stroage parent node may be created under the Zookeeper service, then each video storage device in the system creates its own child node under the parent node, where the child node includes attribute information of the video storage device, such as a name, total storage capacity, storage free capacity, video access server information of video data, video front-end camera information of video data, and an IP address of the video storage device, and is not limited specifically.
Suppose that the cloud storage system includes three video storage devices, and the child nodes of the three video storage devices are respectively: /Cloud _ Stroage/20000000001,/Cloud _ Stroage/50000000010 and/Cloud _ Stroage/60000000005. The child node ordering principle may be: 20000000001<50000000010< 60000000005. As an embodiment, a circular linked list may be established according to the sequence numbers of the child nodes, and the circular linked list may be as shown in FIG. 4.
Each node device can update its child node periodically. Each node device establishes heartbeat connection with the adjacent video storage device in the chain table according to the circular chain table shown in fig. 4, communicates with the video storage device with abnormal heartbeat after detecting that the adjacent video storage device has abnormal heartbeat, and further judges whether the video storage device with abnormal heartbeat is abnormal or not; or, the video storage device monitoring the heartbeat abnormality updates whether the Zookeeper child node is abnormal or not.
If the video storage device judges that the video storage device with the abnormal heartbeat is abnormal, the video storage device modifies the Zookeeper child node of the abnormal video storage device to inform other video storage devices of the information of the abnormal video storage device. In this case, a new circular linked list may be generated, where the new circular linked list does not include the serial number of the abnormal video storage device.
As an embodiment, a callback function may be set under the parent node, and when the child node information sends a change, each video storage device may be notified through the callback function.
And each non-abnormal video storage device determines the processing strategy of the storage data of the abnormal video storage device by using the Zookeeper. Or, each non-abnormal video storage device may elect one or more distribution node devices by using an election mechanism in the Zookeeper, and the distribution node devices determine a processing policy of the storage data of the abnormal video storage device.
The processing strategy can equally distribute data for processing the abnormal video storage device for each non-abnormal video storage device; or, the data processed by each non-abnormal video storage device may also be determined according to the processing capability of each non-abnormal video storage device; or, one or more non-abnormal video storage devices may be designated to process the data of the abnormal video storage device according to the processing capability of each non-abnormal video storage device, and the specific policy is not limited.
For convenience of description, the "non-anomalous video storage device participating in processing the data of the anomalous video storage device" will be referred to as a successor device. One or more take-over devices can send prompt information to the video access device connected with the abnormal video storage device, so that the video access device stores the acquired video data to the take-over device.
By applying the embodiment of the invention, if abnormal node equipment exists in the cloud storage system, each node equipment without abnormality determines the processing strategy of the data of the abnormal node equipment, so that in the scheme, even if the management equipment is abnormal, each node equipment without abnormality can still determine the processing strategy, and any equipment is abnormal, each node equipment without abnormality can determine the processing strategy, thereby improving the stability of the video cloud storage system.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides an apparatus for handling device exception, where the apparatus is applied to a node device in a cloud storage system, and the apparatus includes:
a first determining module 501, configured to determine whether a neighboring node device of the node device is abnormal;
a first sending module 502, configured to send information of an abnormal node device to other node devices in the cloud storage system except the local node device and the abnormal node device if the first determining module 501 determines that the node device is the abnormal node device;
a first determining module 503, configured to determine, through information interaction with the other node devices, a processing policy of access data or storage data of the abnormal node device.
As an embodiment, the apparatus may further include: a connection module, a second sending module and a second judging module (not shown in the figure), wherein,
the connection module is used for establishing a connection relation with the adjacent node equipment of the node equipment;
the second sending module is used for sending detection information to the adjacent node equipment according to a preset period;
the second judgment module is used for judging whether feedback information of the adjacent node equipment is received or not; if not, triggering the first judgment module.
As an embodiment, the apparatus may further include:
a writing module (not shown in the figure), configured to write the attribute information of the local node device into shared information of the cloud storage system, and periodically update the attribute information of the local node device in the shared information;
the first determining module 501 may be specifically configured to:
and judging whether the updating of the attribute information of the adjacent node equipment in the shared information by the adjacent node equipment is abnormal or not.
As an embodiment, the connection module may be specifically configured to:
determining adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system, wherein the serial numbers of the node equipment in the cloud storage system are contained in the shared information of the cloud storage system;
and establishing a connection relation with the adjacent node equipment.
As an embodiment, the first sending module 502 may be specifically configured to:
and modifying the attribute information of the abnormal node equipment in the shared information of the cloud storage system so that other node equipment except the local node equipment and the abnormal node equipment in the cloud storage system can determine the information of the abnormal node equipment according to the modified shared information.
As an embodiment, the first determining module 503 may specifically be configured to:
and selecting one or more distribution node devices through information interaction with the other node devices, wherein the distribution node devices are used for determining the processing strategy of the access data or the storage data of the abnormal node devices.
As an embodiment, the apparatus further comprises:
a second determining module (not shown in the figure), configured to determine, according to the shared information of the cloud storage system, a processing policy of access data or storage data of the abnormal node device when the local node device is elected as the distribution node device; the shared information includes attribute information of each node device in the cloud storage system, and the processing strategy includes information of each node device participating in processing access data or storage data of the abnormal node device.
As an embodiment, the attribute information includes a processable data amount of the node device and/or priority information of processed data;
the second determining module may be specifically configured to:
and determining a processing strategy of the access data or the storage data of the abnormal node equipment according to the processable data quantity and/or the priority information of the processing data.
As an embodiment, the apparatus may further include: a third determining module and a third sending module (not shown in the figure), wherein,
a third determining module, configured to determine and process access data or storage data corresponding to the node device according to the processing policy;
and the third sending module is used for sending prompt information to equipment to be processed, which is connected with the abnormal node equipment, so that the equipment to be processed sends the access data or the storage data corresponding to the node equipment according to the prompt information.
As an implementation manner, the node device is a video access device, and the third sending module may be specifically configured to:
and sending prompt information to acquisition equipment connected with the abnormal video access equipment so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
As an implementation manner, the node device is a video storage device, and the third sending module may be specifically configured to:
and sending prompt information to video access equipment connected with the abnormal video storage equipment so that the video access equipment sends the storage data corresponding to the video storage equipment to the node equipment according to the prompt information.
By applying the embodiment shown in fig. 5 of the present invention, if an abnormal node device exists in the cloud storage system, each node device without abnormality determines the processing policy of the data of the abnormal node device, and thus, in this scheme, even if the management device is abnormal, each node device without abnormality can still determine the processing policy, and if any device is abnormal, each node device without abnormality can determine the processing policy, thereby improving the stability of the video cloud storage system.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement any one of the above-described device exception handling methods when executing the program stored in the memory 603.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present invention further provides a cloud storage system, as shown in fig. 7, where the cloud storage system includes a plurality of node devices: node device 1, node device 2 … … node device N, wherein,
each node device is used for judging whether the adjacent node device of the node device is abnormal or not; if the abnormal node equipment is abnormal, sending the information of the abnormal node equipment to other node equipment except the node equipment and the abnormal node equipment in the cloud storage system; and determining a processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with the other node equipment.
As an embodiment, each node device may further be configured to:
writing the attribute information of the node equipment into shared information of the cloud storage system, and periodically updating the attribute information of the node equipment in the shared information;
determining adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system, wherein the serial numbers are contained in the shared information; establishing a connection relation with the adjacent node equipment;
sending detection information to the adjacent node equipment according to a preset period; judging whether feedback information of the adjacent node equipment is received or not; if not, judging whether the attribute information of the adjacent node equipment in the shared information is updated abnormally by the adjacent node equipment;
if the abnormal node equipment is abnormal, modifying the attribute information of the abnormal node equipment in the shared information;
each node device is further configured to:
and detecting whether the shared information is modified, and if so, determining abnormal node equipment according to the modified shared information.
As an embodiment, the node device is a video access device; the video access device may be further configured to:
determining and processing access data corresponding to the video access equipment according to the processing strategy;
and sending prompt information to acquisition equipment connected with the abnormal video access equipment so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
As an embodiment, the node device is a video storage device; the video storage device is further configured to:
determining and processing the storage data corresponding to the video storage equipment according to the processing strategy;
and sending prompt information to video access equipment connected with the abnormal video storage equipment so that the video access equipment sends the storage data corresponding to the video storage equipment according to the prompt information.
As shown in fig. 7, Zookeeper service may be run in each node device in the cloud storage system, and each node device may perform information interaction through the Zookeeper service. The node device may also implement any one of the above-described device exception handling methods.
The cloud storage system provided in this embodiment may further include a management device, and the node device may register in the management device, so that the management device manages the node device.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiment of the device exception handling apparatus shown in fig. 5, the embodiment of the electronic device shown in fig. 6, and the embodiment of the cloud storage system shown in fig. 7, since they are substantially similar to the embodiments of the device exception handling method shown in fig. 1 to 4, the description is relatively simple, and relevant points can be obtained by referring to the partial description of the embodiment of the device exception handling method shown in fig. 1 to 4.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (25)
1. The equipment exception handling method is applied to node equipment in a cloud storage system, and comprises the following steps:
establishing a connection relation with adjacent node equipment of the node equipment;
sending detection information to the adjacent node equipment according to a preset period;
judging whether feedback information of the adjacent node equipment is received or not;
if not, judging whether the adjacent node equipment of the node equipment is abnormal or not;
if the abnormal node equipment is abnormal, sending the information of the abnormal node equipment to other node equipment except the node equipment and the abnormal node equipment in the cloud storage system;
and determining a processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with the other node equipment.
2. The method of claim 1, further comprising:
writing the attribute information of the node equipment into shared information of the cloud storage system, and periodically updating the attribute information of the node equipment in the shared information;
the determining whether the neighboring node device of the node device is abnormal includes:
and judging whether the updating of the attribute information of the adjacent node equipment in the shared information by the adjacent node equipment is abnormal or not.
3. The method according to claim 1, wherein the establishing a connection relationship with the node device adjacent to the local node device includes:
determining adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system, wherein the serial numbers of the node equipment in the cloud storage system are contained in the shared information of the cloud storage system;
and establishing a connection relation with the adjacent node equipment.
4. The method according to claim 1, wherein the sending the information of the abnormal node device to other node devices in the cloud storage system except the local node device and the abnormal node device includes:
and modifying the attribute information of the abnormal node equipment in the shared information of the cloud storage system so that other node equipment except the local node equipment and the abnormal node equipment in the cloud storage system can determine the information of the abnormal node equipment according to the modified shared information.
5. The method of claim 1, wherein determining the processing policy of the access data or the storage data of the abnormal node device through information interaction with the other node devices comprises:
and selecting one or more distribution node devices through information interaction with the other node devices, wherein the distribution node devices are used for determining the processing strategy of the access data or the storage data of the abnormal node devices.
6. The method of claim 5, wherein if the local node device is elected to be the distribution node device, the method further comprises:
determining a processing strategy of access data or storage data of the abnormal node equipment according to the shared information of the cloud storage system; the shared information includes attribute information of each node device in the cloud storage system, and the processing strategy includes information of each node device participating in processing access data or storage data of the abnormal node device.
7. The method according to claim 6, wherein the attribute information includes a processable data amount of the node device and/or priority information of the processed data;
the determining of the processing strategy of the access data or the storage data of the abnormal node device according to the shared information of the cloud storage system includes:
and determining a processing strategy of the access data or the storage data of the abnormal node equipment according to the processable data quantity and/or the priority information of the processing data.
8. The method according to claim 1, after the determining, through information interaction with the other node devices, a processing policy of access data or storage data of the abnormal node device, further comprising:
determining and processing access data or storage data corresponding to the node equipment according to the processing strategy;
and sending prompt information to equipment to be processed connected with the abnormal node equipment so that the equipment to be processed sends access data or storage data corresponding to the node equipment according to the prompt information.
9. The method according to claim 8, wherein the local node device is a local video access device, the abnormal node device is an abnormal video access device, and the sending the prompt message to the device to be processed connected to the abnormal node device includes:
and sending prompt information to acquisition equipment connected with the abnormal video access equipment so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
10. The method according to claim 8, wherein the local node device is a local video storage device, the abnormal node device is an abnormal video storage device, and the sending the prompt message to the device to be processed connected to the abnormal node device includes:
and sending prompt information to video access equipment connected with the abnormal video storage equipment so that the video access equipment sends the storage data corresponding to the video storage equipment to the node equipment according to the prompt information.
11. The device exception handling apparatus is applied to a node device in a cloud storage system, and comprises:
the connection module is used for establishing a connection relation with adjacent node equipment of the node equipment;
the second sending module is used for sending detection information to the adjacent node equipment according to a preset period;
the second judgment module is used for judging whether feedback information of the adjacent node equipment is received or not; if not, triggering a first judgment module;
the first judging module is used for judging whether the adjacent node equipment of the node equipment is abnormal or not;
a first sending module, configured to send information of an abnormal node device to other node devices in the cloud storage system except the node device and the abnormal node device when the first determining module determines that the node device adjacent to the node device is abnormal;
and the first determining module is used for determining the processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with the other node equipment.
12. The apparatus of claim 11, further comprising:
a writing module, configured to write the attribute information of the node device into shared information of the cloud storage system, and periodically update the attribute information of the node device in the shared information;
the first judging module is specifically configured to:
and judging whether the updating of the attribute information of the adjacent node equipment in the shared information by the adjacent node equipment is abnormal or not.
13. The apparatus according to claim 11, wherein the connection module is specifically configured to:
determining adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system, wherein the serial numbers of the node equipment in the cloud storage system are contained in the shared information of the cloud storage system;
and establishing a connection relation with the adjacent node equipment.
14. The apparatus of claim 11, wherein the first sending module is specifically configured to:
and modifying the attribute information of the abnormal node equipment in the shared information of the cloud storage system so that other node equipment except the local node equipment and the abnormal node equipment in the cloud storage system can determine the information of the abnormal node equipment according to the modified shared information.
15. The apparatus of claim 11, wherein the first determining module is specifically configured to:
and selecting one or more distribution node devices through information interaction with the other node devices, wherein the distribution node devices are used for determining the processing strategy of the access data or the storage data of the abnormal node devices.
16. The apparatus of claim 15, further comprising:
a second determining module, configured to determine, when the node device is elected as the distribution node device, a processing policy of access data or storage data of the abnormal node device according to shared information of the cloud storage system; the shared information includes attribute information of each node device in the cloud storage system, and the processing strategy includes information of each node device participating in processing access data or storage data of the abnormal node device.
17. The apparatus according to claim 16, wherein the attribute information includes a processable data amount of the node device and/or priority information of the processed data;
the second determining module is specifically configured to:
and determining a processing strategy of the access data or the storage data of the abnormal node equipment according to the processable data quantity and/or the priority information of the processing data.
18. The apparatus of claim 11, further comprising:
a third determining module, configured to determine and process access data or storage data corresponding to the node device according to the processing policy;
and the third sending module is used for sending prompt information to equipment to be processed, which is connected with the abnormal node equipment, so that the equipment to be processed sends the access data or the storage data corresponding to the node equipment according to the prompt information.
19. The apparatus according to claim 18, wherein the local node device is a local video access device, the abnormal node device is an abnormal video access device, and the third sending module is specifically configured to:
and sending prompt information to acquisition equipment connected with the abnormal video access equipment so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
20. The apparatus according to claim 18, wherein the local node device is a local video storage device, the abnormal node device is an abnormal video storage device, and the third sending module is specifically configured to:
and sending prompt information to video access equipment connected with the abnormal video storage equipment so that the video access equipment sends the storage data corresponding to the video storage equipment to the node equipment according to the prompt information.
21. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 10 when executing the computer program stored in the memory.
22. A cloud storage system, comprising: a plurality of node devices, wherein,
each node device is used for establishing a connection relation with the adjacent node device of the node device; sending detection information to the adjacent node equipment according to a preset period; judging whether feedback information of the adjacent node equipment is received or not; if not, judging whether the adjacent node equipment of the node equipment is abnormal or not; if the abnormal node equipment is abnormal, sending the information of the abnormal node equipment to other node equipment except the node equipment and the abnormal node equipment in the cloud storage system; and determining a processing strategy of the access data or the storage data of the abnormal node equipment through information interaction with the other node equipment.
23. The system of claim 22, wherein each node device is further configured to:
writing the attribute information of the node equipment into shared information of the cloud storage system, and periodically updating the attribute information of the node equipment in the shared information;
determining adjacent node equipment of the node equipment according to the serial numbers of the node equipment in the cloud storage system, wherein the serial numbers are contained in the shared information; establishing a connection relation with the adjacent node equipment;
sending detection information to the adjacent node equipment according to a preset period; judging whether feedback information of the adjacent node equipment is received or not; if not, judging whether the attribute information of the adjacent node equipment in the shared information is updated abnormally by the adjacent node equipment;
if the abnormal node equipment is abnormal, modifying the attribute information of the abnormal node equipment in the shared information;
each node device is further configured to:
and detecting whether the shared information is modified, and if so, determining abnormal node equipment according to the modified shared information.
24. The system according to claim 22, wherein the node device is a video access device, the node device is a local video access device, and the abnormal node device is an abnormal video access device; the video access device is further configured to:
determining and processing access data corresponding to the video access equipment according to the processing strategy;
and sending prompt information to acquisition equipment connected with the abnormal video access equipment so that the acquisition equipment sends the access data corresponding to the video access equipment according to the prompt information.
25. The system according to claim 22, wherein the node device is a video storage device, the local node device is a local video storage device, and the abnormal node device is an abnormal video storage device; the video storage device is further configured to:
determining and processing the storage data corresponding to the video storage equipment according to the processing strategy;
and sending prompt information to video access equipment connected with the abnormal video storage equipment so that the video access equipment sends the storage data corresponding to the video storage equipment according to the prompt information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710842596.3A CN109525408B (en) | 2017-09-18 | 2017-09-18 | Equipment exception handling method and device and cloud storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710842596.3A CN109525408B (en) | 2017-09-18 | 2017-09-18 | Equipment exception handling method and device and cloud storage system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109525408A CN109525408A (en) | 2019-03-26 |
CN109525408B true CN109525408B (en) | 2021-12-21 |
Family
ID=65767701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710842596.3A Active CN109525408B (en) | 2017-09-18 | 2017-09-18 | Equipment exception handling method and device and cloud storage system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109525408B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111800503B (en) * | 2020-07-03 | 2023-04-18 | 湖南工业大学 | Internet of things communication data topology method and system for reducing data acquisition terminals |
CN111586195B (en) * | 2020-07-03 | 2022-09-06 | 湖南工业大学 | Communication topology method and system of Internet of things |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639803A (en) * | 2008-07-30 | 2010-02-03 | 株式会社日立制作所 | Exception handling method and exception handling device for multithread application system |
CN102984501A (en) * | 2012-11-15 | 2013-03-20 | 杭州瑞网广通信息技术有限公司 | Network video-recording cluster system |
CN106301853A (en) * | 2015-06-05 | 2017-01-04 | 华为技术有限公司 | The fault detection method of group system interior joint and device |
CN106330531A (en) * | 2016-08-15 | 2017-01-11 | 东软集团股份有限公司 | Node fault recording and processing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902599B (en) * | 2012-09-17 | 2016-08-24 | 华为技术有限公司 | Virtual machine internal fault handling method, Apparatus and system |
-
2017
- 2017-09-18 CN CN201710842596.3A patent/CN109525408B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639803A (en) * | 2008-07-30 | 2010-02-03 | 株式会社日立制作所 | Exception handling method and exception handling device for multithread application system |
CN102984501A (en) * | 2012-11-15 | 2013-03-20 | 杭州瑞网广通信息技术有限公司 | Network video-recording cluster system |
CN106301853A (en) * | 2015-06-05 | 2017-01-04 | 华为技术有限公司 | The fault detection method of group system interior joint and device |
CN106330531A (en) * | 2016-08-15 | 2017-01-11 | 东软集团股份有限公司 | Node fault recording and processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109525408A (en) | 2019-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021180025A1 (en) | Message processing method and apparatus, electronic device and medium | |
CN110213068B (en) | Message middleware monitoring method and related equipment | |
KR101871383B1 (en) | Method and system for using a recursive event listener on a node in hierarchical data structure | |
CN108737132B (en) | Alarm information processing method and device | |
US20140297355A1 (en) | Workflow control apparatus and method therefor | |
CN107343023B (en) | Resource allocation method and device in Mesos management cluster and electronic equipment | |
CN111131399A (en) | Method and device for dynamically increasing consensus nodes in block chain | |
CN109167819B (en) | Data synchronization system, method, device and storage medium | |
CN109525408B (en) | Equipment exception handling method and device and cloud storage system | |
CN110113187B (en) | Configuration updating method and device, configuration server and configuration system | |
CN114153609B (en) | Resource control method and device, electronic equipment and computer readable storage medium | |
CN108681558B (en) | Data rollback method, device and terminal | |
CN108256311B (en) | Authorization authentication method and device and electronic equipment | |
CN114416883A (en) | Block chain light node data synchronization method, device, equipment and readable storage medium | |
CN111400327B (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN110855484A (en) | Method, system, electronic device and storage medium for automatically detecting traffic change | |
CN113568781B (en) | Database error processing method and device and database cluster access system | |
CN108228328B (en) | Stream task implementation method and device and electronic equipment | |
CN112671590B (en) | Data transmission method and device, electronic equipment and computer storage medium | |
CN111092922B (en) | Information sending method and device | |
CN110019023B (en) | Method, device and equipment for pushing mechanism information message | |
CN115604088A (en) | Main/standby switching method, device, equipment and storage medium of component cluster system | |
CN108199882A (en) | Nodes-distributing method, device, storage medium and the equipment of distributed data base | |
CN115878450A (en) | Method and device for executing test task | |
CN114666524B (en) | Data return method and device 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |