Information determination method and device, equipment, storage medium and computer program product

By obtaining the performance information and target information of the cloud disk, combining file operation status and directory topology information, the working status of the cloud disk is determined, and the problem of inaccurate working status in the existing technology is solved, and a more accurate cloud disk status evaluation is achieved.

CN119938473APending Publication Date: 2025-05-06CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411998534.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The prior art only considers performance indicators when determining the working status of cloud disks, resulting in inaccurate working status.

Method used

By obtaining the performance information and target information of the storage device to be processed, multiple detection parameters are determined based on the performance information and target information, and combining the file operation status, directory topology information and abnormal detection situation, the working status of the storage device to be processed is determined.

Benefits of technology

Improve the accuracy of cloud disk working status, combine performance information and directory structure-related information, and ensure a comprehensive evaluation of working status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938473A_ABST
    Figure CN119938473A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an information determination method. The method comprises the steps of obtaining performance information of to-be-processed storage equipment and target information corresponding to the to-be-processed storage equipment; wherein the target information is information which is generated when the to-be-processed storage device is operated and is related to files in the to-be-processed storage device and a directory structure of a file system corresponding to the to-be-processed storage device; determining a plurality of detection parameters for the to-be-processed storage device based on the performance information and the target information; and determining the working state of the to-be-processed storage device based on the plurality of detection parameters, thereby solving the problem that the determined working state is inaccurate when the working state of the cloud disk is determined in related technologies. The embodiment of the invention further discloses an information determination device and equipment, a computer storage medium and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to information determination technology in the field of computer technology, and in particular to an information determination method, device, equipment, storage medium and computer program product. Background Art

[0002] In order to ensure the persistence of data, data is usually stored in a local hard disk (hereinafter referred to as: local disk). Although the local disk is fast, stable and secure, it can only be accessed through local devices and cannot be accessed remotely. In addition, the storage capacity of the local disk is fixed and cannot be expanded. With the rapid development of Internet technology, cloud disk storage is increasingly widely used in daily life due to its scalability and remote access. Based on this, how to timely determine the abnormal status of the cloud disk to ensure the stability of the cloud database system has become extremely important. At present, the relevant technology usually determines whether the working status of the cloud disk is abnormal by detecting the performance indicators such as the utilization rate of the central processing unit (CPU) and the memory utilization rate of the cloud disk. However, since only the performance indicators of the cloud disk are considered when determining whether the working status of the cloud disk is abnormal, the working status of the determined cloud disk is inaccurate. Summary of the invention

[0003] To solve the above technical problems, the embodiments of the present application hope to provide an information determination method, apparatus, device, computer storage medium and computer program product, which solves the problem of inaccurate working status determined when determining the working status of a cloud disk in the related art.

[0004] The technical solution of this application is implemented as follows:

[0005] A method for determining information, the method comprising:

[0006] Acquire performance information of a storage device to be processed and target information corresponding to the storage device to be processed; wherein the target information is information related to files in the storage device to be processed and a directory structure of a file system corresponding to the storage device to be processed, which is generated when the storage device to be processed is operated;

[0007] Based on the performance information and the target information, determining a plurality of detection parameters for the storage device to be processed;

[0008] Based on the multiple detection parameters, the working status of the storage device to be processed is determined.

[0009] In the above solution, the determining of a plurality of detection parameters for the storage device to be processed based on the performance information and the target information includes:

[0010] Determine a first detection parameter for the storage device to be processed based on the performance information and the target cyclic network model;

[0011] Determine a second detection parameter for the storage device to be processed based on the operation state of the file; wherein the operation state is the state of the file when the file is operated;

[0012] Based on the topology information of the directories in the file system and / or the abnormal detection of the files, determine the third detection parameter for the storage device to be processed; wherein the topology information represents the hierarchical relationship between multiple directories; and the target information includes the operation status and the topology information.

[0013] In the above solution, the determining of the first detection parameter for the storage device to be processed based on the performance information and the target cyclic network model includes:

[0014] Processing a plurality of performance parameters of the storage device to be processed to obtain processed performance parameters; wherein the performance information includes the plurality of performance parameters;

[0015] constructing a first vector based on the plurality of processed performance parameters;

[0016] The first vector is processed using the target recurrent network model to obtain a second vector, and the first detection parameter is determined based on the second vector.

[0017] In the above solution, the determining of the second detection parameter for the storage device to be processed based on the operation status of the file includes:

[0018] Determine the connection status between the storage device to be processed and the target management platform;

[0019] The second detection parameter is determined based on the operation state and / or the connection state.

[0020] In the above solution, determining the second detection parameter based on the operation state and / or the connection state includes:

[0021] If there is no abnormality in the connection state and there is no abnormality in the operation state, determining the first threshold as the second detection parameter;

[0022] If there is an abnormality in the connection state or there is an abnormality in the operation state, a second threshold is determined as the second detection parameter.

[0023] In the above solution, the determining of the third detection parameter for the storage device to be processed based on the topology information of the directory in the file system and the abnormality detection condition of the file includes:

[0024] Matching the topology information with the historical topology information of the directory;

[0025] If the topology information matches the historical topology information and there is no abnormality in the file, determining the first threshold as the third detection parameter;

[0026] If the topology information does not match the historical topology information, or there is an abnormality in the file, the second threshold is determined to be the third detection parameter.

[0027] In the above solution, determining the working state of the storage device to be processed based on the multiple detection parameters includes:

[0028] Determine the weight corresponding to each detection parameter;

[0029] Determining a target parameter based on the plurality of detection parameters and the plurality of weights;

[0030] If the target parameter is less than or equal to the target threshold, it is determined that the storage device to be processed is in a normal working state;

[0031] If the target parameter is greater than the target threshold, it is determined that the storage device to be processed is in an abnormal working state.

[0032] In the above scheme, the method further comprises:

[0033] If the working state is in the abnormal working state, the storage directory of the file system is switched to the first mount directory corresponding to the basic storage device, and the data corresponding to the file system is stored in the storage area corresponding to the first mount directory in the basic storage device; wherein the file system is mounted with the storage device to be processed and the basic storage device.

[0034] In the above scheme, the method further comprises:

[0035] If the working status returns to normal, the storage directory is switched from the first mount directory corresponding to the basic storage device to the second mount directory corresponding to the storage device to be processed, and the data corresponding to the file system is stored in the storage area corresponding to the second mount directory in the storage device to be processed.

[0036] An information determination device, the device comprising:

[0037] An acquisition unit, used to acquire performance information of a storage device to be processed and target information corresponding to the storage device to be processed; wherein the target information is information related to files in the storage device to be processed and a directory structure of a file system corresponding to the storage device to be processed, which is generated when the storage device to be processed is operated;

[0038] A first determining unit, configured to determine a plurality of detection parameters for the storage device to be processed based on the performance information and the target information;

[0039] The second determining unit is used to determine the working state of the storage device to be processed based on the multiple detection parameters.

[0040] An information determination device, the device comprising: a processor, a memory, and a communication bus;

[0041] The communication bus is used to realize the communication connection between the processor and the memory;

[0042] The processor is used to execute the information determination program in the memory to implement the steps of the above-mentioned information determination method.

[0043] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned information determination method.

[0044] A computer program product comprises a computer program, wherein the computer program implements the above-mentioned information determination method when executed by a processor.

[0045] The information determination method, device, equipment, storage medium and computer program product provided in the embodiments of the present application can obtain the performance information of the storage device to be processed and the target information corresponding to the storage device to be processed; wherein the target information is information related to the files in the storage device to be processed and the directory structure of the file system corresponding to the storage device to be processed generated when the storage device to be processed is operated; based on the performance information and the target information, multiple detection parameters for the storage device to be processed are determined; based on the multiple detection parameters, the working state of the storage device to be processed is determined; in this way, the performance information of the storage device to be processed and the target information related to the directory structure of the files and file system in the storage device to be processed can be combined to determine the working state of the storage device to be processed, that is, when determining the working state of the storage device to be processed, not only the performance information of the storage device to be processed itself is considered, but also the information related to the directory structure of the files and file system in the storage device to be processed is considered, instead of only considering the performance indicators of the cloud disk when determining the working state of the cloud disk as in the related art, solving the problem of inaccurate working state determination in the related art when determining the working state of the cloud disk. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A flowchart of an information determination method provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of an information determination system corresponding to an information determination method provided in an embodiment of the present application;

[0048] Figure 3 A flowchart of another information determination method provided in an embodiment of the present application;

[0049] Figure 4 A schematic diagram of a flow chart of a target cyclic network model in an information determination method provided in an embodiment of the present application;

[0050] Figure 5 A flowchart of switching a storage directory in an information determination method provided in an embodiment of the present application;

[0051] Figure 6 A schematic diagram of cloud disk switching in an information determination method provided in an embodiment of the present application;

[0052] Figure 7 A schematic diagram of the structure of an information determination device provided in an embodiment of the present application;

[0053] Figure 8 A schematic diagram of the structure of an information determination device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] 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.

[0055] It should be understood that the "embodiments of the present application" or "the aforementioned embodiments" mentioned throughout the specification mean that specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, "in the embodiments of the present application" or "in the aforementioned embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0056] Unless otherwise specified, the electronic device performs any step in the embodiments of the present application, and the processor of the electronic device may perform the step. It is also worth noting that the embodiments of the present application do not limit the order in which the electronic device performs the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the electronic device, that is, when the electronic device executes any step in the following embodiments, it may not rely on the execution of other steps.

[0057] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0058] The present application embodiment provides a method for determining information, referring to Figure 1 As shown, the method may include the following steps:

[0059] Step 101: Acquire performance information of a storage device to be processed and target information corresponding to the storage device to be processed.

[0060] The target information is information generated when operating the storage device to be processed and related to files in the storage device to be processed and the directory structure of the file system corresponding to the storage device to be processed.

[0061] In the embodiment of the present application, the storage device to be processed may refer to a device for storing data. In an achievable manner, the storage device to be processed may refer to a cloud disk; the directory information may include the operation status of the file and information related to the directory structure of the file system; the directory structure may refer to a tree structure formed by extending from the root directory of the file system to multiple subdirectories.

[0062] It should be noted that if Figure 2 As shown, the storage device to be processed is mounted on a device (e.g., a server, etc.) running a remote dictionary service (RemoteDictionary Server, Redis) database instance; in another achievable manner, the storage device to be processed can also be mounted on a device running a structured query language (My Structured Query Language, Mysql) database instance. In addition, the device is also mounted on a local hard disk.

[0063] Step 102: Determine multiple detection parameters for the storage device to be processed based on the performance information and the target information.

[0064] In the embodiment of the present application, multiple detection parameters can represent the detection results of multiple dimensions of the storage device to be processed. Specifically, the performance information can be processed to obtain a first detection parameter of the storage performance of the storage device to be processed, and the target information can be processed to obtain a second detection parameter of the file status of the storage device to be processed and a third detection parameter of the directory structure of the file system.

[0065] Step 103: Determine the working status of the storage device to be processed based on multiple detection parameters.

[0066] In an embodiment of the present application, the weight of each detection parameter can be determined, and the working state of the storage device to be processed can be determined based on the weight of each detection parameter and the corresponding detection parameter. The working state can include a normal working state and an abnormal working state. It should be noted that the weight of each detection parameter is set based on historical data and actual needs.

[0067] The information determination method provided in the embodiment of the present application can combine the performance information of the storage device to be processed and the target information related to the directory structure of the files and file system in the storage device to be processed to determine the working state of the storage device to be processed, that is, when determining the working state of the storage device to be processed, not only the performance information of the storage device to be processed itself is considered, but also the information related to the directory structure of the files and file system in the storage device to be processed is considered, instead of only considering the performance indicators of the cloud disk when determining the working state of the cloud disk as in the related art, thus solving the problem of inaccurate determination of the working state when determining the working state of the cloud disk in the related art.

[0068] The present application embodiment provides a method, which can be applied to the information determination method, referring to Figure 3 As shown, the method may include the following steps:

[0069] Step 201: The information determination device obtains performance information of the storage device to be processed and target information corresponding to the storage device to be processed.

[0070] The target information is information generated when operating the storage device to be processed and related to files in the storage device to be processed and the directory structure of the file system corresponding to the storage device to be processed.

[0071] In the embodiment of the present application, if the storage device to be processed is a cloud disk, the performance information may include multiple performance parameters such as the read and write bandwidth, latency, number of connections, and query rate per second (QPS) of the cloud disk; the target information may include operation and maintenance monitoring indicators and abnormal monitoring indicators for the storage device to be processed, wherein the operation and maintenance monitoring indicators may include the operation status of the file, and the abnormal monitoring indicators may include the topology information of the directory of the file system. Specifically, Figure 2 The information is used to determine the monitoring components in the system, and the prometheus tool, top command, sar command and node-export tool are used to collect the performance information of the cloud disk, and the cloud-monitor service is used to obtain the target information for the cloud disk.

[0072] Step 202: The information determination device determines a first detection parameter for the storage device to be processed based on the performance information and the target cyclic network model.

[0073] In the embodiment of the present application, the target recurrent network may refer to a recurrent neural network (RNN) model. Specifically, a first vector may be constructed according to the performance information, and the first vector may be processed using the RNN model to obtain a second vector, and then the first detection parameter may be determined according to the second vector.

[0074] In the embodiment of the present application, step 202 may be implemented through steps 202a to 202c.

[0075] Step 202a: The information determination device processes multiple performance parameters of the storage device to be processed to obtain processed performance parameters.

[0076] The performance information includes multiple performance parameters.

[0077] In an embodiment of the present application, the multiple performance parameters may be the read and write bandwidth, latency, number of connections, and query rate per second (QPS) of the cloud disk. Specifically, the performance parameters of the cloud disk may be denoised first, and then the performance parameters of the cloud disk may be detected and smoothed for missing values ​​and outliers to remove dirty data from the performance parameters to obtain processed performance parameters. It should be noted that dirty data may refer to data whose format and content do not meet the requirements, or may refer to erroneous data caused by system anomalies.

[0078] Step 202b: The information determination device constructs a first vector based on the multiple processed performance parameters.

[0079] In an embodiment of the present application, a four-dimensional feature vector, i.e., a first vector, can be constructed based on the QPS, read / write bandwidth, latency, and number of connections of the cloud disk to characterize the storage performance of the storage device to be processed. It should be noted that the first vector can be represented by X_i, then X_i = [QPS_i, BandW_i, Time_i, Cli_i]. Among them, QPS_i represents the QPS parameter of the cloud disk, BandW_i represents the read / write bandwidth parameter of the cloud disk, Time_i represents the latency parameter of the cloud disk; Cli_i represents the number of connections parameter of the cloud disk.

[0080] Step 202c: The information determination device processes the first vector using the target recurrent network model to obtain a second vector, and determines the first detection parameter based on the second vector.

[0081] In the embodiment of the present application, the RNN model is a special neural network model, such as Figure 4 As shown, the RNN model receives an input and outputs a result at each time step, and the output h of the RNN model is t =f{h t-1 , X t}. Among them, the output h of the RNN model t Depends on the input X t and the previous state h t-1 .

[0082] In an embodiment of the present application, the first vector can be input as an input parameter into the input layer of the RNN model. After that, the RNN layer in the RNN model will receive the first vector received by the input layer and convert it into a hidden state. Further, the RNN layer will process the input first vector based on the time step, and the hidden state will be updated in each time step to obtain a prediction result. Finally, according to the hidden state of the RNN layer, the obtained prediction result, that is, the second vector, is mapped to the output layer to output the second vector through the output layer. It should be noted that the output layer may refer to a fully connected layer, which is used to convert the hidden state into a prediction result.

[0083] In an embodiment of the present application, if the second vector characterizes that there is no abnormality in the performance parameters of the cloud disk, the first threshold is determined to be the first detection parameter; correspondingly, if the second vector characterizes that there is an abnormality in the performance parameters of the cloud disk, the second threshold is determined to be the first detection parameter. It should be noted that the first threshold and the second threshold are empirical values ​​set based on historical data and actual needs. In one achievable method, the first threshold can be 0 and the second threshold can be 1.

[0084] Step 203: The information determination device determines a second detection parameter for the storage device to be processed based on the operation status of the file.

[0085] The operation status refers to the status of the file when the file is operated.

[0086] In the embodiment of the present application, the operation state of a file may refer to the read / write state of the file, that is, the state of the file when a read / write operation is performed on the file.

[0087] In the embodiment of the present application, step 203 may be implemented through steps 203a to 203b.

[0088] Step 203a: The information determination device determines the connection status between the storage device to be processed and the target management platform.

[0089] In the implementation of this application, the target management platform may refer to the cloud monitoring platform corresponding to the cloud disk, and the connection status may refer to whether the cloud monitoring platform can monitor the storage device to be processed, i.e., the cloud disk, in real time. That is to say, if the connection status is normal, it means that the cloud disk is under the monitoring of the cloud monitoring platform; if the connection status is abnormal, it means that the cloud disk is not under the monitoring of the cloud monitoring platform, that is, the cloud monitoring platform cannot monitor the status of the cloud disk at this time.

[0090] Step 203b: The information determination device determines a second detection parameter based on the operation state and / or the connection state.

[0091] In an embodiment of the present application, the second detection parameter for the storage device to be processed can be determined according to the read and write status of the file and / or whether the cloud disk is under the monitoring of the cloud monitoring platform.

[0092] In the embodiment of the present application, step 203b can be implemented through steps 203b1 to 203b2.

[0093] Step 203b1: If there is no abnormality in the connection state and there is no abnormality in the operation state, the information determination device determines the first threshold as the second detection parameter.

[0094] In an embodiment of the present application, if the operation status of the file is normal, it means that the file can be read and written normally at this time. If there is no abnormality in the connection status between the cloud disk and the target management platform, it means that the cloud disk is under the monitoring state of the target management platform. At this time, the first threshold is determined as the second detection parameter.

[0095] Step 203b2: If there is an abnormality in the connection state or the operation state, the information determination device determines the second threshold as the second detection parameter.

[0096] In an embodiment of the present application, if the operating status of the file is abnormal, it means that the file cannot be read and written normally at this time, that is, the reading and writing status of the cloud disk is abnormal at this time. Then, at this time, regardless of whether the connection status between the cloud disk and the target management platform is abnormal, the second threshold is determined as the second detection parameter; if there is an abnormality in the connection status, that is, the cloud disk is not under the monitoring state of the target management platform (that is, the cloud monitoring platform), then, at this time, regardless of whether the file can be read and written normally, the second threshold is determined as the second detection parameter; correspondingly, if there is an abnormality in the connection status and the operating status of the file is also abnormal, the second threshold is also determined as the second detection parameter.

[0097] Step 204: The information determination device determines a third detection parameter for the storage device to be processed based on the topology information of the directory in the file system and / or the abnormality detection situation of the file.

[0098] Among them, the topology information represents the hierarchical relationship between multiple directories; the target information includes operation status and topology information.

[0099] In the embodiment of the present application, the directory in the file system may include a root directory and subdirectories; the topology information may include the hierarchical relationship between the root directory and multiple subdirectories and the hierarchical relationship between multiple subdirectories; the abnormal detection of files may refer to the detection of duplicate files in the same directory. For example, the root directory may be C:\, and the subdirectories may include C:\root, C:\PATH, and C:\root\login\machine, etc.

[0100] In the embodiment of the present application, it is possible to determine whether there are duplicate files with the same name in the same directory, and determine the third detection parameter based on the topology information and the abnormal detection of the duplicate files. Specifically, step 204 can be implemented through steps 204a1 to 204a3:

[0101] Step 204a1: The information determination device matches the topology information with the historical topology information in the directory.

[0102] In an embodiment of the present application, historical topology information for a directory in a file system may be obtained, and the historical topology information and the topology information may be matched to determine whether the directory structure of the file system has changed. The historical topology information may refer to the topology information of the directory in the file system at a historical moment before the current moment.

[0103] Step 204a2: If the topology information matches the historical topology information and there is no abnormality in the file, the information determination device determines the first threshold as the third detection parameter.

[0104] In the embodiment of the present application, if the topology information at the current moment matches the historical topology information, it means that the directory structure of the file system has not changed during this period of time, that is, the directory structure of the file system has not been abnormal; if there is no abnormality in the file, it means that there are no duplicate files with the same name in each directory in the file system. Specifically, if the topology information matches the historical topology information, and there are no duplicate files in each directory, the first threshold is determined to be the third detection parameter.

[0105] Step 204a3: If the topology information does not match the historical topology information, or there is an abnormality in the file, the information determination device determines the second threshold as the third detection parameter.

[0106] In an embodiment of the present application, if the topology information at the current moment does not match the historical topology information, it means that the directory structure of the file system has changed, that is, an abnormality has occurred in the directory structure. At this time, regardless of whether there are duplicate files in the directory, the second threshold is directly determined as the third detection parameter; correspondingly, as long as there are duplicate files with the same name in the directory in the file system, regardless of whether the topology information at the current moment matches the historical topology information, the second threshold is determined as the third detection parameter; in addition, if not only the topology information does not match the historical topology information, but there are also duplicate files in the directory of the file system, the second threshold is also determined as the third detection parameter.

[0107] Step 205: The information determination device determines the weight corresponding to each detection parameter.

[0108] In the embodiment of the present application, the weight represents the importance of each detection parameter. Among them, the third detection parameter corresponding to the directory structure of the file system corresponding to the storage device to be processed has the highest importance, the second detection parameter corresponding to the operation status of the file of the storage device to be processed has the second highest importance, and the first detection parameter corresponding to the storage information of the storage device to be processed has the lowest importance, that is, the weight λ of the first detection parameter is 1 <The weight of the second detection parameter λ 2 <The weight of the third detection parameter λ 3 .

[0109] It should be noted that the weight of each detection parameter can be adjusted according to actual needs.

[0110] Step 206: The information determination device determines the target parameter based on the multiple detection parameters and the multiple weights.

[0111] In the embodiment of the present application, each detection parameter and the corresponding weight are multiplied to obtain multiple calculation results, and then the multiple calculation results are added to obtain the target parameter. It should be noted that the calculation formula of the target parameter can be shown as formula (1).

[0112] ERR_t=λ 1 *Exception_t+λ 2 *Stats_t+λ 3 *h t Formula (1)

[0113] Among them, ERR_t represents the target parameter; Exception_t represents the first detection parameter; Stats_t represents the second detection parameter; h t Represents the third detection parameter.

[0114] In the embodiment of the present application, step 207 or step 208 may be executed after step 206.

[0115] Step 207: If the target parameter is less than or equal to the target threshold, the information determination device determines that the storage device to be processed is in a normal working state.

[0116] In the embodiment of the present application, the target parameter and the target threshold can be compared and processed. If the target parameter is less than or equal to the target threshold, it is determined that the cloud disk has no abnormality and is in a normal working state. It should be noted that the target threshold can be set according to historical data and actual needs.

[0117] Step 208: If the target parameter is greater than the target threshold, the information determination device determines that the storage device to be processed is in an abnormal working state.

[0118] In the embodiment of the present application, if the target parameter is greater than the target threshold, it means that the working condition of the cloud disk is abnormal. At this time, it is determined that the cloud disk, that is, the storage device to be processed, is in an abnormal working state. It should be noted that when it is determined that the cloud disk is in an abnormal working state, the abnormal information of the cloud disk can be reported to the monitoring component. Figure 2 The management component in the system is used to repair abnormal conditions of the cloud disk.

[0119] In other embodiments of the present application, steps 209 to 210 may be performed after step 208 .

[0120] Step 209: If the working state is in an abnormal working state, the information determination device switches the storage directory of the file system to the first mount directory corresponding to the basic storage device, and stores the data corresponding to the file system in the storage area corresponding to the first mount directory in the basic storage device.

[0121] The file system is mounted with a pending storage device and a basic storage device.

[0122] In the embodiments of the present application, Figure 5 and 6As shown in the figure, the target device corresponding to the file system has both cloud disk and local hard disk mounted, and the local hard disk is mounted in hostPath mode, and the cloud disk is mounted in glusterfs mode. Figure 6 / host-data / id / sts-id / is the mount directory of the local hard disk (that is, the first mount directory).

[0123] In the embodiment of the present application, the storage directory may refer to a persistent directory. It should be noted that the storage directory is initially set to the mount directory of the cloud disk (i.e., the second mount directory). Figure 6 / cloud-data / id / sts-id / is the second mount directory of the cloud disk.

[0124] In the embodiments of the present application, Figure 6 As shown, the management component in the management layer (i.e. Figure 6 After receiving the abnormal information reported by the monitoring component, the cloud-manager in the monitoring component will connect to the information determination device running the Redis database instance through the Transmission Control Protocol (TCP) to send a switching command to the information determination device. After receiving the switching command, the information determination device will switch the storage command of the file system from the second mount directory of the cloud disk to the first mount directory of the local hard disk. In this way, the data written by the user will be directly stored in the local hard disk instead of storing the data in the cloud disk as before.

[0125] Furthermore, after switching the mount directory, the data corresponding to the file system, that is, the data stored in the original cloud disk, needs to be stored in the local hard disk for backup. It should be noted that after backing up the data stored in the cloud disk, the data in the memory area of ​​the device where the cloud disk and the local hard disk are mounted can also be stored in the local hard disk for backup, that is, a full data persistence operation is performed to ensure data security.

[0126] Step 210: If the working status returns to normal, the information determination device switches the storage directory from the first mount directory corresponding to the basic storage device to the second mount directory corresponding to the storage device to be processed, and stores the data corresponding to the file system in the storage area corresponding to the second mount directory in the storage device to be processed.

[0127] In the embodiment of the present application, when the abnormal problem of the cloud disk is repaired, the monitoring component will report the information that the abnormal problem has been repaired to the management component, and after receiving the corresponding information, the management component can switch the storage directory of the file system from the first mount directory of the local hard disk to the second mount directory of the cloud disk, so that subsequent data will be directly stored in the cloud disk. In addition, it should be noted that in order to ensure data consistency, the data stored in the local hard disk and the data stored in the memory area also need to be stored in the cloud disk to perform data persistence operations.

[0128] In the embodiment of the present application, by using a mixture of a database cloud disk and a local disk, when the working state of the cloud disk is in an abnormal state, the management component and the monitoring component can be used to promptly perform intelligent switching of the persistent directory (i.e., the storage directory) between the local hard disk and the cloud disk. In this way, the normal storage of data can be guaranteed, and the switching process is not only fast, but also imperceptible throughout the process, which makes the data storage more efficient.

[0129] The information determination method provided in the embodiment of the present application can combine the performance information of the storage device to be processed and the target information related to the directory structure of the files and file system in the storage device to be processed to determine the working state of the storage device to be processed, that is, when determining the working state of the storage device to be processed, not only the performance information of the storage device to be processed itself is considered, but also the information related to the directory structure of the files and file system in the storage device to be processed is considered, instead of only considering the performance indicators of the cloud disk when determining the working state of the cloud disk as in the related art, thus solving the problem of inaccurate determination of the working state when determining the working state of the cloud disk in the related art.

[0130] Based on the above embodiments, the present invention provides an information determination device, which can be applied to Figure 1 and 3 In the information determination method provided in the corresponding embodiment, refer to Figure 7 As shown, the information determination device 3 may include: an acquisition unit 31, a first determination unit 32 and a second determination unit 33, wherein:

[0131] The acquisition unit 31 is used to acquire the performance information of the storage device to be processed and the target information corresponding to the storage device to be processed; wherein the target information is the information related to the files in the storage device to be processed and the directory structure of the file system corresponding to the storage device to be processed, which is generated when the storage device to be processed is operated;

[0132] A first determining unit 32, configured to determine a plurality of detection parameters for the storage device to be processed based on the performance information and the target information;

[0133] The second determining unit 33 is used to determine the working state of the storage device to be processed based on multiple detection parameters.

[0134] In other embodiments of the present application, the first determining unit 32 is further configured to perform the following steps:

[0135] Determine a first detection parameter for the storage device to be processed based on the performance information and the target cyclic network model;

[0136] Determine a second detection parameter for the storage device to be processed based on the operation state of the file; wherein the operation state is the state of the file when the file is operated;

[0137] Based on the topology information of the directories in the file system and / or the abnormality detection of the files, a third detection parameter for the storage device to be processed is determined; wherein the topology information represents the hierarchical relationship between multiple directories; and the target information includes the operation status and the topology information.

[0138] In other embodiments of the present application, the first determining unit 32 is further configured to perform the following steps:

[0139] Processing multiple performance parameters of the storage device to be processed to obtain processed performance parameters; wherein the performance information includes multiple performance parameters;

[0140] constructing a first vector based on the plurality of processed performance parameters;

[0141] The first vector is processed by using a target recurrent network model to obtain a second vector, and a first detection parameter is determined based on the second vector.

[0142] In other embodiments of the present application, the first determining unit 32 is further configured to perform the following steps:

[0143] Determine the connection status between the storage device to be processed and the target management platform;

[0144] Based on the operating state and / or the connection state, a second detection parameter is determined.

[0145] In other embodiments of the present application, the first determining unit 32 is further configured to perform the following steps:

[0146] If there is no abnormality in the connection state and there is no abnormality in the operation state, determining the first threshold as the second detection parameter;

[0147] If there is an abnormality in the connection state or the operation state, the second threshold is determined as the second detection parameter.

[0148] In other embodiments of the present application, the first determining unit 32 is further configured to perform the following steps:

[0149] Match the topology information with the historical topology information of the directory;

[0150] If the topology information matches the historical topology information and there is no anomaly in the file, determining the first threshold as the third detection parameter;

[0151] If the topology information does not match the historical topology information, or there is an abnormality in the file, the second threshold is determined to be the third detection parameter.

[0152] In other embodiments of the present application, the second determining unit 33 is further configured to perform the following steps:

[0153] Determine the weight corresponding to each detection parameter;

[0154] Determine a target parameter based on multiple detection parameters and multiple weights;

[0155] If the target parameter is less than or equal to the target threshold, it is determined that the storage device to be processed is in a normal working state;

[0156] If the target parameter is greater than the target threshold, it is determined that the storage device to be processed is in an abnormal working state.

[0157] In other embodiments of the present application, the second determining unit 33 is further configured to perform the following steps:

[0158] If the working status is in an abnormal working state, the storage directory of the file system is switched to the first mount directory corresponding to the basic storage device, and the data corresponding to the file system is stored in the storage area corresponding to the first mount directory in the basic storage device; wherein the file system mounts the storage device to be processed and the basic storage device.

[0159] In other embodiments of the present application, the second determining unit 33 is further configured to perform the following steps:

[0160] If the working status returns to normal, the storage directory is switched from the first mount directory corresponding to the basic storage device to the second mount directory corresponding to the storage device to be processed, and the data corresponding to the file system is stored in the storage area corresponding to the second mount directory in the storage device to be processed.

[0161] It should be noted that the specific description of the steps performed by each unit can be found in Figure 1 and 3 The information determination method provided in the corresponding embodiment will not be repeated here.

[0162] The information determination device provided in the embodiment of the present application can combine the performance information of the storage device to be processed and the target information related to the directory structure of the files and file system in the storage device to be processed to determine the working state of the storage device to be processed, that is, when determining the working state of the storage device to be processed, not only the performance information of the storage device to be processed itself is considered, but also the information related to the directory structure of the files and file system in the storage device to be processed is considered, instead of only considering the performance indicators of the cloud disk when determining the working state of the cloud disk as in the related art, thus solving the problem of inaccurate working state when determining the working state of the cloud disk in the related art.

[0163] Based on the above embodiments, the embodiments of the present application provide an information determination device, which can be applied to Figure 1 and 3 In the information determination method provided in the corresponding embodiment, refer to Figure 8 As shown, the information determination device 4 may include: a processor 41, a memory 42 and a communication bus 43, wherein:

[0164] The communication bus 43 is used to realize the communication connection between the processor 41 and the memory 42;

[0165] The processor 41 is used to execute the information determination program in the memory 42 to implement the following steps:

[0166] Acquire performance information of the storage device to be processed and target information corresponding to the storage device to be processed; wherein the target information is information related to files in the storage device to be processed and a directory structure of a file system corresponding to the storage device to be processed, generated when the storage device to be processed is operated;

[0167] Determine multiple detection parameters for the storage device to be processed based on the performance information and the target information;

[0168] Based on multiple detection parameters, the working status of the storage device to be processed is determined.

[0169] In other embodiments of the present application, the processor 41 is used to execute the information determination program in the memory 42 to determine multiple detection parameters for the storage device to be processed based on the performance information and the target information, so as to implement the following steps:

[0170] Determine a first detection parameter for the storage device to be processed based on the performance information and the target cyclic network model;

[0171] Determine a second detection parameter for the storage device to be processed based on the operation state of the file; wherein the operation state is the state of the file when the file is operated;

[0172] Based on the topology information of the directories in the file system and / or the abnormality detection of the files, a third detection parameter for the storage device to be processed is determined; wherein the topology information represents the hierarchical relationship between multiple directories; and the target information includes the operation status and the topology information.

[0173] In other embodiments of the present application, the processor 41 is used to execute the information determination program in the memory 42 to determine the first detection parameter for the storage device to be processed based on the performance information and the target cyclic network model, so as to implement the following steps:

[0174] Processing multiple performance parameters of the storage device to be processed to obtain processed performance parameters; wherein the performance information includes multiple performance parameters;

[0175] constructing a first vector based on the plurality of processed performance parameters;

[0176] The first vector is processed by using a target recurrent network model to obtain a second vector, and a first detection parameter is determined based on the second vector.

[0177] In other embodiments of the present application, the processor 41 is used to execute the information in the memory 42 to determine the file-based operation state of the program, and determine the second detection parameter for the storage device to be processed, so as to implement the following steps:

[0178] Determine the connection status between the storage device to be processed and the target management platform;

[0179] Based on the operating state and / or the connection state, a second detection parameter is determined.

[0180] In other embodiments of the present application, the processor 41 is used to execute the information determination program in the memory 42 to determine the second detection parameter based on the operation state and / or the connection state to implement the following steps:

[0181] If there is no abnormality in the connection state and there is no abnormality in the operation state, determining the first threshold as the second detection parameter;

[0182] If there is an abnormality in the connection state or the operation state, the second threshold is determined as the second detection parameter.

[0183] In other embodiments of the present application, the processor 41 is used to execute the information determination program in the memory 42 to determine the third detection parameter for the storage device to be processed based on the topology information of the directory in the file system and the abnormality detection situation of the file, so as to implement the following steps:

[0184] Match the topology information with the historical topology information of the directory;

[0185] If the topology information matches the historical topology information and there is no anomaly in the file, determining the first threshold as the third detection parameter;

[0186] If the topology information does not match the historical topology information, or there is an abnormality in the file, the second threshold is determined to be the third detection parameter.

[0187] In other embodiments of the present application, the processor 41 is used to execute the information determination program in the memory 42 to determine the working state of the storage device to be processed based on multiple detection parameters, so as to implement the following steps:

[0188] Determine the weight corresponding to each detection parameter;

[0189] Determine a target parameter based on multiple detection parameters and multiple weights;

[0190] If the target parameter is less than or equal to the target threshold, it is determined that the storage device to be processed is in a normal working state;

[0191] If the target parameter is greater than the target threshold, it is determined that the storage device to be processed is in an abnormal working state.

[0192] In other embodiments of the present application, the processor 41 is used to execute the information determination program in the memory 42 to implement the following steps:

[0193] If the working status is in an abnormal working state, the storage directory of the file system is switched to the first mount directory corresponding to the basic storage device, and the data corresponding to the file system is stored in the storage area corresponding to the first mount directory in the basic storage device; wherein the file system mounts the storage device to be processed and the basic storage device.

[0194] In other embodiments of the present application, the processor 41 is used to execute the information determination program in the memory 42 to implement the following steps:

[0195] If the working status returns to normal, the storage directory is switched from the first mount directory corresponding to the basic storage device to the second mount directory corresponding to the storage device to be processed, and the data corresponding to the file system is stored in the storage area corresponding to the second mount directory in the storage device to be processed.

[0196] It should be noted that the specific description of the steps executed by the processor can be referred to Figure 1 and 3 The information determination method provided in the corresponding embodiment will not be repeated here.

[0197] The information determination device provided in the embodiment of the present application can combine the performance information of the storage device to be processed and the target information related to the directory structure of the files and file system in the storage device to be processed to determine the working state of the storage device to be processed, that is, when determining the working state of the storage device to be processed, not only the performance information of the storage device to be processed itself is considered, but also the information related to the directory structure of the files and file system in the storage device to be processed is considered, instead of only considering the performance indicators of the cloud disk when determining the working state of the cloud disk as in the related art, thus solving the problem of inaccurate determination of the working state of the cloud disk in the related art.

[0198] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figure 1 and 3 The corresponding embodiments provide steps of the information determination method.

[0199] Based on the above embodiments, an embodiment of the present application provides a computer program product, the computer program product includes a computer program, the computer program is executed by a processor to achieve Figure 1 and 3 The corresponding embodiments provide steps of the information determination method.

[0200] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0201] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0202] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0203] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0204] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for determining information, characterized in that: The method comprises: Acquire performance information of a storage device to be processed and target information corresponding to the storage device to be processed; wherein the target information is information related to files in the storage device to be processed and a directory structure of a file system corresponding to the storage device to be processed, which is generated when the storage device to be processed is operated; Based on the performance information and the target information, determining a plurality of detection parameters for the storage device to be processed; Based on the multiple detection parameters, the working status of the storage device to be processed is determined.

2. The method according to claim 1, characterized in that The determining, based on the performance information and the target information, a plurality of detection parameters for the storage device to be processed includes: Determine a first detection parameter for the storage device to be processed based on the performance information and the target cyclic network model; Determine a second detection parameter for the storage device to be processed based on the operation state of the file; wherein the operation state is the state of the file when the file is operated; Based on the topology information of the directories in the file system and / or the abnormal detection of the files, determine the third detection parameter for the storage device to be processed; wherein the topology information represents the hierarchical relationship between multiple directories; and the target information includes the operation status and the topology information.

3. The method according to claim 2, characterized in that The determining, based on the performance information and the target cyclic network model, a first detection parameter for the storage device to be processed includes: Processing a plurality of performance parameters of the storage device to be processed to obtain processed performance parameters; wherein the performance information includes the plurality of performance parameters; constructing a first vector based on the plurality of processed performance parameters; The first vector is processed using the target recurrent network model to obtain a second vector, and the first detection parameter is determined based on the second vector.

4. The method according to claim 2, characterized in that: The determining, based on the operation status of the file, a second detection parameter for the storage device to be processed includes: Determine the connection status between the storage device to be processed and the target management platform; The second detection parameter is determined based on the operation state and / or the connection state.

5. The method according to claim 4, characterized in that The determining the second detection parameter based on the operation state and / or the connection state includes: If there is no abnormality in the connection state and there is no abnormality in the operation state, determining the first threshold as the second detection parameter; If there is an abnormality in the connection state or there is an abnormality in the operation state, a second threshold is determined as the second detection parameter.

6. The method according to claim 2, characterized in that The determining, based on the topology information of the directory in the file system and the abnormality detection condition of the file, a third detection parameter for the storage device to be processed includes: Matching the topology information with the historical topology information of the directory; If the topology information matches the historical topology information and there is no abnormality in the file, determining the first threshold as the third detection parameter; If the topology information does not match the historical topology information, or there is an abnormality in the file, the second threshold is determined to be the third detection parameter.

7. The method according to claim 1, characterized in that The determining the working state of the storage device to be processed based on the multiple detection parameters includes: Determine the weight corresponding to each detection parameter; Determining a target parameter based on the plurality of detection parameters and the plurality of weights; If the target parameter is less than or equal to the target threshold, it is determined that the storage device to be processed is in a normal working state; If the target parameter is greater than the target threshold, it is determined that the storage device to be processed is in an abnormal working state.

8. The method according to claim 7, characterized in that The method further comprises: If the working state is in the abnormal working state, the storage directory of the file system is switched to the first mount directory corresponding to the basic storage device, and the data corresponding to the file system is stored in the storage area corresponding to the first mount directory in the basic storage device; wherein the file system is mounted with the storage device to be processed and the basic storage device; Accordingly, the method further includes: If the working status returns to normal, the storage directory is switched from the first mount directory corresponding to the basic storage device to the second mount directory corresponding to the storage device to be processed, and the data corresponding to the file system is stored in the storage area corresponding to the second mount directory in the storage device to be processed.

9. An information determination device, characterized in that: The device comprises: An acquisition unit, used to acquire performance information of a storage device to be processed and target information corresponding to the storage device to be processed; wherein the target information is information related to files in the storage device to be processed and a directory structure of a file system corresponding to the storage device to be processed, which is generated when the storage device to be processed is operated; A first determining unit, configured to determine a plurality of detection parameters for the storage device to be processed based on the performance information and the target information; The second determining unit is used to determine the working state of the storage device to be processed based on the multiple detection parameters.

10. An information determination device, characterized in that The device comprises: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the information determination program in the memory to implement the steps of the information determination method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information determination method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the information determination method according to any one of claims 1 to 8.