A client fault optimization method, system, device and medium
By introducing monitoring services into the distributed storage system, the operating status of the client and server is collected and judged, which solves the problem of client connection abnormalities causing freezing, realizes the monitoring of client status and fault recovery, and improves system reliability.
Patent Information
- Application Number
- CN202310180166.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2043-02-24
AI Technical Summary
In a distributed storage system, abnormal connections between the client and the data service can cause the client to be unable to perceive the server status, resulting in a deadlock. Existing technologies are unable to effectively monitor and handle such abnormalities.
The distributed storage system's monitoring service collects the operating status of the client and server, determines anomalies, and sends abnormal status information and processing methods, including link status and resource usage comparison, to achieve client status monitoring and recovery operations.
It improves the reliability of the storage system, avoids client freezing due to link anomalies, and enables real-time monitoring of client status and fault recovery.
Smart Images

Figure CN116170284B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computers, and in particular relates to a client fault optimization method, system, device and medium. Background Art
[0002] In a distributed storage system, there are three services: the metadata service, the data service, and the monitor service. The metadata service manages the metadata portion of files, the data service manages the data portion, and the monitor service manages the health of the entire distributed storage system, including both metadata and data services. However, the storage system monitor service is unaware of client status, particularly when the link between the client and the data service is abnormal (half-open). Because the link between the client and the data service is established dynamically, it is only established when data is being exchanged; it is disconnected when no data is required. Frequent establishment and disconnection can lead to anomalies, causing the client to detect a normal socket connection, but lack a corresponding socket connection on the data service side, resulting in client access to the storage system being blocked. In this case, because the storage system cannot monitor the status of the private client, it is unaware of the client anomaly.
[0003] Therefore, an effective solution is urgently needed to solve the above problems. Summary of the Invention
[0004] To solve the above problems, the present invention proposes a client fault optimization method, comprising:
[0005] Collecting the business operation status of the private client and the server, and determining whether the private client and the server are abnormal in a predetermined manner based on the operation status of the private client and the server;
[0006] The abnormal state information and / or processing method of the abnormal terminal is sent to the non-abnormal terminal according to the judgment result.
[0007] In some embodiments of the present invention, determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes:
[0008] The running status of the private client and the server is determined according to the link status established between the private client and the server.
[0009] In some embodiments of the present invention, collecting the service operation status of the private client and the server includes:
[0010] The client is mounted to the monitoring service of the distributed storage system, and the monitoring service of the distributed storage system collects and saves the connection status of the client connected to the server of the corresponding business of the distributed storage system.
[0011] In some embodiments of the present invention, collecting the service operation status of the private client and the server includes:
[0012] The status of the link established between the server serving the corresponding business of the client on the distributed storage system and the client is collected and saved through the monitoring service of the distributed storage system.
[0013] In some embodiments of the present invention, the method further comprises:
[0014] The link states of the same service collected from the private client and the server are compared, and the abnormal state of the private client or server whose comparison result shows abnormality is sent to the normal private client or server.
[0015] In some embodiments of the present invention, determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes:
[0016] The running status of the private client and the server is determined according to the resource status occupied by the private client and the server during running.
[0017] In some embodiments of the present invention, determining the operating status of the private client and the server according to the resource status occupied by the private client and the server during operation includes:
[0018] Obtaining resources occupied by the private client and the server when they are running, and comparing the resources occupied by the private client and the server when they are running with a predetermined threshold;
[0019] In response to the private client and the server occupying more than the predetermined threshold when running, the private client or the server is identified as abnormal; or
[0020] The resources occupied by multiple private clients or multiple servers during operation are compared, and a client or server that exceeds a predetermined range of an average value of the occupied resources is identified as abnormal.
[0021] Another aspect of the present invention further provides a client fault optimization system, comprising:
[0022] An abnormality analysis module configured to collect the business operation status of the private client and the server, and determine whether the private client and the server have abnormalities in a predetermined manner based on the operation status of the private client and the server;
[0023] The exception handling module is configured to send the abnormal state information and / or handling method of the abnormal terminal to the non-abnormal terminal according to the judgment result.
[0024] Yet another aspect of the present invention provides a computer device, comprising:
[0025] at least one processor; and
[0026] A memory storing computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of any one of the methods described in the above embodiments.
[0027] Another aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the methods described in the above embodiments are implemented.
[0028] The present invention proposes a client fault optimization method that incorporates client status into the monitoring scope of the distributed storage system Monitor service. The client collects status information and reports it to the distributed storage system Monitor service, enabling the storage system to monitor client status. Not only does the storage system monitor client status and display information, but in certain fault scenarios, the storage system Monitor service compares the collected server and client status information, determines the anomaly, and notifies the client to complete the corresponding recovery operations, thereby improving the reliability of the storage system. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 A schematic diagram of a process flow of a client fault optimization method provided by an embodiment of the present invention;
[0031] Figure 2 A schematic diagram of the structure of a client fault optimization system provided by an embodiment of the present invention;
[0032] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention;
[0033] Figure 4A schematic structural diagram of a computer-readable storage medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
[0035] The present invention aims to solve the problem of linking a private client with each server of a distributed storage system in a traditional distributed storage system.
[0036] In a distributed storage system, private clients communicate with the distributed storage system, storing or retrieving data from it over the network. During this process, private clients can become "stuck." This occurs when a data storage service in the distributed storage system experiences an anomaly without the client's knowledge. This causes the client to wait for a response from the server after transferring data, leading to a client crash in severe cases.
[0037] like Figure 1 To solve the above problems, the present invention proposes a client fault optimization method, comprising:
[0038] Step S1: collecting the service operation status of the private client and the server, and determining whether the private client and the server are abnormal in a predetermined manner based on the operation status of the private client and the server;
[0039] Step S2: Send the abnormal status information and / or processing method of the abnormal terminal to the non-abnormal terminal according to the judgment result.
[0040] In step S1, the running status of the private client and the server refers to the computer resources required by the software or related processes running on the computer of the private client and the server, including: CPU resource occupancy, memory resource occupancy, available memory resources, network bandwidth occupancy and remaining available bandwidth, the number and status of links established between the server and the client, etc. The computer resource information occupied by the private client on the corresponding device is collected on the private client. The status of the client is further judged based on the occupied computer resource information, for example, the status of the client is judged by comparing the occupied CPU resources and memory resources with the resources occupied by the client under normal circumstances. The same applies to the server. The server refers to the software end of the data storage service in the distributed storage system on the server, for example, the metadata server, data server and other functional modules in the distributed storage system.
[0041] Furthermore, the associated operational status data of the private client and the server is compared. For example, since both the private client and the server require a network for communication, their bandwidth and connection status should be common. Therefore, the status of the private client and server can be determined based on the comparison of the connection status and bandwidth status. For example, if the server crashes and fails to properly terminate the connection with the private client, the private client will still display the server as normal. In traditional implementations, the private client will maintain the old connection, causing it to wait for a response from the server.
[0042] Therefore, in this embodiment, the status of the link established with the server is collected on the private client, and the status of the link established between the server and the private client is collected on the server. The two are compared. If the status of the link is displayed as normal (espadlished) on the private client, but there is no relevant information about this link on the server or it is in another state, it is considered that an abnormality has occurred on the server.
[0043] In step S2, as mentioned above, assuming that an exception occurs on the server, information indicating that the server is abnormal and how the client should handle the exception is sent to the private client.
[0044] In some embodiments of the present invention, determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes:
[0045] The running status of the private client and the server is determined according to the link status established between the private client and the server.
[0046] In some embodiments of the present invention, collecting the service operation status of the private client and the server includes:
[0047] The client is mounted to the monitoring service of the distributed storage system, and the monitoring service of the distributed storage system collects and saves the connection status of the client connected to the server of the corresponding business of the distributed storage system.
[0048] In traditional implementations, the distributed storage system's Monitor service, or the monitoring service within the distributed storage system, monitors the server's operational status. Therefore, to ensure the integration of the distributed system, in this embodiment, the private client is also mounted on the distributed storage system's Monitor service to collect the private client and server's operational status. The private client periodically sends information about its computer resources, particularly the status of its connections to distributed system servers such as the metadata server and data server, to the distributed storage system's Monitor service. The distributed storage system's Monitor service receives and stores this information.
[0049] In some embodiments of the present invention, collecting the service operation status of the private client and the server includes:
[0050] The status of the link established between the server serving the corresponding business of the client on the distributed storage system and the client is collected and saved through the monitoring service of the distributed storage system.
[0051] In some embodiments of the present invention, the method further comprises:
[0052] The link states of the same service collected from the private client and the server are compared, and the abnormal state of the private client or server whose comparison result shows abnormality is sent to the normal private client or server.
[0053] In this embodiment, the monitoring service of the distributed storage system compares the status of the links established by the private client and the server. If the comparison finds that the status of the server is abnormal and the status of the private client is normal, the abnormal status of the corresponding server will be notified to the private client and the private client will be asked to re-establish a new link with the server. Distributed storage systems generally use half-open links. If the storage system detects an abnormality, the corresponding link can be reset. This operation is safe and will not cause data loss.
[0054] If the comparison result between a private client and a server shows that the server maintains the link, but the private client shows that the link has been abandoned or there is no link with the server, then the monitoring service of the distributed storage system will feedback this situation to the server and inform the server to clear the corresponding link.
[0055] The private client and server exception in this embodiment refers to the exception of one or more network links established by the private client and server. In a computer, a network port can establish network links with multiple devices. Usually, the server uses a certain port to establish network links with many private clients, but there are some unexpected situations that cause the link with a certain client to be abnormally disconnected.
[0056] In some embodiments of the present invention, determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes:
[0057] The running status of the private client and the server is determined according to the resource status occupied by the private client and the server during running.
[0058] In this embodiment, the determination of whether a private client and service level are abnormal is based on the resource status of the private client and server during operation. For example, if the network bandwidth used by the data sent from the private client is 12MB per second, but the transmission bandwidth of the link established between the server (corresponding to the data server in the distributed storage system receiving the data) and the private client is less than 12MB, the corresponding network data will be discarded. Therefore, the distributed server's monitoring service notifies the client of the network transmission anomaly, and the private client can be instructed to reduce its upload bandwidth accordingly.
[0059] In some embodiments of the present invention, determining the operating status of the private client and the server according to the resource status occupied by the private client and the server during operation includes:
[0060] Obtaining resources occupied by the private client and the server when they are running, and comparing the resources occupied by the private client and the server when they are running with a predetermined threshold;
[0061] In response to the private client and the server occupying more than the predetermined threshold when running, the private client or the server is identified as abnormal; or
[0062] The resources occupied by multiple private clients or multiple servers during operation are compared, and a client or server that exceeds a predetermined range of an average value of the occupied resources is identified as abnormal.
[0063] In this embodiment, the general usage rate of memory and computing resources for the same data is calculated based on the resource usage of the private client and the server for processing the corresponding data business. For example, if a private client sends 100MB of data to the server, the local memory space used by the private client is 10MB (assuming only 10MB of data is stored in the memory as cache) and only a small amount of CPU resources are required. However, the memory space used by the private client (assuming there is only one transmission task) exceeds 25% of 10MB, which is 13MB. In this case, an abnormality exists in the private client. The monitoring service of the distributed storage system notifies the server to disconnect from the private client and notifies the private client to restart or reload the corresponding task.
[0064] In some embodiments of the present invention, the average value of computer resource consumption when multiple private clients process transmission tasks of the same size or unit size is calculated, and then based on the average value as a reference, if the computer resources used by the client processing data of the same size or unit size exceeds a certain range, the corresponding private client is identified as abnormal.
[0065] For the server, the average value of computer resources consumed by the server for processing data transfer tasks of a certain size or unit size is calculated. The server then evaluates whether the computer resources consumed by the server for a private client exceeds the average value and falls outside a predetermined range. If so, it indicates an exception occurred while processing the task.
[0066] In some embodiments of the present invention, if there are multiple servers processing the same task in a distributed system, the resource usage of the server is determined and the status is evaluated in the same manner as a private client.
[0067] Example:
[0068] The private client is mounted on the distributed storage system and establishes a link with the metadata service, data service and Monitor service of the storage system; the private client regularly checks its own status, including the link status, memory usage, etc., and sends it to the Monitor server through the link; the storage system Monitor service regularly collects the status of various components including the metadata service, data service and client; the storage system performs consistency comparison on the information collected multiple times to determine whether there is any abnormality in the private client; the private client receives the storage system abnormality information and responds accordingly; for a half-open link, if the storage system determines that it is abnormal, the corresponding link can be reset. This operation is safe and will not cause data loss; at the same time, the storage system can display the client status in real time; when the client is uninstalled, the storage system Monitor terminates monitoring of the client.
[0069] The present invention proposes a client fault optimization method that incorporates client status into the monitoring scope of the distributed storage system Monitor service. The client collects status information and reports it to the distributed storage system Monitor service, enabling the storage system to monitor client status. Not only does the storage system monitor client status and display information, but in certain fault scenarios, the storage system Monitor service compares the collected server and client status information, determines the anomaly, and notifies the client to complete the corresponding recovery operations, thereby improving the reliability of the storage system.
[0070] Another aspect of the present invention further provides a client fault optimization system, comprising:
[0071] Anomaly analysis module 1, configured to collect the business operation status of the private client and the server, and determine whether the private client and the server have any abnormalities based on the operation status of the private client and the server in a predetermined manner;
[0072] The exception handling module 2 is configured to send the abnormal state information and / or processing method of the abnormal terminal to the non-abnormal terminal according to the judgment result.
[0073] In some embodiments of the present invention, the abnormality analysis module 1 is further configured to:
[0074] The running status of the private client and the server is determined according to the link status established between the private client and the server.
[0075] In some embodiments of the present invention, the abnormality analysis module 1 is further configured to:
[0076] The client is mounted to the monitoring service of the distributed storage system, and the monitoring service of the distributed storage system collects and saves the connection status of the client connected to the server of the corresponding business of the distributed storage system.
[0077] In some embodiments of the present invention, the abnormality analysis module 1 is further configured to:
[0078] The status of the link established between the server serving the corresponding business of the client on the distributed storage system and the client is collected and saved through the monitoring service of the distributed storage system.
[0079] In some embodiments of the present invention, the abnormality analysis module 1 is further configured to:
[0080] The link states of the same service collected from the private client and the server are compared, and the abnormal state of the private client or server whose comparison result shows abnormality is sent to the normal private client or server.
[0081] In some embodiments of the present invention, the abnormality analysis module 1 is further configured to:
[0082] The running status of the private client and the server is determined according to the resource status occupied by the private client and the server during running.
[0083] In some embodiments of the present invention, the abnormality analysis module 1 is further configured to:
[0084] Obtaining resources occupied by the private client and the server when they are running, and comparing the resources occupied by the private client and the server when they are running with a predetermined threshold;
[0085] In response to the private client and the server occupying more than the predetermined threshold when running, the private client or the server is identified as abnormal; or
[0086] The resources occupied by multiple private clients or multiple servers during operation are compared, and a client or server that exceeds a predetermined range of an average value of the occupied resources is identified as abnormal.
[0087] like Figure 3 As shown, another aspect of the present invention further provides a computer device, comprising:
[0088] at least one processor 21; and
[0089] A memory 22, wherein the memory 22 stores computer instructions 23 that can be run on the processor 21, and when the instructions 23 are executed by the processor 21, a method for optimizing client faults is implemented, including:
[0090] Collecting the business operation status of the private client and the server, and determining whether the private client and the server are abnormal in a predetermined manner based on the operation status of the private client and the server;
[0091] The abnormal state information and / or processing method of the abnormal terminal is sent to the non-abnormal terminal according to the judgment result.
[0092] In some embodiments of the present invention, determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes:
[0093] The running status of the private client and the server is determined according to the link status established between the private client and the server.
[0094] In some embodiments of the present invention, collecting the service operation status of the private client and the server includes:
[0095] The client is mounted to the monitoring service of the distributed storage system, and the monitoring service of the distributed storage system collects and saves the connection status of the client connected to the server of the corresponding business of the distributed storage system.
[0096] In some embodiments of the present invention, collecting the service operation status of the private client and the server includes:
[0097] The status of the link established between the server serving the corresponding business of the client on the distributed storage system and the client is collected and saved through the monitoring service of the distributed storage system.
[0098] In some embodiments of the present invention, the method further comprises:
[0099] The link states of the same service collected from the private client and the server are compared, and the abnormal state of the private client or server whose comparison result shows abnormality is sent to the normal private client or server.
[0100] In some embodiments of the present invention, determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes:
[0101] The running status of the private client and the server is determined according to the resource status occupied by the private client and the server during running.
[0102] In some embodiments of the present invention, determining the operating status of the private client and the server according to the resource status occupied by the private client and the server during operation includes:
[0103] Obtaining resources occupied by the private client and the server when they are running, and comparing the resources occupied by the private client and the server when they are running with a predetermined threshold;
[0104] In response to the private client and the server occupying more than the predetermined threshold when running, the private client or the server is identified as abnormal; or
[0105] The resources occupied by multiple private clients or multiple servers during operation are compared, and a client or server that exceeds a predetermined range of an average value of the occupied resources is identified as abnormal.
[0106] like Figure 4As shown, another aspect of the present invention further provides a computer-readable storage medium 401, wherein the computer-readable storage medium 401 stores a computer program 402. When the computer program 402 is executed by a processor, a method for optimizing client faults is implemented, including:
[0107] Collecting the business operation status of the private client and the server, and determining whether the private client and the server are abnormal in a predetermined manner based on the operation status of the private client and the server;
[0108] The abnormal state information and / or processing method of the abnormal terminal is sent to the non-abnormal terminal according to the judgment result.
[0109] In some embodiments of the present invention, determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes:
[0110] The running status of the private client and the server is determined according to the link status established between the private client and the server.
[0111] In some embodiments of the present invention, collecting the service operation status of the private client and the server includes:
[0112] The client is mounted to the monitoring service of the distributed storage system, and the monitoring service of the distributed storage system collects and saves the connection status of the client connected to the server of the corresponding business of the distributed storage system.
[0113] In some embodiments of the present invention, collecting the service operation status of the private client and the server includes:
[0114] The status of the link established between the server serving the corresponding business of the client on the distributed storage system and the client is collected and saved through the monitoring service of the distributed storage system.
[0115] In some embodiments of the present invention, the method further comprises:
[0116] The link states of the same service collected from the private client and the server are compared, and the abnormal state of the private client or server whose comparison result shows abnormality is sent to the normal private client or server.
[0117] In some embodiments of the present invention, determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes:
[0118] The running status of the private client and the server is determined according to the resource status occupied by the private client and the server during running.
[0119] In some embodiments of the present invention, determining the operating status of the private client and the server according to the resource status occupied by the private client and the server during operation includes:
[0120] Obtaining resources occupied by the private client and the server when they are running, and comparing the resources occupied by the private client and the server when they are running with a predetermined threshold;
[0121] In response to the private client and the server occupying more than the predetermined threshold when running, the private client or the server is identified as abnormal; or
[0122] The resources occupied by multiple private clients or multiple servers during operation are compared, and a client or server that exceeds a predetermined range of an average value of the occupied resources is identified as abnormal.
[0123] Finally, it should be noted that those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM). The embodiments of the computer program can achieve the same or similar effects as any of the corresponding embodiments of the above-mentioned methods.
[0124] Furthermore, typically, the devices and equipment disclosed in the embodiments of the present invention may be various electronic terminal devices, such as mobile phones, personal digital assistants (PDAs), tablet computers (PADs), smart televisions, etc., or large terminal devices, such as servers. Therefore, the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of device or equipment. The client disclosed in the embodiments of the present invention may be implemented in any of the above-mentioned electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
[0125] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method disclosed in the embodiment of the present invention are performed.
[0126] In addition, the above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
[0127] In addition, it should be understood that the computer-readable storage medium (e.g., memory) described herein can be volatile memory or non-volatile memory, or can include both volatile memory and non-volatile memory. By way of example and not limitation, non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM can be obtained in many forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
[0128] It will also be appreciated by those skilled in the art that the various exemplary logic blocks, modules, circuits, and algorithmic steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given of the functions of various schematic components, blocks, modules, circuits, and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the described function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0129] The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein may be implemented or performed using 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 device, discrete gate or transistor logic, discrete hardware components, or any combination of these components, designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and / or any other such configuration.
[0130] The steps of the method or algorithm described in conjunction with the disclosure herein can be directly included in hardware, in a software module executed by a processor, or in a combination of the two. The software module can reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or a storage medium of any other form known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium or write information to the storage medium. In an alternative, the storage medium can be integrated with the processor. The processor and the storage medium can reside in an ASIC. The ASIC can reside in a user terminal. In an alternative, the processor and the storage medium can reside in a user terminal as discrete components.
[0131] In one or more exemplary designs, the functions can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transmit a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. As an example and not limitation, the computer-readable medium can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of instructions or data structures and can be accessed by a general-purpose or special-purpose computer or a general-purpose or special-purpose processor. In addition, any link can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves are used to send software from a website, server, or other remote source, the above-mentioned coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are all included in the definition of medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Claims
1. A method for optimizing client faults, characterized in that: include: Collecting the business operation status of the private client and the server, and determining whether the private client and the server are abnormal in a predetermined manner based on the operation status of the private client and the server; Send the abnormal status information and / or processing method of the abnormal terminal to the non-abnormal terminal according to the judgment result; The private client collects the link status established with the server, and the server collects the link status established with the private client, and compares the two; If the private client displays a normal connection status, but the server does not have the connection status or is in another status, the server is deemed abnormal. If the server has a maintained link, but the private client does not exist or has abandoned the corresponding link, the monitoring service of the distributed storage system will provide feedback to the server and inform it to clear the maintained link.
2. The method according to claim 1, characterized in that The determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes: The running status of the private client and the server is determined according to the link status established between the private client and the server.
3. The method according to claim 2, characterized in that Also includes: The client is mounted to the monitoring service of the distributed storage system, and the monitoring service of the distributed storage system collects and saves the connection status of the client connected to the server of the corresponding business of the distributed storage system.
4. The method according to claim 3, characterized in that Also includes: The status of the link established between the server serving the corresponding business of the client on the distributed storage system and the client is collected and saved through the monitoring service of the distributed storage system.
5. The method according to claim 4, characterized in that Also includes: The link states of the same service collected from the private client and the server are compared, and the abnormal state of the private client or server whose comparison result shows abnormality is sent to the normal private client or server.
6. The method according to claim 1, characterized in that The determining whether an abnormality occurs in the private client and the server in a predetermined manner based on the operating status of the private client and the server includes: The running status of the private client and the server is determined according to the resource status occupied by the private client and the server during running.
7. The method according to claim 5, characterized in that The determining of the operating status of the private client and the server according to the resource status occupied by the private client and the server during operation includes: Obtaining resources occupied by the private client and the server when they are running, and comparing the resources occupied by the private client and the server when they are running with a predetermined threshold; In response to the private client and the server occupying more than the predetermined threshold when running, the private client or the server is identified as abnormal; or The resources occupied by multiple private clients or multiple servers during operation are compared, and a client or server that exceeds a predetermined range of an average value of the occupied resources is identified as abnormal.
8. A client fault optimization system, characterized in that: include: An abnormality analysis module configured to collect the business operation status of the private client and the server, and determine whether the private client and the server have abnormalities in a predetermined manner based on the operation status of the private client and the server; An exception handling module configured to send abnormal status information and / or handling methods of the abnormal terminal to the non-abnormal terminal according to the judgment result; And modules for performing the following functions: The private client collects the link status established with the server, and the server collects the link status established with the private client, and compares the two; If the private client displays a normal connection status, but the server does not have the connection status or is in another status, the server is deemed abnormal. If the server has a maintained link, but the private client does not exist or has abandoned the corresponding link, the monitoring service of the distributed storage system will provide feedback to the server and inform it to clear the maintained link.
9. A computer device, characterized in that: include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 7 when executed by a processor.