Node state determination method and device based on cloud storage and computer storage medium

By collecting and analyzing the target data of the server connected to the cloud storage node and determining the server and node status, the problem of low node status accuracy in the prior art is solved, and higher cloud storage reliability is achieved.

CN119814608APending Publication Date: 2025-04-11HANGZHOU HUACHENG SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411730803.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The prior art has low accuracy when determining the state of cloud storage nodes, resulting in cloud storage failure.

Method used

By collecting target data of each server connected to the current node, including basic data and business operation data, the server status is determined based on these data, and the node status is judged based on the number of abnormal servers.

Benefits of technology

Improve the accuracy of node status, accurately determine the server status and node status, and avoid cloud storage failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814608A_ABST
    Figure CN119814608A_ABST
Patent Text Reader

Abstract

The invention discloses a node state determination method and device based on cloud storage and a computer storage medium, the method is applied to a cloud storage system, the cloud storage system comprises at least two nodes, each node is connected with at least two servers, and the method comprises the following steps: collecting target data of each server connected with the current node, the target data comprises basic data and / or business data of the server; determining a server state of the server according to the target data of each server; and determining that the node state of the current node is abnormal in response to the server state representing that the servers are abnormal and the number of the abnormal servers in the current node is greater than or equal to a server number threshold value. Therefore, the server state and the node state can be accurately determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a node status determination method based on cloud storage, an electronic device and a computer-readable storage medium. Background Art

[0002] Video IoT devices generate cloud videos and cloud images through reported videos or images, so as to perform cloud storage processing based on cloud videos and cloud images. For cloud storage, the determination of node status is crucial, and nodes in abnormal status will cause cloud storage failure.

[0003] Currently, the status is usually determined based on basic data deployed on a server connected to the node, which results in a low accuracy of the determined status.

[0004] Therefore, there is an urgent need for a node status determination method that can accurately determine the node status. Summary of the invention

[0005] The main technical problem solved by the present application is to provide a node status determination method, electronic device and computer-readable storage medium based on cloud storage, which can improve the accuracy of node status.

[0006] To solve the above technical problems, the present application provides a node status determination method based on cloud storage, the method is applied to a cloud storage system, the cloud storage system includes at least two nodes, each node is connected to at least two servers, the method includes: collecting target data of each server connected to the current node, the target data includes basic data and / or business data of the server; determining the server status of the server according to the target data of each server; in response to the server status characterizing the server abnormality and the number of abnormal servers in the current node is greater than or equal to a server number threshold, determining that the node status of the current node is a node abnormality.

[0007] In one embodiment, after the step of determining the server status of the server based on the target data of each server, the method further includes: in response to the server status characterizing the server abnormality, obtaining a target data type of the target data, the target data type of the target data including a first data type of the basic data and a second data type of the business operation data; in response to the first data type being a first target type and / or the second data type being the first target type, reporting the server in a first warning manner.

[0008] In one embodiment, the method further includes: in response to detecting that the number of times the server reports in the first warning manner is greater than a number threshold, determining a target node from other nodes in the cloud storage system, the other nodes being nodes in the cloud storage system other than the current node; and scheduling the acquired business to be processed from the current node to the target node for processing.

[0009] In one embodiment, the step of determining the target node from other nodes of the cloud storage system includes: obtaining current idle load data of the other nodes; and selecting the target node from the other nodes according to the current idle load data of the other nodes.

[0010] In one embodiment, after the step of obtaining the target data type of the target data, wherein the target data type of the target data includes a first data type of the basic data and a second data type of the business operation data, the method further includes: in response to the first data type being the second target type and the second data type being the second target type, reporting to the server in a second warning manner.

[0011] In one embodiment, each server is connected to at least two acquisition devices, the basic data includes at least one of the central processing data, bandwidth data and middleware data of the server, and the business operation data includes at least one of the storage time and download time when the data uploaded by the acquisition device connected to the server is stored in the cloud; the step of determining the server status of the server according to the target data of each server includes: in response to the presence of a data greater than or equal to the corresponding basic data threshold among the central processing data, the bandwidth data and the middleware data; and / or, in response to the presence of a data greater than or equal to the corresponding business operation data threshold among the storage time and the download time, determining that the server status is a server abnormality.

[0012] In one embodiment, before the step of collecting target data of each server connected to the current node, wherein the target data includes basic data and business operation data of the server, the method further includes: in response to receiving a dynamic inspection instruction sent by a collection device, determining service address information according to device information of the collection device in the dynamic inspection instruction, wherein the service address information includes a current node for storing the pending business and a target storage location of the pending business in the current node; and storing the pending business received from the collection device in the target storage location of the current node.

[0013] In one embodiment, the method further includes: performing patrol processing on the cloud storage system with simulated business at preset intervals to obtain download information of the simulated business downloaded from the corresponding server of the cloud storage system; in response to the download information indicating that the simulated business after downloading is abnormal, determining that the corresponding server is abnormal, and reporting the abnormal server.

[0014] To solve the above technical problems, the present application provides an electronic device, including a memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the above-mentioned cloud storage-based node status determination method.

[0015] In order to solve the above technical problems, the present application provides a computer-readable storage medium including program data stored therein, and the program data is used to implement the above-mentioned cloud storage-based node status determination method when executed by a processor.

[0016] The above scheme collects target data of each server connected to the current node, the target data includes basic data and / or business data of the server; determines the server status of the server according to the target data of each server; in response to the server status characterizing that the server is abnormal and the number of abnormal servers in the current node is greater than the server number threshold, determines that the node status of the current node is a node abnormality. The server status can be judged based on at least one of the business operation data and basic data of the server, and the server status can be accurately determined, and then the node status connected to the server can be accurately determined. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0018] Figure 1 is a flowchart of an exemplary embodiment of a method for determining a node state based on cloud storage shown in the present application;

[0019] Figure 2 yes Figure 1 A flow chart of an exemplary embodiment of the node status determination method based on cloud storage after step S120 is shown;

[0020] Figure 3 yes Figure 2 A flow chart of an exemplary embodiment of the node status determination method based on cloud storage after step S220 is shown;

[0021] Figure 4 yes Figure 1 A flow chart of an exemplary embodiment of the node status determination method based on cloud storage before step S110 is shown;

[0022] Figure 5 is a flowchart of another exemplary embodiment of a method for determining a node state based on cloud storage shown in the present application;

[0023] Figure 6 is a block diagram of a cloud storage system shown in an exemplary embodiment of the present application;

[0024] Figure 7 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application;

[0025] Figure 8 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION

[0026] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be appreciated that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present application.

[0027] For details, please refer to Figure 1 , Figure 1 It is a flowchart of an exemplary embodiment of a node status determination method based on cloud storage shown in the present application.

[0028] The execution subject of the node state determination method based on cloud storage can be a terminal device or a server or other processing device, wherein the terminal device can be a user equipment (UE), a computer, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The execution subject of the node state determination method based on cloud storage can also be a cloud storage system. In some possible implementations, the node state determination method based on cloud storage can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0029] In the embodiment of the present application, the cloud storage system is used as the execution subject for explanation. At least two nodes are deployed in the cloud storage system of the embodiment of the present application to improve the high availability of the service, and each node is connected to at least two servers. Among them, the server can be used to receive the cloud image or cloud video uploaded by the acquisition device, and store the received cloud image or cloud video in the cloud storage system.

[0030] Specifically, the node status determination method based on cloud storage of this embodiment includes the following steps:

[0031] Step S110, collecting target data of each server connected to the current node, the target data including basic data and business operation data of the server.

[0032] The basic data of the server may be the central processing unit data (CPU), bandwidth data or middleware data of the server, etc. Among them, the middleware data may be a data indicator in the server.

[0033] Business operation data can be data when the server runs a specific business, that is, business tracking data. As an example, business operation data can be data that the server uploads received cloud images or cloud videos to cloud storage. As another example, business operation data can be data that the server processes based on received service inspection instructions.

[0034] It should be noted that the cloud storage system can use monitoring tools such as Zabbix and prometheus to collect target data.

[0035] Step S120, determining the server status of the server according to the target data of each server.

[0036] The server status includes normal server operation and abnormal server operation.

[0037] As an example, the cloud storage system determines the server abnormality based on the business operation data of each server, wherein the business operation data includes at least one of storage time and download time to determine the server status of the server. Specifically, the cloud storage system can determine the server status of the server based on at least one of storage time and download time. Specifically, if the business operation data includes the storage time when the data uploaded by the acquisition device connected to the server is stored in the cloud, the cloud storage system can determine whether the storage time is greater than or equal to the corresponding business operation data threshold. If the storage time is greater than or equal to the corresponding business operation data threshold, the server status is determined to be a server abnormality. If the business operation data includes the download time when the data uploaded by the acquisition device connected to the server is stored in the cloud, the cloud storage system can determine whether the download time is greater than or equal to the corresponding business operation data threshold. If the download time is greater than or equal to the corresponding business operation data threshold, the server status is determined to be a server abnormality. If the business operation data includes the storage time and download time for cloud storage of data uploaded by a collection device connected to the server, the cloud storage system determines whether there is a data in the storage time and the download time that is greater than or equal to the corresponding business operation data threshold. If so, the server status is determined to be a server abnormality.

[0038] As another example, the cloud storage system determines the server abnormality based on the basic data and business operation data of each server, wherein the business operation data includes at least one of storage time and download time to determine the server status of the server, and the basic data includes at least one of the central processing data, bandwidth data and middleware data of the server. The cloud storage system can determine the server status of the server based on at least one of the storage time and download time and at least one of the central processing data, bandwidth data and middleware data. Specifically, the cloud storage system determines whether there is a data in the central processing data, bandwidth data or middleware data that is greater than or equal to the corresponding basic data threshold, and determines whether there is a data in the storage time or download time that is greater than or equal to the corresponding business operation data threshold, and in response to the existence of a data in the central processing data, bandwidth data or middleware data that is greater than or equal to the corresponding basic data threshold, and the existence of a data in the storage time or download time that is greater than or equal to the corresponding business operation data threshold, the server status is determined to be a server abnormality.

[0039] As another example, the cloud storage system determines that the server is abnormal based on the basic data of each server, wherein the basic data includes at least one of the central processing data, bandwidth data, and middleware data of the server. The cloud storage system can determine the server status of the server based on at least one of the central processing data, bandwidth data, and middleware data. Specifically, the cloud storage system determines whether there is data in the central processing data, bandwidth data, or middleware data that is greater than or equal to the corresponding basic data threshold, and if so, determines that the server status is a server abnormality.

[0040] It should be noted that when the cloud storage system determines that the server is abnormal, it ends the collection and can report the abnormal server for processing to facilitate relevant staff to understand the abnormal server.

[0041] Step S130 , in response to the server status indicating that the server is abnormal and the number of abnormal servers in the current node is greater than or equal to a server number threshold, determining that the node status of the current node is node abnormal.

[0042] As an example, the server quantity threshold may be a preset value. As another example, the server quantity threshold may also be a value determined based on the number of historical abnormal servers. For example, the average number of historical abnormal servers of the current node is determined as the server quantity threshold, or the maximum value of the number of historical abnormal servers is determined as the server quantity threshold.

[0043] After the cloud storage system determines the server status of each server, it further determines whether the number of abnormal servers in the corresponding servers of each node is greater than or equal to the server number threshold. If so, it indicates that there are too many abnormal servers in the current node and the robustness of the current node is insufficient, which may easily lead to abnormal node operation. Therefore, the node status of the current node is determined to be node abnormality.

[0044] It can be seen that the node status determination method based on cloud storage in the embodiment of the present application collects the target data of each server connected to the current node, and the target data includes the basic data and business data of the server; determines the server status of the server according to the target data of each server; in response to the server status characterizing the server abnormality and the number of abnormal servers in the current node is greater than the server number threshold, the node status of the current node is determined to be a node abnormality. The server status can be judged based on at least one of the business operation data and basic data of the server, and the server status can be accurately determined, and then the node status connected to the server can be accurately determined.

[0045] Based on the above embodiment, the embodiment of the present application can also report the abnormal server. Figure 2 , Figure 2 yes Figure 1The flowchart of an exemplary embodiment after step S120 in the node status determination method based on cloud storage is shown. Specifically, after the process of determining the server status of the server according to the basic data and / or business operation data of each server in step S120, the node status determination method based on cloud storage in the embodiment of the present application further includes the following steps:

[0046] Step S210 , in response to the server status characterizing that the server is abnormal, a target data type of the target data is acquired, where the target data type of the target data includes a first data type of basic data and a second data type of business operation data.

[0047] The first data type is a type of central processing data for which the basic data belongs, or the first data type is a type of broadband data for which the basic data belongs.

[0048] The second data type is business operation data, which is a type representing time data.

[0049] When the cloud storage system determines that a server is abnormal, it can report the abnormal server, that is, push an alarm to relevant staff, and obtain the first data type of basic data and the second data type of business operation data.

[0050] Step S220, in response to the first data type being the first target type and / or the second data type being the first target type, reporting processing is performed to the server in a first warning manner.

[0051] The first target type is used to report and process in a first warning manner when the server is abnormal and the first data type and / or the second data type is the first target type.

[0052] The first warning method can be understood as the warning method corresponding to the highest warning level. For example, when the data type is determined to be the first target type, the reporting frequency is increased, for example, reporting once every 10 seconds, or reporting through various methods such as telephone, text message, etc. that can contact relevant staff.

[0053] As an example, if the cloud storage system determines that the first data type of the basic data is the first target type, the cloud storage system reports the server in a first warning mode. As another example, if the cloud storage system determines that the second data type of the business operation data is the first target type, the cloud storage system reports the server in a first warning mode. As yet another example, if the cloud storage system determines that the first data type of the basic data is the first target type and the second data type of the business operation data is the first target type, the cloud storage system reports the server in a first warning mode.

[0054] Step S230, in response to the first data type being the second target type and the second data type being the second target type, reporting processing is performed to the server in a second warning manner.

[0055] The second target type is used to report and process in a second warning manner when the server is abnormal and the first data type and the second data type are of the second target type.

[0056] The warning level of the second warning method is lower than that of the first warning method. It is understandable that the second warning method can be reported according to the general reporting frequency, for example, once every 4 hours, or only inform the relevant staff by text message.

[0057] When the cloud storage system determines that the first data type of the basic business is the second target type and the second data type of the business operation data is the second target type, the cloud storage system reports the server in the second warning mode.

[0058] It can be seen that the node status determination method based on cloud storage of the embodiment of the present application responds to the server status characterization server abnormality, obtains the first data type of basic data and the second data type of business operation data; responds to the first data type being the first target type and / or the second data type being the first target type, reports the server in the first warning mode; responds to the first data type being the second target type and the second data type being the second target type, reports the server in the second warning mode. When the server is abnormal, it can report and process in different warning modes according to the data types of basic data and / or business data, realize differentiated reporting, and enable relevant staff to carry out planned processing according to different warning modes.

[0059] Based on the above embodiments, the embodiments of the present application can also implement traffic scheduling between different nodes. Figure 3 , Figure 3 yes Figure 2 A flowchart of an exemplary embodiment after step S220 in the node status determination method based on cloud storage is shown. Specifically, after the process of reporting to the server in a first warning manner in response to the first data type being the first target type and / or the second data type being the first target type in step S220, the node status determination method based on cloud storage in the embodiment of the present application further includes the following steps:

[0060] Step S310, in response to detecting that the number of times the server reports in the first warning mode is greater than a number threshold, determining a target node from other nodes in the cloud storage system, where the other nodes are nodes in the cloud storage system other than the current node.

[0061] The number threshold is a preset value.

[0062] The target node refers to a node among other nodes that can be used for cloud storage. Other nodes are nodes in the cloud storage system other than the current node.

[0063] The cloud storage system determines whether to perform traffic scheduling according to the number of times the server reports in the first warning mode, that is, the robustness of the current node is determined according to the number of reports in the first warning mode, and when the robustness of the current node is insufficient, other nodes are scheduled for processing. Specifically, the cloud storage system obtains the number of times the server reports in the first warning mode, and if the cumulative number is greater than the number threshold, the target node is determined from other nodes in the cloud storage system. As for how to determine the target node, as an example, the cloud storage system can obtain the current idle load data of other nodes in the cloud storage system, wherein the current idle load data can characterize the current storage capacity of the node; and select the target node from other nodes according to the current idle load data of other nodes. Among them, the cloud storage system can use the node corresponding to the largest current idle load data as the target node. The cloud storage system can also determine whether the current idle load data of other nodes is greater than the preset load threshold, and if so, the corresponding node is determined as the target node. It should be noted that if there are multiple nodes whose current idle load data is greater than the preset load threshold, the node with the largest current idle load data can be selected as the target node. As another example, the cloud storage system may display the current idle load data of each node or each node in the cloud storage system in a visual manner, and determine the target node in response to the node selection operation of the relevant staff.

[0064] Step S320: dispatch the acquired to-be-processed business from the current node to the target node for processing.

[0065] The business to be processed may be cloud images or cloud videos collected by the collection device.

[0066] After determining the target node, cloud storage dispatches the pending business from the current node to the target node for processing to achieve traffic scheduling. It should be noted that after the relevant staff handles the abnormal server and the corresponding abnormal node returns to normal, the cloud storage system can respond to the staff's call back operation and further dispatch the unfinished tasks dispatched to the target node back to the current node for processing. In other embodiments, the cloud storage system can also perform automatic call back operations. Specifically, if the cloud storage system detects that the current node is normal within a preset time, it will automatically perform traffic call back processing, that is, dispatch the unfinished tasks dispatched to the target node back to the current node for processing.

[0067] It can be seen that the node status determination method based on cloud storage in the embodiment of the present application determines the target node from other nodes in the cloud storage system in response to detecting that the number of times the server reports in the first warning mode is greater than the number threshold, and the other nodes are nodes in the cloud storage system other than the current node; the acquired pending business is dispatched from the current node to the target node for processing. In this way, scheduling can be performed when the node is abnormal, avoiding the problem of low processing efficiency caused by node abnormality.

[0068] Based on the above examples, please refer to Figure 4 , Figure 4 yes Figure 1 The flowchart of an exemplary embodiment of the node status determination method based on cloud storage before step S110 is shown. Specifically, before step S110 collects the target data of each server connected to the current node, the target data includes the basic data and business operation data of the server, the node status determination method based on cloud storage in the embodiment of the present application also includes the following steps:

[0069] Step S410, in response to receiving a motion detection instruction sent by a collection device, determining service address information according to device information of the collection device in the motion detection instruction, the service address information including a current node for storing the service to be processed and a target storage location of the service to be processed in the current node.

[0070] The motion detection instruction refers to a dynamic detection instruction sent by a collection device connected to a server in a cloud storage system. The motion detection instruction may include device information of the collection device, such as ID information, etc. The task to be processed may be a video or image to be stored collected by the collection device.

[0071] The service address information includes a current node for storing the service to be processed and a target storage location of the service to be processed in the current node.

[0072] The acquisition device acquires data such as videos or images, generates a motion detection instruction based on the acquired videos or images, and sends the motion detection instruction to the cloud storage system. The cloud storage system parses the motion detection instruction, obtains the device information of the acquisition device, and determines the server address information based on the device information of the acquisition device. As an example, the cloud storage system can match the current node corresponding to the acquisition device and its target storage location in the current node from the cloud storage system based on the device ID of the acquisition device. For example, the cloud storage device parses out that the device ID of the acquisition device is City A, then the current node corresponding to City A is matched from the cloud storage system based on the device ID, and the target storage location of the task to be processed is determined from the current node. It should be noted that the motion detection instruction parsing can also be performed by the message center in the cloud storage system.

[0073] Step S420: storing the to-be-processed business sent by the received acquisition device into the target storage location of the current node.

[0074] It can be seen that the node status determination method based on cloud storage in the embodiment of the present application responds to the dynamic inspection instruction sent by the receiving acquisition device, determines the service address information according to the pending business in the dynamic inspection instruction, and the service address information includes the current node for storing the pending business and the target storage location of the pending business in the current node; the pending business is stored in the target storage location of the current node. By determining the matching of the current node from the cloud storage system for cloud storage through the device information of the acquisition device, the correlation between the acquisition device and the cloud storage can be improved, and the storage data management is convenient.

[0075] Based on the above embodiments, the embodiments of the present application can also perform active inspections to verify the accuracy of the detection of the triggered dynamic inspection. Figure 5 , Figure 5 is a flow chart of another exemplary embodiment of a method for determining node status based on cloud storage shown in the present application. Specifically, the method for determining node status based on cloud storage in the embodiment of the present application includes the following steps:

[0076] Step S510: Perform patrol processing on the cloud storage system with simulated services at preset intervals to obtain download information of simulated services downloaded from a corresponding server of the cloud storage system.

[0077] The simulated service may be a service generated by a simulated device in the cloud storage system, for example, uploading a virtual image or video generated by the simulated device, or querying or downloading a virtual image or video generated by the simulated device.

[0078] The preset interval time may be 1 minute or 10 minutes. For example, the simulated service may be uploaded at 1 minute intervals. For another example, the simulated service may be downloaded or queried at 10 minutes intervals.

[0079] The download information may be the download time of the simulated service from the corresponding server of the cloud storage system or the service size determined from the corresponding server of the cloud storage system.

[0080] The cloud storage system controls the simulated services generated by the simulated devices in the cloud storage system, and performs patrol inspections on the cloud storage system with simulated services at preset intervals, obtains download information of the simulated services downloaded from the corresponding server of the cloud storage system, and then determines whether the simulated services after downloading represented by the download information are abnormal. If so, step S520 is executed, and if not, the patrol inspection ends. Exemplarily, if the download time is less than or equal to the time threshold, or the service size is equal to the service size of the simulated service, then the simulated services after downloading represented by the download information are normal. If the download time is greater than the time threshold, or the service size is greater than or less than the service size of the simulated service, then the simulated services after downloading represented by the download information are abnormal.

[0081] Step S520: In response to the download information indicating that the simulated service after downloading is abnormal, it is determined that the corresponding server is abnormal, and the abnormal server is reported for processing.

[0082] The cloud storage system can obtain the inspection result by performing inspection processing, and judge whether the simulated service is abnormal according to the inspection result. Among them, the inspection result can be the upload situation of the simulated service, or the download or query situation of the simulated service. The cloud storage system can compare the inspection result with the preset result to determine whether the simulated service is abnormal. Specifically, as an example, the inspection result represents the actual upload information of the simulated service, and the preset result represents the preset upload information. The cloud storage system compares the actual upload information with the preset upload information. If the actual upload information is the same as the preset upload information, it represents the upload success, and vice versa. As another example, the inspection result represents the actual download information of the simulated service, and the preset result represents the preset download information. The cloud storage system compares the actual download information with the preset download information. If the actual download information is the same as the preset download information, the download information represents the download success; if the actual download information is not the same as the preset download information, the download information represents the download failure, that is, the simulated service download is abnormal. After determining that the simulated service after download represented by the download information is abnormal, the cloud storage system determines that the corresponding server is abnormal, and reports the abnormal server. It should be noted that the cloud storage system can continue to detect whether the server is abnormal before receiving the processing of the abnormal server by the relevant staff. If the number of server abnormalities detected is greater than the abnormal number threshold, traffic scheduling can be performed, that is, other nodes can be deployed to process the business. If the cloud storage system receives the processing of the abnormal server by the relevant staff, it will stop reporting the abnormal server and can call back the current node for business processing.

[0083] It can be seen that the node status determination method based on cloud storage in the embodiment of the present application performs patrol processing on the cloud storage system with simulated business at preset intervals, and obtains download information of simulated business downloaded from the corresponding server of the cloud storage system; in response to the download information indicating that the simulated business after download is abnormal, it is determined that the corresponding server is abnormal, and the abnormal server is reported. The abnormal situation of the server and node in the cloud storage system can be verified through automatic patrol, which improves the accuracy of status detection.

[0084] Figure 6 FIG. 1 is a block diagram of a cloud storage system shown in an exemplary embodiment of the present application. Figure 6 As shown, the exemplary cloud storage system 600 includes: a collection module 610, a server status determination module 620 and a node status determination module 630. Specifically:

[0085] The collection module 610 is used to collect target data of each server connected to the current node, and the target data includes basic data and business operation data of the server.

[0086] The server status determination module 620 is used to determine the server status of the server according to the basic data and / or business operation data of each server.

[0087] The node status determination module 630 is configured to determine that the node status of the current node is node abnormal in response to the server status indicating that the server is abnormal and the number of abnormal servers in the current node is greater than or equal to a server number threshold.

[0088] In this exemplary cloud storage, target data of each server connected to the current node is collected, and the target data includes basic data and business data of the server; the server status of the server is determined based on the basic data and / or business data of each server; in response to the server status characterizing the server abnormality and the number of abnormal servers in the current node being greater than the server number threshold, the node status of the current node is determined to be a node abnormality. The server status can be judged based on the business operation data of the server, or based on the basic data of the server combined with the business operation data of the server, which can improve the accuracy of the server status, and thus improve the accuracy of determining the node connected to the server.

[0089] The functions of each module can be found in the embodiment of the node status determination method based on cloud storage, which will not be described again here.

[0090] In order to implement the node status determination method based on cloud storage in the above embodiment, the present application proposes another electronic device, which can be specifically referred to as Figure 7 , Figure 7 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application.

[0091] The electronic device 700 includes a memory 701 and a processor 702 , wherein the memory 701 and the processor 702 are coupled.

[0092] The memory 701 is used to store program data, and the processor 702 is used to execute the program data to implement the node status determination method based on cloud storage of the above embodiment.

[0093] In this embodiment, the processor 702 may also be referred to as a CPU (Central Processing Unit). The processor 702 may be an integrated circuit chip having signal processing capabilities. The processor 702 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor 702 may also be any conventional processor, etc.

[0094] The present application also provides a computer-readable storage medium, such as Figure 8 As shown, the computer-readable storage medium 800 is used to store program data 801. When the program data 801 is executed by the processor, it is used to implement the node status determination method based on cloud storage in the method embodiment of the present application.

[0095] The method involved in the embodiment of the node status determination method based on cloud storage of the present application, when implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a device, such as a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0096] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A node status determination method based on cloud storage, characterized in that: The method is applied to a cloud storage system, the cloud storage system includes at least two nodes, each node is connected to at least two servers, and the method includes: Collect target data of each server connected to the current node, wherein the target data includes basic data and / or business operation data of the server; Determining a server status of the server according to target data of each server; In response to the server status indicating that the server is abnormal and the number of abnormal servers in the current node is greater than or equal to a server number threshold, it is determined that the node status of the current node is a node abnormality.

2. The node status determination method based on cloud storage according to claim 1, characterized in that: After the step of determining the server status of the server according to the target data of each server, the method further includes: In response to the server status characterizing that the server is abnormal, acquiring a target data type of the target data, the target data type of the target data including a first data type of the basic data and / or a second data type of the business operation data; In response to the first data type being a first target type and / or the second data type being the first target type, reporting processing is performed on the server in a first warning manner.

3. The node status determination method based on cloud storage according to claim 2, characterized in that: The method further comprises: In response to detecting that the number of times the server reports in the first warning manner is greater than a number threshold, determining a target node from other nodes in the cloud storage system, where the other nodes are nodes in the cloud storage system other than the current node; The acquired to-be-processed business is dispatched from the current node to the target node for processing.

4. The node status determination method based on cloud storage according to claim 3, characterized in that: The step of determining the target node from other nodes of the cloud storage system includes: Obtaining current idle load data of the other nodes; A target node is selected from the other nodes according to the current idle load data of the other nodes.

5. The node status determination method based on cloud storage according to claim 2, characterized in that: After the step of obtaining the target data type of the target data, wherein the target data type of the target data includes the first data type of the basic data and the second data type of the business operation data, the method further includes: In response to the first data type being the second target type and the second data type being the second target type, reporting processing is performed on the server in a second warning manner.

6. The node status determination method based on cloud storage according to claim 1, characterized in that: Each server is connected to at least two collection devices, the basic data includes at least one of central processing data, bandwidth data and middleware data of the server, and the business operation data includes at least one of storage time and download time when cloud storage is performed on data uploaded by the collection device connected to the server; The step of determining the server status of the server according to the target data of each server comprises: In response to a data among the central processing data, the bandwidth data and the middleware data being greater than or equal to a corresponding basic data threshold; and / or, In response to the fact that one of the storage time and the download time is greater than or equal to a corresponding business operation data threshold, it is determined that the server status is a server abnormality.

7. The node status determination method based on cloud storage according to claim 1, characterized in that: Before the step of collecting target data of each server connected to the current node, wherein the target data includes basic data and business operation data of the server, the method further includes: In response to receiving a motion detection instruction sent by a collection device, determining service address information according to device information of the collection device in the motion detection instruction, wherein the service address information includes a current node for storing the service to be processed and a target storage location of the service to be processed in the current node; The received business to be processed sent by the acquisition device is stored in the target storage location of the current node.

8. The node status determination method based on cloud storage according to claim 1, characterized in that: The method further comprises: Performing patrol processing on the cloud storage system with simulated services at preset intervals to obtain download information of the simulated services from a corresponding server of the cloud storage system; In response to the download information indicating that the simulated service after downloading is abnormal, it is determined that the corresponding server is abnormal, and the abnormal server is reported for processing.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: include: Program data is stored, and when the program data is executed by a processor, it is used to implement the method according to any one of claims 1 to 8.